/* =========================================================================
   صفحه‌ی ضمانت سایز و دوخت (page-returns.php)
   پایه: page-buying-guide.css (.rg، .rg-hd، .rg-sec). شیشه = همان شیشه‌ی پاپ‌آپ‌ها (rhea-salon.css)
   ========================================================================= */
.rr {
  --rr-glass: var(--rg-glass-lux, linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, rgba(238, 240, 244, .2) 100%));
  --rr-blur: var(--rg-blur-lux, blur(30px) saturate(160%));
  --rr-edge: var(--rg-edge-lux, rgba(255, 255, 255, .55));
  --rr-hi: var(--rg-hi-lux, inset 0 1.5px 0 #fff, inset 0 -1px 0 rgba(255, 255, 255, .4), inset 0 0 30px rgba(255, 255, 255, .08));
  --rr-line: rgba(255, 255, 255, .7);
}
.rr ul, .rr ol { margin: 0; padding: 0; list-style: none; }

/* بالای صفحه: بدون کادر */
.rr-top { padding: 22px 10px 0; }
.rr-top h1 { font-size: 24px; font-weight: 800; line-height: 1.5; color: var(--rg-b); }
.rr-top p { margin-top: 4px; font-size: 13px; line-height: 2; color: rgba(19, 39, 63, .78); }

/* شیشه‌ی پاپ‌آپ */
.rr-sh {
  padding: 4px 18px;
  border: 1px solid var(--rr-edge);
  border-radius: 30px;
  background: var(--rr-glass);
  -webkit-backdrop-filter: var(--rr-blur);
  backdrop-filter: var(--rr-blur);
  box-shadow: var(--rr-hi), 0 30px 70px -24px rgba(20, 25, 35, .5);
}

/* مهلت اعلام */
.rr-dl { padding: 18px 18px 16px; }
.rr-dl__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rr-dl__big b { font-size: 30px; font-weight: 800; line-height: 1.3; color: var(--rg-b); }
.rr-dl__big span { font-size: 12.5px; font-weight: 700; color: var(--rg-nd); }
.rr-dl__bar { position: relative; height: 6px; margin: 12px 0 10px; overflow: hidden; border-radius: 3px; background: rgba(19, 39, 63, .1); }
.rr-dl__bar i { position: absolute; inset: 0; background: linear-gradient(270deg, #1d3554, var(--rg-b)); }
.rr-dl__bar i::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(255, 255, 255, .8) calc(25% - 1px) 25%);
}
.rr-dl__ends { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; font-weight: 700; color: rgba(19, 39, 63, .6); }
.rr-dl__note { margin-top: 10px !important; font-size: 12px; line-height: 1.9; color: rgba(19, 39, 63, .78); }

