/* ══ SIZE GUIDE TABLE ══ */
.rr-size-guide-box {
  background: #fff;
  border: 1.5px solid var(--rr-border);
  border-radius: var(--rr-r-xl);
  overflow: hidden;
  margin-top: 16px;
}
.rr-size-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--rr-purple-light);
  cursor: pointer;
  user-select: none;
}
.rr-size-guide-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  color: var(--rr-purple-dark);
}
.rr-size-guide-arrow {
  font-size: 12px;
  color: var(--rr-purple-dark);
  transition: transform 0.2s ease;
}
.rr-size-guide-arrow.open { transform: rotate(180deg); }

.rr-size-guide-body {
  display: none;
  padding: 16px 18px 18px;
}
.rr-size-guide-body.open { display: block; }

/* تیبل */
.rr-sg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-family: var(--rr-font);
  direction: rtl;
}
.rr-sg-table th {
  background: var(--rr-purple-light);
  color: var(--rr-purple-dark);
  font-weight: 900;
  padding: 9px 12px;
  text-align: center;
  font-size: 11px;
  border-bottom: 1.5px solid var(--rr-border);
}
.rr-sg-table th:first-child { text-align: right; }
.rr-sg-table td {
  padding: 9px 12px;
  text-align: center;
  border-bottom: 1px solid var(--rr-border);
  font-weight: 600;
  color: var(--rr-text-2);
}
.rr-sg-table td:first-child {
  font-weight: 900;
  color: var(--rr-text);
  text-align: right;
  background: rgba(155,92,255,.04);
}
.rr-sg-table tr:last-child td { border-bottom: none; }
.rr-sg-table tr:hover td { background: var(--rr-bg); }
.rr-sg-table tr:hover td:first-child { background: rgba(155,92,255,.07); }

/* ستون‌های هدر */
.rr-sg-table th.col-size  { min-width: 60px; }
.rr-sg-table th.col-num   { min-width: 50px; }

/* tip */
.rr-sg-tip {
  font-size: 11px;
  color: var(--rr-text-3);
  font-weight: 600;
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--rr-bg);
  border-radius: var(--rr-r-md);
  line-height: 1.7;
}

/* ── ADMIN EDITOR (پنل ادمین) ── */
.rr-sg-admin-wrap {
  font-family: Vazirmatn, Tahoma, sans-serif;
  direction: rtl;
  margin-top: 10px;
}
.rr-sg-admin-wrap label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  color: #3c434a;
}
.rr-sg-admin-wrap .rr-sg-hint {
  font-size: 12px;
  color: #8c8f94;
  margin-bottom: 10px;
  line-height: 1.6;
}
.rr-sg-admin-wrap textarea {
  width: 100%;
  min-height: 180px;
  padding: 10px 12px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  font-family: Vazirmatn, monospace;
  font-size: 13px;
  direction: rtl;
  resize: vertical;
  line-height: 1.8;
}
.rr-sg-admin-wrap textarea:focus {
  border-color: #9b5cff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(155,92,255,.15);
}
.rr-sg-preview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #9b5cff;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}
