/* =========================================================================
   صفحه‌ی ارسال (page-shipping.php) — روی page-buying-guide.css (اجزای مشترک .rg-*) بنا شده
   ========================================================================= */
.rs ul, .rs ol, .rs dl, .rs dd { list-style: none; margin: 0; padding: 0; }
.rs h3, .rs h4 { margin: 0; }

/* ---------- کادر بالا با سه عدد کلیدی ---------- */
.rs-hero { padding-bottom: 22px; }
.rs-hero .rg-hero__title { margin-top: 0; }
.rs-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 18px !important; }
.rs-facts li {
  padding: 10px 6px; border-radius: 16px; text-align: center;
  background: rgba(253, 251, 247, .1); border: 1px solid rgba(255, 255, 255, .18);
}
.rs-facts b { display: block; font-size: 15px; font-weight: 800; }
.rs-facts small { font-size: 9.5px; opacity: .82; }

/* ---------- انتخاب روش ارسال ---------- */
.rs-seg { display: flex; gap: 4px; margin-bottom: 10px; padding: 5px; border-radius: 18px; }
.rs-seg__b {
  flex: 1; min-height: 40px; padding: 8px 4px; border: 0; border-radius: 14px; cursor: pointer; background: transparent;
  font: inherit; font-size: 12px; font-weight: 700; color: var(--rg-n); -webkit-tap-highlight-color: transparent;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.rs-seg__b.is-on { background: var(--rg-b); color: var(--rg-iv); box-shadow: 0 8px 14px -8px rgba(78, 0, 0, .8); }
.rs-seg__b:focus-visible { outline: 2px solid var(--rg-b); outline-offset: 2px; }
.rs-pick:not(.is-js) .rs-seg { display: none; }           /* بدون جاوااسکریپت: هر سه کارت زیر هم */
.rs-pick:not(.is-js) .rs-card + .rs-card { margin-top: 10px; }
.rs-pick.is-js .rs-card[hidden] { display: none; }
.rs-card.is-in { animation: rsIn .4s var(--rg-e); }
@keyframes rsIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.rs-card { border-radius: 26px; overflow: hidden; }
.rs-card__hd {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px; color: var(--rg-iv); background: linear-gradient(160deg, #1d3554, var(--rg-nd) 60%, #081321);
}
.rs-card__hd::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 6px); }
.rs-card__hd small { font-size: 10.5px; opacity: .75; }
.rs-card__hd h3 { margin-top: 4px; font-size: 20px; font-weight: 800; color: var(--rg-iv); }
.rs-card__time { text-align: left; }
.rs-card__time b { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.rs-card__time small { font-size: 10px; opacity: .75; }
.rs .rs-card__bd { padding: 6px 18px 0; }
.rs-card__bd > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(19, 39, 63, .07); font-size: 11.5px; }
.rs-card__bd dt { color: rgba(19, 39, 63, .62); }
.rs-card__bd dd { font-weight: 800; color: var(--rg-nd); text-align: left; }
.rs-speed { padding: 14px 18px 16px; }
.rs-speed__bar { position: relative; display: block; height: 6px; border-radius: 3px; background: rgba(19, 39, 63, .08); overflow: hidden; }
.rs-speed__bar i { position: absolute; right: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--rg-b); }
.rs-speed__sc { display: flex; justify-content: space-between; margin-top: 5px; font-size: 9.5px; color: rgba(19, 39, 63, .5); }

/* ---------- رسید وضعیت سفارش ---------- */
.rs-receipt {
  position: relative; margin-bottom: 12px; padding: 18px 18px 22px; border-radius: 24px 24px 6px 6px;
  background: var(--rg-iv); box-shadow: 0 22px 34px -20px rgba(19, 39, 63, .55);
}
.rs-receipt::after {   /* لبه‌ی دندانه‌دار رسید، مثل رسید سبد خرید */
  content: ''; position: absolute; left: 0; right: 0; bottom: -11px; height: 12px;
  background: radial-gradient(circle at 8px 0, transparent 7px, var(--rg-iv) 7.5px) 0 0 / 16px 12px repeat-x;
}
.rs-receipt__t { padding-bottom: 12px; text-align: center; font-size: 12px; font-weight: 800; color: var(--rg-b); border-bottom: 1.5px dashed rgba(19, 39, 63, .18); }
.rs-receipt__list { padding: 6px 0 !important; border-bottom: 1.5px dashed rgba(19, 39, 63, .18); }
.rs-receipt__list li, .rs-receipt__other { display: flex; gap: 12px; padding: 9px 0; }
.rs-receipt__n {
  flex: 0 0 26px; height: 26px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; background: var(--rg-b); color: var(--rg-iv);
}
.rs-receipt__n.is-soft { background: rgba(19, 39, 63, .08); color: var(--rg-n); }
.rs-receipt h3 { font-size: 12.5px; font-weight: 800; color: var(--rg-nd); line-height: 1.8; }
.rs-receipt h3 em { font-style: normal; font-size: 9.5px; font-weight: 700; color: var(--rg-b); background: rgba(78, 0, 0, .07); padding: 2px 8px; border-radius: 99px; margin-right: 4px; }
.rs-receipt p { font-size: 11px; line-height: 1.85; color: rgba(19, 39, 63, .76); }
.rs-receipt__other { border-bottom: 1.5px dashed rgba(19, 39, 63, .18); padding-bottom: 14px; }