/* ردیف‌های بازشونده */
.rr-row { border-bottom: 1px solid var(--rr-line); }
.rr-row:last-child { border-bottom: 0; }
.rr-q {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 0;
  list-style: none; cursor: pointer; font-size: 13px; font-weight: 800; color: var(--rg-nd);
  -webkit-tap-highlight-color: transparent;
}
.rr-q::-webkit-details-marker { display: none; }
.rr-q::marker { content: ''; }
.rr-q:focus-visible { outline: 2px solid var(--rg-b); outline-offset: 2px; border-radius: 12px; }
.rr-q__t { flex: 1; min-width: 0; line-height: 1.7; }
.rr-pill {
  flex: 0 0 auto; padding: 3px 11px; border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 800; line-height: 1.7;
  background: var(--rg-nd); color: #fff; box-shadow: 0 6px 12px -6px rgba(13, 27, 46, .6);
}
.rr-pill--you { background: var(--rg-b); box-shadow: 0 6px 12px -6px rgba(78, 0, 0, .6); }
/* دکمه‌ی گرد + / − */
.rr-tg {
  position: relative; flex: 0 0 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(78, 0, 0, .18); background: rgba(255, 255, 255, .5); box-shadow: inset 0 1px 0 #fff;
}
.rr-tg::before, .rr-tg::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.8px; margin: -.9px 0 0 -5.5px;
  border-radius: 1px; background: var(--rg-b); transition: transform .35s var(--rg-e);
}
.rr-tg::after { transform: rotate(90deg); }
.rr-row[open] .rr-tg::after { transform: rotate(0deg); }
.rr-a {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .32); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
  font-size: 12px; line-height: 2; color: rgba(19, 39, 63, .86);
}
.rr-a strong { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--rg-b); }
.rr-row[open] .rr-a { animation: rrIn .4s var(--rg-e); }
@keyframes rrIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* شرط پذیرش (طرح دوخته‌ی سرمه‌ای) */
.rr-woven {
  position: relative; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  padding: 18px 12px !important; border-radius: 24px; text-align: center; color: var(--rg-iv);
  background: linear-gradient(160deg, #1d3554, var(--rg-nd) 60%, #081321);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 22px 34px -22px rgba(9, 20, 34, .7);
}
.rr-woven::before { content: ''; position: absolute; inset: 6px; border: 1.5px dashed rgba(253, 251, 247, .35); border-radius: 18px; pointer-events: none; }
.rr-woven li { position: relative; }
.rr-woven svg { display: block; width: 24px; height: 24px; margin: 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rr-woven b { display: block; margin-top: 6px; font-size: 11px; line-height: 1.6; }
.rr-nrt { margin: 10px 10px 0 !important; font-size: 12px; line-height: 1.9; color: rgba(19, 39, 63, .78); }

/* فهرست‌ها (بعد از رسیدن، مراحل) */
.rr-li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rr-line); }
.rr-li:last-child { border-bottom: 0; }
.rr-n {
  display: flex; flex: 0 0 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%;
  border: 1px solid rgba(78, 0, 0, .2); background: rgba(255, 255, 255, .55); box-shadow: inset 0 1px 0 #fff;
  font-size: 13px; font-weight: 800; color: var(--rg-b);
}
.rr-n svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.rr-n--navy { border: 0; background: var(--rg-nd); }
.rr-n--burg { border: 0; background: var(--rg-b); }
.rr-li b { display: block; font-size: 13px; line-height: 1.8; color: var(--rg-nd); }
.rr-li small, .rr-t { display: block; font-size: 12px; line-height: 1.95; color: rgba(19, 39, 63, .8); }
.rr-t { padding-top: 3px; }
.rr-warn {
  display: flex; align-items: center; gap: 10px; margin: 2px 0 14px !important; padding: 11px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .32); box-shadow: inset 0 0 0 1px rgba(78, 0, 0, .18);
  font-size: 12px; font-weight: 800; line-height: 1.8; color: var(--rg-b);
}
.rr-warn svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }

/* ارسال عکس */
.rr-so { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rr-so__btn {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 9px 12px;
  border: 1px solid var(--rr-edge); border-radius: 999px; background: var(--rr-glass);
  -webkit-backdrop-filter: var(--rr-blur); backdrop-filter: var(--rr-blur);
  box-shadow: var(--rr-hi), 0 18px 36px -22px rgba(20, 25, 35, .5);
  color: var(--rg-nd); font-size: 13px; font-weight: 800; text-decoration: none;
  -webkit-tap-highlight-color: transparent; transition: transform .35s var(--rg-e);
}
.rr-so__btn small { display: block; font-size: 10.5px; font-weight: 500; color: rgba(19, 39, 63, .6); }
.rr-so__ic {
  display: flex; flex: 0 0 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%;
  border: 1px solid rgba(19, 39, 63, .2); background: rgba(255, 255, 255, .72); transition: border-color .3s ease;
}
.rr-so__ic svg { width: 19px; height: 19px; fill: none; stroke: var(--rg-n); stroke-width: 1.7; stroke-linejoin: round; }
a.rr-so__btn:active { transform: scale(.97); }
a.rr-so__btn:focus-visible { outline: 2px solid var(--rg-b); outline-offset: 2px; }
span.rr-so__btn { cursor: default; opacity: .7; }
@media (hover: hover) {
  a.rr-so__btn:hover { color: var(--rg-b); transform: translateY(-2px); }
  a.rr-so__btn:hover .rr-so__ic { border-color: var(--rg-b); }
}

@media (min-width: 768px) {
  .rr-top { padding-top: 34px; }
  .rr-top h1 { font-size: 30px; }
  .rr-sh { padding: 6px 24px; }
  .rr-dl { padding: 22px 24px 20px; }
}

/* مرورگر بدون blur */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .rr-sh, .rr-so__btn { background: rgba(246, 246, 248, .95); }
}
@media (prefers-reduced-motion: reduce) {
  .rr-tg::before, .rr-tg::after, .rr-so__btn { transition: none; }
  .rr-row[open] .rr-a { animation: none; }
}
