/* ============================================================
   Cart Order Summary — scoped to .checkout__area only
   ============================================================ */

.checkout__area .cos__row {
  display: flex;
  gap: 14px;
  padding: 0 !important;
  border: none !important;
  font-size: inherit !important;
}

.checkout__area .cos__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.checkout__area .cos__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.checkout__area .cos__thumb-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 252, 112, 0.15), rgba(0, 252, 112, 0.05));
}

.checkout__area .cos__body {
  flex: 1 1 auto;
  min-width: 0;
}

/* Title + flag + region badge — one flex line */
.checkout__area .cos__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.checkout__area .cos__title {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.checkout__area .cos__flag {
  width: 20px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Override global margin-left: auto on .country__code */
.checkout__area .cos__title-row .country__code {
  margin-left: 0;
}

/* Secondary meta: badge icon, discount pill, qty */
.checkout__area .cos__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.checkout__area .cos__meta-last {
  margin-bottom: 0;
}

.checkout__area .cos__badge-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checkout__area .cos__qty {
  font-size: 12px;
  opacity: 0.65;
}

/* Category chips */
.checkout__area .cos__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.checkout__area .cos__body .cos__chips .cos__chip {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  font-size: 16px !important;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4 !important;
}

/* Price column */
.checkout__area .cos__price {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  text-align: right;
}

.checkout__area .cos__price-original {
  display: block;
  font-size: 12px;
  opacity: 0.45;
  font-weight: 400;
  margin-top: 2px;
}

/* Totals rows */
.checkout__area .cos__totals {
  margin-bottom: 0;
}

.checkout__area .cos__totals-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 15px;
  opacity: 0.8;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border: none !important;
}

.checkout__area .cos__totals-discount {
  opacity: 1;
  color: #00fc70;
}

.checkout__area .cos__totals-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  opacity: 1;
}

/* ============================================================
   Order Received page — .orv__*
   ============================================================ */

.orv__area {
  padding-top: 70px;
}

/* ── Left: hero ───────────────────────────────────────────── */

.orv__hero {
  margin-bottom: 28px;
}

.orv__check-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.orv__check-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(0, 252, 112, 0.3);
  animation: orv-pulse 2.6s ease-in-out infinite;
}

@keyframes orv-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.65; }
  50%       { transform: scale(1.15); opacity: 0.15; }
}

.orv__heading {
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.15;
}

.orv__sub {
  font-size: 19px;
  opacity: 0.6;
  margin-bottom: 24px;
}

.orv__order-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 252, 112, 0.07);
  border: 1px solid rgba(0, 252, 112, 0.28);
  border-radius: 6px;
  padding: 10px 22px;
}

.orv__pill-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.45;
  color: #fff;
}

.orv__pill-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--tg-theme-primary);
  letter-spacing: 0.03em;
}

/* ── Email notice card ─────────────────────────────────────── */

.orv__email-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.orv__email-img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}

.orv__email-text p {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}

.orv__email-text p:last-child {
  margin-bottom: 0;
}

.orv__resend {
  font-size: 16px !important;
  opacity: 0.55;
}

.orv__resend a {
  color: var(--tg-theme-primary);
}

/* ── Steps ─────────────────────────────────────────────────── */

.orv__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.orv__step {
  background: linear-gradient(160deg, rgba(0, 252, 112, 0.07) 0%, rgba(0, 252, 112, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 22px 18px 20px;
  position: relative;
}

.orv__step-img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 12px;
}

.orv__step-num {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.22;
  color: var(--tg-theme-primary);
}

.orv__step-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 5px;
}

.orv__step-desc {
  font-size: 15px;
  opacity: 0.5;
  margin: 0;
  line-height: 1.5;
}

/* ── Actions ───────────────────────────────────────────────── */

.orv__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.orv__signin-btn {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1px solid rgba(0, 252, 112, 0.45);
  color: var(--tg-theme-primary);
  transition: background 0.2s, color 0.2s;
}

.orv__signin-btn:hover {
  background: var(--tg-theme-primary);
  color: #0d0d0d;
}

/* ── Right: order summary card ─────────────────────────────── */

.orv__summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px 24px;
  position: sticky;
  top: 24px;
}

.orv__summary-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Item rows */
.orv__items {
  margin-bottom: 0;
}

.orv__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-top: none !important;
}

.orv__item:last-child {
  border-bottom: none !important;
}

.orv__item-thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.orv__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.orv__item-thumb-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 252, 112, 0.12), rgba(0, 252, 112, 0.04));
}

.orv__item-body {
  flex: 1 1 auto;
  min-width: 0;
}

.orv__item-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orv__item-qty {
  font-size: 13px;
  opacity: 0.5;
}

.orv__item-price {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Totals */
.orv__totals {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.orv__totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  opacity: 0.65;
  margin-bottom: 8px;
}

.orv__totals-grand {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Status indicator */
.orv__summary-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 15px;
  opacity: 0.65;
}

.orv__status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tg-theme-primary);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0, 252, 112, 0.5);
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 991px) {
  .orv__summary {
    position: static;
    margin-top: 8px;
  }
}

@media (max-width: 767px) {
  .orv__heading {
    font-size: 30px;
  }

  .orv__steps {
    grid-template-columns: 1fr;
  }

  .orv__email-card {
    flex-direction: column;
  }
}