.rs-track { display: flex; gap: 6px; margin-top: 14px; }
.rs-track input {
  flex: 1; min-width: 0; min-height: 42px; padding: 9px 12px; border-radius: 14px; outline: 0;
  background: #fff; border: 1px solid rgba(19, 39, 63, .14); font: inherit; font-size: 12px; color: var(--rg-nd);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.rs-track input::placeholder { color: rgba(19, 39, 63, .45); }
.rs-track input[dir="ltr"]::placeholder { direction: rtl; text-align: right; }
.rs-track input:focus { border-color: var(--rg-b); box-shadow: 0 0 0 3px rgba(78, 0, 0, .08); }
.rs-track input.is-bad { border-color: #b3261e; }
.rs-track button {
  flex: 0 0 auto; min-height: 42px; padding: 9px 16px; border: 0; border-radius: 14px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 800; color: var(--rg-iv);
  background: linear-gradient(160deg, #1d3554, var(--rg-nd) 60%, #081321); box-shadow: 0 10px 18px -10px rgba(9, 20, 34, .8);
}
.rs-track button:focus-visible { outline: 2px solid var(--rg-b); outline-offset: 2px; }

/* ---------- سؤال‌های رایج ---------- */
.rs-faq { display: flex; flex-direction: column; gap: 8px; }
.rs-q {
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, .72); background: rgba(232, 240, 248, .5);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 14px 30px -22px rgba(28, 48, 76, .42);
  transition: background-color .3s ease;
}
.rs-q[open] { background: var(--rg-iv); }
.rs-q summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px;
  list-style: none; cursor: pointer; font-size: 12.5px; font-weight: 800; color: var(--rg-nd);
}
.rs-q summary::-webkit-details-marker { display: none; }
.rs-q summary:focus-visible { outline: 2px solid var(--rg-b); outline-offset: 2px; }
.rs-q summary span { position: relative; flex: 0 0 14px; height: 14px; }
.rs-q summary span::before, .rs-q summary span::after { content: ''; position: absolute; top: 6px; left: 0; width: 14px; height: 2px; border-radius: 1px; background: var(--rg-b); transition: transform .3s var(--rg-e); }
.rs-q summary span::after { transform: rotate(90deg); }
.rs-q[open] summary span::after { transform: rotate(0deg); }
.rs-q p { padding: 0 16px 14px; font-size: 11.5px; line-height: 1.95; color: rgba(19, 39, 63, .84); }

/* ---------- ارسال هدیه ---------- */
.rs-gift { border-radius: 26px; overflow: hidden; }
.rs-gift__ph { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(120% 95% at 50% 30%, #520a17, #2f050c); }
.rs-gift__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rs-gift__badge { position: absolute; right: 14px; top: 14px; font-size: 10.5px; font-weight: 800; padding: 5px 12px; border-radius: 99px; background: var(--rg-iv); color: var(--rg-b); box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .4); }
.rs-gift__bd { padding: 16px; }
.rs-gift__bd h3 { font-size: 14px; font-weight: 800; color: var(--rg-nd); }
.rs-gift__steps { margin-top: 10px !important; display: flex; flex-direction: column; gap: 8px; }
.rs-gift__steps li { display: flex; align-items: center; gap: 10px; font-size: 11.5px; line-height: 1.75; color: rgba(19, 39, 63, .86); }
.rs-gift__steps i { flex: 0 0 24px; height: 24px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 800; background: rgba(78, 0, 0, .08); color: var(--rg-b); }

/* ---------- محرمانه ---------- */
.rs-private {
  position: relative; overflow: hidden; isolation: isolate; padding: 22px 18px 18px; border-radius: 26px; color: var(--rg-iv);
  background: linear-gradient(165deg, #6a0a14, #4e0000 55%, #2c0207); box-shadow: 0 26px 40px -22px rgba(78, 0, 0, .8);
}
.rs-private::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 6px); }
.rs-private__hd { display: flex; gap: 14px; align-items: center; }
.rs-private__lock { flex: 0 0 54px; height: 54px; border-radius: 17px; display: flex; align-items: center; justify-content: center; background: var(--rg-iv); color: var(--rg-b); box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .6); }
.rs-private__lock svg { width: 26px; height: 26px; }
.rs-private__hd h3 { font-size: 15px; font-weight: 800; color: var(--rg-iv); }
.rs-private__hd p { margin-top: 4px; font-size: 11px; opacity: .8; }
.rs-private__g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 16px !important; }
.rs-private__g li { padding: 12px 8px; border-radius: 16px; text-align: center; background: rgba(253, 251, 247, .1); border: 1px solid rgba(255, 255, 255, .16); }
.rs-private__g svg { width: 22px; height: 22px; }
.rs-private__g b { display: block; margin-top: 6px; font-size: 10.5px; line-height: 1.6; }
.rs-private__p { margin-top: 12px; font-size: 11px; line-height: 1.9; color: rgba(253, 251, 247, .8); }

@media (min-width: 768px) {
  .rs-card__hd h3 { font-size: 24px; }
  .rs-card__time b { font-size: 34px; }
  .rs-gift { display: flex; }
  .rs-gift__ph { flex: 0 0 46%; aspect-ratio: auto; min-height: 240px; }
}
@media (max-width: 360px) {
  .rs-track { flex-wrap: wrap; }
  .rs-track button { flex: 1 1 100%; }
}
