@import url('./customer.css');
@import url('./content.css');

/**
 * Shiny mock storefront — Scoped Styles for Cart, Checkout, Payment, Confirmation & States.
 *
 * Harmonized with Direction C / Atelier tokens (`styles.css` & `tokens.css`).
 */

.cinema-StatusBadge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-pill, 999px);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.cinema-StatusBadge--rose {
  background: #F7ECE9;
  color: #6E2435;
  border: 1px solid rgba(110, 36, 53, 0.16);
}

.cinema-StatusBadge--warm {
  background: #FAF2E6;
  color: #6E4720;
  border: 1px solid rgba(197, 155, 123, 0.34);
}

.cinema-StatusBadge--amber {
  background: #FDF4E7;
  color: #8A5A19;
  border: 1px solid rgba(214, 158, 76, 0.36);
}

.cinema-StatusBadge--success {
  background: #EBF6EF;
  color: #1D643B;
  border: 1px solid rgba(29, 100, 59, 0.22);
}

.cinema-StatusBadge--danger {
  background: #FDF2F2;
  color: #8A2229;
  border: 1px solid rgba(138, 34, 41, 0.24);
}

.cinema-Input--invalid {
  border-color: #C94A52 !important;
  background-color: #FFF9F9 !important;
  box-shadow: 0 0 0 3px rgba(201, 74, 82, 0.12) !important;
}

.cinema-FieldErrorText {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #8A2229;
  line-height: 1.35;
  margin-top: 3px;
}

.cinema-QtyStepBtn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Neutral Warm Atelier Placeholder when an image fails to load */
img.is-img-fallback {
  opacity: 1 !important;
  object-fit: contain !important;
  background: linear-gradient(135deg, #F6EFE6 0%, #EBE0D2 100%);
  color: transparent;
}

/* Dimension-Preserving Warm Skeleton Stage */
@keyframes cinemaWarmPulse {
  0%, 100% {
    opacity: 0.65;
  }
  50% {
    opacity: 0.95;
  }
}

.cinema-SkeletonBlock {
  background: linear-gradient(90deg, #EFE5D8 0%, #F7EFE6 50%, #EFE5D8 100%);
  animation: cinemaWarmPulse 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .cinema-SkeletonBlock {
    animation: none !important;
  }
}

/* ============================================================================
   CART SELECTION («جميع» + Per-Line Circle) & VERTICAL DELETE CONTROL
   ============================================================================ */
.cinema-CartSelectAllBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 250, 252, 0.94);
  border: 1px solid rgba(217, 150, 176, 0.34);
  box-shadow: 0 8px 20px -16px rgba(90, 22, 48, 0.12);
}

.cinema-CartSelectAllBtn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 4px 8px;
  margin-inline-start: -6px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #2A131C;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.cinema-CartSelectAllSummary {
  font-size: 0.76rem;
  font-weight: 600;
  color: #734859;
  font-variant-numeric: tabular-nums;
}

.cinema-CartSelectCircleBtn {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
}

.cinema-CartSelectCircleBtn::after {
  content: '';
  position: absolute;
  inset: -4px;
}

.cinema-CartSelectCircleVisual {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(158, 42, 83, 0.45);
  background: #FFFFFF;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.cinema-CartSelectCircleBtn[aria-checked="true"] .cinema-CartSelectCircleVisual,
.cinema-CartSelectAllBtn[aria-checked="true"] .cinema-CartSelectCircleVisual {
  background: linear-gradient(180deg, #B83B66 0%, #9E2A53 100%);
  border-color: #9E2A53;
  color: #FFFFFF;
  box-shadow: 0 3px 8px -3px rgba(158, 42, 83, 0.42);
}

.cinema-CartSelectAllBtn[aria-checked="mixed"] .cinema-CartSelectCircleVisual {
  background: #FCE6F0;
  border-color: #9E2A53;
  color: #9E2A53;
}

.cinema-CartLineCard {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 18px;
  transition: opacity 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.cinema-CartLineCard.is-line-unselected {
  opacity: 0.72;
  background: rgba(255, 250, 252, 0.65);
}

.cinema-CartSelectSlot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline-start: 10px;
  padding-inline-end: 4px;
  flex-shrink: 0;
}

.cinema-CartLineMain {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 10px;
}

@media (min-width: 640px) {
  .cinema-CartLineMain {
    flex-direction: row;
    align-items: center;
    padding: 14px 14px;
  }
}

.cinema-CartVerticalDeleteBtn {
  align-self: stretch;
  min-width: 44px;
  width: 46px;
  border: 0;
  padding: 0 8px;
  background: linear-gradient(180deg, #B4294B 0%, #961E3B 100%);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: background 180ms ease, filter 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .cinema-CartVerticalDeleteBtn:hover {
    background: linear-gradient(180deg, #C42E53 0%, #821731 100%);
  }
}

.cinema-CartVerticalDeleteBtn:active {
  filter: brightness(0.92);
}

/* Slide-Over Cart Drawer Item Card & Fixed 60x60 Thumbnail */
.cinema-CartItemCard.cinema-CartSelectableCard {
  padding: 0 !important;
  gap: 8px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 16px;
}

.cinema-CartItemCard.cinema-CartSelectableCard.is-line-unselected {
  opacity: 0.72;
  background: rgba(255, 250, 252, 0.65);
}

.cinema-CartDrawerSelectSlot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline-start: 8px;
  flex-shrink: 0;
}

.cinema-CartDrawerThumb {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px;
  min-height: 60px;
  max-width: 60px;
  max-height: 60px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  align-self: center;
  background: #F3EBE0;
  border: 1px solid rgba(197, 155, 123, 0.18);
}

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


