@import url('https://fonts.googleapis.com/css2?family=Anton&family=Archivo:wght@400;500;600;700;800&family=Zilla+Slab:wght@500;600;700&display=swap');

/* Discount data remains readable on fixed-price bundles outside the config UI. */
.rdp-bundle-summary-row.is-hidden {
  display: none;
}
.rdp-bundle-summary-discount {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  background: #fbe3e4;
  color: #a81b21;
  font-size: 0.875em;
  font-weight: 700;
  line-height: 1.4;
}

.rdp-bundle-summary-total-row {
  font-size: 1.5rem;
}
.rdp-bundle-summary-total-row .rdp-bundle-price-final,
.rdp-bundle-summary-total-row .woocommerce-Price-amount {
  font-size: inherit;
  font-weight: 700;
}

/* =========================================================================
   RDP Sports Plus — Bundle "Team Kit Builder"
   Brand system per rdp-brand-guide.md. Red leads, blue anchors, ink text.

   SCOPE: every rule is gated under body.rdp-bundle-config-page, a class added
   only on a single bundle product page whose pricing mode is "config". Bundles
   on any other pricing mode receive none of this styling and fall back to the
   theme/WooCommerce defaults.
   ========================================================================= */

.rdp-bundle-config-page {
  /* Neutrals */
  --white: #ffffff;
  --paper: #f7f8fa;
  --grey-100: #eef0f2;
  --grey-200: #e1e5ea;
  --grey-400: #9aa1ab;
  --grey-600: #5b626c;
  --ink: #1b1e24;

  /* RDP Red (lead accent) */
  --red: #d2232a;
  --red-700: #a81b21;
  --red-100: #fbe3e4;

  /* Ink-Blue (anchor) */
  --blue: #1e3a5f;
  --blue-800: #15293f;
  --blue-400: #3d6fa6;
  --blue-100: #e5ecf3;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  /* Spacing (8-pt) */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-2xl: 48px;

  /* Borders */
  --hairline: 1px solid var(--grey-200);
  --border-emphasis: 1.5px solid var(--ink);

  /* Type */
  --font-display: "Anton", Impact, "Haettenschweiler", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --font-slab: "Zilla Slab", Georgia, serif;

  /* Motion */
  --dur-quick: 200ms;
  --dur-base: 300ms;
  --dur-stamp: 440ms;
  --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-press: cubic-bezier(0.55, 0, 0.85, 0.4);
  --ease-settle: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================================================
   1. Page layout — let the builder breathe
   The gallery has no image on a build-to-order kit; collapse it and give
   the summary (which hosts the builder) the full content width. When a hero
   image IS set, the gallery stays and the two-column header is preserved.
   ========================================================================= */

.rdp-bundle-config-page .woocommerce-product-gallery--without-images {
  display: none;
}

/* Theme sets .summary width via a #content-scoped rule (ID specificity),
   so the override must be !important to reclaim full width for the builder. */
.rdp-bundle-config-page .product:has(.woocommerce-product-gallery--without-images) .summary.entry-summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* Title — Anton, the official headline */
.rdp-bundle-config-page .product_title.entry-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  font-size: clamp(34px, 5vw, 52px);
  color: var(--ink);
  margin: 0 0 var(--s-sm);
}

/* Top-of-summary price kept quiet; the builder owns the money moment */
.rdp-bundle-config-page .summary > .price,
.rdp-bundle-config-page .entry-summary > .price {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--grey-600);
  font-size: 18px;
  margin-bottom: var(--s-lg);
}
.rdp-bundle-config-page .summary > .price .woocommerce-Price-amount {
  color: var(--blue);
}

/* Add to cart — the red CTA. "Make it official." */
.rdp-bundle-config-page .single_add_to_cart_button,
.rdp-bundle-config-page .single_add_to_cart_button.button.alt {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 14px 28px;
  transition: background var(--dur-quick) var(--ease-snap),
    transform var(--dur-quick) var(--ease-snap);
}
.rdp-bundle-config-page .single_add_to_cart_button:hover,
.rdp-bundle-config-page .single_add_to_cart_button.button.alt:hover {
  background: var(--red-700);
  color: #fff;
}
.rdp-bundle-config-page .single_add_to_cart_button:active {
  transform: scale(0.98);
}

/* =========================================================================
   2. Builder shell
   ========================================================================= */

.rdp-bundle-config-page .rdp-bundle-container {
  position: relative;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-xl);
  margin: 0 0 var(--s-lg);
  overflow: hidden;
  text-align: left; /* brand: strong left alignment (theme centers .summary) */
}
.rdp-bundle-config-page .rdp-bundle-container * {
  text-align: inherit;
}

/* Halftone fade behind the header — screen-print dots, grey, tasteful */
.rdp-bundle-config-page .rdp-bundle-container::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 140px;
  pointer-events: none;
  opacity: 0.6;
  background-image: radial-gradient(var(--grey-200) 1.5px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
}

/* Registration mark — corner stamp on an "official" surface */
.rdp-bundle-config-page .rdp-bundle-container::after {
  content: "";
  position: absolute;
  top: var(--s-md);
  right: var(--s-md);
  width: 18px;
  height: 18px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 0V18M0 9H18' stroke='%239aa1ab' stroke-width='1'/%3E%3Ccircle cx='9' cy='9' r='5' fill='none' stroke='%239aa1ab' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

/* Header */
.rdp-bundle-config-page .rdp-bundle-header {
  position: relative;
  margin-bottom: var(--s-lg);
  padding-bottom: var(--s-md);
  border-bottom: 3px dashed var(--blue); /* stitch line — the embroidery nod */
  border-radius: 0;
}
.rdp-bundle-config-page .rdp-bundle-overline,
.rdp-bundle-config-page .rdp-bundle-section-title {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.rdp-bundle-config-page .rdp-bundle-display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--ink);
  margin: var(--s-sm) 0 var(--s-xs);
}
.rdp-bundle-config-page .rdp-bundle-subtitle {
  margin: 0;
  max-width: 52ch;
  color: var(--grey-600);
  font-size: 15px;
  line-height: 1.6;
}

/* =========================================================================
   3. Config sections — fabric + personalize
   ========================================================================= */

.rdp-bundle-config-page .rdp-bundle-config-section {
  margin-bottom: var(--s-lg);
}
.rdp-bundle-config-page .rdp-bundle-section-title {
  margin-bottom: var(--s-sm);
}

/* Fabric — segmented selector */
.rdp-bundle-config-page .rdp-bundle-fabric-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
}
.rdp-bundle-config-page .rdp-bundle-fabric-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
  padding: var(--s-sm) var(--s-md);
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color var(--dur-quick) var(--ease-snap),
    background var(--dur-quick) var(--ease-snap),
    color var(--dur-quick) var(--ease-snap);
}
.rdp-bundle-config-page .rdp-bundle-fabric-option .rdp-bundle-fabric-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rdp-bundle-config-page .rdp-bundle-fabric-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.rdp-bundle-config-page .rdp-bundle-fabric-price {
  font-size: 13px;
  color: var(--grey-600);
}
.rdp-bundle-config-page .rdp-bundle-fabric-option:hover {
  border-color: var(--grey-400);
}
.rdp-bundle-config-page .rdp-bundle-fabric-option:has(.rdp-bundle-fabric-input:checked) {
  background: var(--red);
  border-color: var(--red);
}
.rdp-bundle-config-page .rdp-bundle-fabric-option:has(.rdp-bundle-fabric-input:checked) .rdp-bundle-fabric-name,
.rdp-bundle-config-page .rdp-bundle-fabric-option:has(.rdp-bundle-fabric-input:checked) .rdp-bundle-fabric-price {
  color: #fff;
}
.rdp-bundle-config-page .rdp-bundle-fabric-option:has(.rdp-bundle-fabric-input:focus-visible) {
  box-shadow: 0 0 0 3px var(--red-100);
}

/* Personalize — text + logo upload */
.rdp-bundle-config-page .rdp-bundle-custom-fields {
  display: grid;
  gap: var(--s-md);
}
.rdp-bundle-config-page .rdp-bundle-custom-field {
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
}
.rdp-bundle-config-page .rdp-bundle-custom-field > span {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.rdp-bundle-config-page .rdp-bundle-custom-input {
  /* theme caps inputs via a #content-scoped rule; override to keep
     single-line fields a sane width rather than full-bleed */
  max-width: 420px !important;
}
.rdp-bundle-config-page .rdp-bundle-custom-input,
.rdp-bundle-config-page .rdp-bundle-color-select,
.rdp-bundle-config-page .rdp-bundle-attribute-select {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  width: 100%;
  transition: border-color var(--dur-quick) var(--ease-snap),
    box-shadow var(--dur-quick) var(--ease-snap);
}
.rdp-bundle-config-page .rdp-bundle-custom-input:focus,
.rdp-bundle-config-page .rdp-bundle-color-select:focus,
.rdp-bundle-config-page .rdp-bundle-attribute-select:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px var(--blue-100);
}

/* Logo upload — branded dropzone */
.rdp-bundle-config-page .rdp-bundle-logo-input {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--grey-600);
  width: 100%;
  padding: var(--s-md);
  background: var(--paper);
  border: 2px dashed var(--grey-200);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--dur-quick) var(--ease-snap);
}
.rdp-bundle-config-page .rdp-bundle-logo-input:hover {
  border-color: var(--blue-400);
}
.rdp-bundle-config-page .rdp-bundle-logo-input::file-selector-button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--blue);
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--r-sm);
  padding: 7px 14px;
  margin-right: var(--s-md);
  cursor: pointer;
}
.rdp-bundle-config-page .rdp-bundle-logo-status {
  display: inline-block;
  margin-top: var(--s-xs);
  font-size: 13px;
  color: var(--grey-600);
}
.rdp-bundle-config-page .rdp-bundle-logo-preview {
  display: block;
  max-width: 260px;
  margin-top: var(--s-sm);
}
.rdp-bundle-config-page .rdp-bundle-logo-preview[hidden] {
  display: none;
}
.rdp-bundle-config-page .rdp-bundle-logo-preview img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 220px;
  display: block;
  border: var(--hairline);
  border-radius: var(--r-md);
  background: #fff;
}

/* =========================================================================
   4. Component cards — "Size your team"
   ========================================================================= */

.rdp-bundle-config-page .rdp-bundle-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-lg);
  counter-reset: rdp-kit;
}
.rdp-bundle-config-page .rdp-bundle-items-title {
  grid-column: 1 / -1;
}

.rdp-bundle-config-page .rdp-bundle-item {
  counter-increment: rdp-kit;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  margin: 0;
  padding: var(--s-md);
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--r-lg);
}

/* Numbered registration badge */
.rdp-bundle-config-page .rdp-bundle-item::before {
  content: counter(rdp-kit);
  position: absolute;
  top: calc(-1 * var(--s-sm));
  left: var(--s-md);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-family: var(--font-slab);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--white);
}

.rdp-bundle-config-page .rdp-bundle-item .rdp-bundle-item-image {
  width: 100%;
  flex: none;
  aspect-ratio: 1 / 1;
  background: var(--grey-100);
  border-radius: var(--r-md);
  overflow: hidden;
}
.rdp-bundle-config-page .rdp-bundle-item .rdp-bundle-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rdp-bundle-config-page .rdp-bundle-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}
.rdp-bundle-config-page .rdp-bundle-item-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  font-size: 19px;
}
.rdp-bundle-config-page .rdp-bundle-item-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur-quick) var(--ease-snap);
}
.rdp-bundle-config-page .rdp-bundle-item-title a:hover {
  color: var(--red);
}

/* Config pricing: the bundle is priced by fabric + size + add-ons, so the
   component products' own prices are noise — hide them on each card. */
.rdp-bundle-config-page .rdp-bundle-item-meta {
  display: none;
}
.rdp-bundle-config-page .rdp-bundle-item-quantity {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-400);
}

/* Attribute + color fields */
.rdp-bundle-config-page .rdp-bundle-attributes,
.rdp-bundle-config-page .rdp-bundle-color-field {
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
}
.rdp-bundle-config-page .rdp-bundle-attribute-field {
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
  margin-bottom: var(--s-sm);
}
.rdp-bundle-config-page .rdp-bundle-attribute-field label,
.rdp-bundle-config-page .rdp-bundle-color-field > span {
  font-weight: 600;
  font-size: 13px;
  color: var(--grey-600);
}

/* Uniform attribute (driven by global fabric choice) stays hidden —
   keep this rule; it is what the fabric-prefix fix relies on. */
.rdp-bundle-config-page .rdp-bundle-uniform-attribute-field {
  display: none;
}

/* Variation display states */
.rdp-bundle-config-page .rdp-bundle-item .rdp-bundle-variation-display {
  margin: var(--s-xs) 0 0;
  font-size: 14px;
  color: var(--grey-600);
  font-style: italic;
}
.rdp-bundle-config-page .rdp-bundle-item .rdp-bundle-variation-display.is-partial {
  color: var(--grey-600);
}
.rdp-bundle-config-page .rdp-bundle-item .rdp-bundle-variation-display.is-selected {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}
.rdp-bundle-config-page .rdp-bundle-item .rdp-bundle-variation-display.is-unavailable {
  font-style: normal;
  color: var(--red-700);
  background: var(--red-100);
  border-radius: var(--r-sm);
  padding: 6px 10px;
}

.rdp-bundle-config-page .rdp-bundle-variation-fixed {
  font-size: 14px;
  color: var(--ink);
}
.rdp-bundle-config-page .rdp-bundle-variation-fixed strong {
  color: var(--grey-600);
  font-weight: 600;
}

/* =========================================================================
   5. Optional add-on (hoodie) — a stitched, opt-in card that stands apart
   ========================================================================= */

.rdp-bundle-config-page .rdp-bundle-item-optional {
  grid-column: 1 / -1;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--s-lg);
  border: 2px dashed var(--red);
  background: linear-gradient(0deg, var(--red-100), var(--red-100)) padding-box;
  background-color: #fffafa;
}
.rdp-bundle-config-page .rdp-bundle-item-optional .rdp-bundle-item-image {
  width: 120px;
  flex: 0 0 120px;
}
.rdp-bundle-config-page .rdp-bundle-item-optional .rdp-bundle-item-details {
  min-width: 220px;
}

.rdp-bundle-config-page .rdp-bundle-optional-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  align-self: flex-start;
  padding: var(--s-sm) var(--s-md);
  font-weight: 700;
  font-size: 14px;
  color: var(--red-700);
  background: var(--white);
  border: 1.5px solid var(--red);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--dur-quick) var(--ease-snap),
    color var(--dur-quick) var(--ease-snap);
}
.rdp-bundle-config-page .rdp-bundle-optional-toggle .rdp-bundle-optional-input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--red);
  cursor: pointer;
}
.rdp-bundle-config-page .rdp-bundle-item-optional.is-optional-selected .rdp-bundle-optional-toggle {
  background: var(--red);
  color: #fff;
}

/* Dim the configuration until the add-on is opted in */
.rdp-bundle-config-page .rdp-bundle-item-optional:not(.is-optional-selected) .rdp-bundle-item-image,
.rdp-bundle-config-page .rdp-bundle-item-optional:not(.is-optional-selected) .rdp-bundle-color-field,
.rdp-bundle-config-page .rdp-bundle-item-optional:not(.is-optional-selected) .rdp-bundle-attributes {
  opacity: 0.45;
  transition: opacity var(--dur-base) var(--ease-snap);
}

/* =========================================================================
   6. Pricing summary — the money moment
   ========================================================================= */

.rdp-bundle-config-page .rdp-bundle-summary-totals {
  display: grid;
  gap: var(--s-sm);
  margin: 0 0 var(--s-lg);
  padding: var(--s-lg);
  background: var(--grey-100);
  border-radius: var(--r-lg);
  font-family: var(--font-body);
  color: var(--ink);
}
.rdp-bundle-config-page .rdp-bundle-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-md);
}
.rdp-bundle-config-page .rdp-bundle-summary-heading {
  margin-bottom: var(--s-xs);
}
.rdp-bundle-config-page .rdp-bundle-summary-label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.rdp-bundle-config-page .rdp-bundle-summary-caption {
  color: var(--grey-600);
  font-size: 14px;
}
.rdp-bundle-config-page .rdp-bundle-summary-subtotal {
  font-weight: 600;
  color: var(--ink);
}
.rdp-bundle-config-page .rdp-bundle-summary-subtotal.is-discounted {
  text-decoration: line-through;
  color: var(--grey-400);
}
.rdp-bundle-config-page .rdp-bundle-summary-discount-row.is-hidden {
  display: none;
}
.rdp-bundle-config-page .rdp-bundle-summary-discount {
  font-weight: 700;
  color: var(--red);
}

.rdp-bundle-config-page .rdp-bundle-summary-total-row {
  margin-top: var(--s-xs);
  padding-top: var(--s-sm);
  border-top: var(--hairline);
  align-items: baseline;
}
.rdp-bundle-config-page .rdp-bundle-summary-total-row .rdp-bundle-summary-caption {
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rdp-bundle-config-page .rdp-bundle-summary-total-row .rdp-bundle-price-final,
.rdp-bundle-config-page .rdp-bundle-summary-total-row .rdp-bundle-price-comparison {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
}
.rdp-bundle-config-page .rdp-bundle-summary-total-row .woocommerce-Price-amount {
  color: inherit;
}

/* Reduced-price comparison */
.rdp-bundle-config-page .rdp-bundle-price-comparison {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-sm);
  flex-wrap: wrap;
}
.rdp-bundle-config-page .rdp-bundle-price-original,
.rdp-bundle-config-page .rdp-bundle-summary-price .rdp-bundle-price-original {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--grey-400);
  text-decoration: line-through;
}
.rdp-bundle-config-page .rdp-bundle-price-final,
.rdp-bundle-config-page .rdp-bundle-summary-price .rdp-bundle-price-final {
  text-decoration: none;
  color: var(--red);
}

/* Stacked variant (used by JS when rewriting the .price node) */
.rdp-bundle-config-page .rdp-bundle-price-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-xs);
  line-height: 1.25;
}
.rdp-bundle-config-page .rdp-bundle-price-current {
  font-weight: 700;
  color: var(--ink);
}
.rdp-bundle-config-page .rdp-bundle-price-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
}

.rdp-bundle-config-page .rdp-bundle-empty {
  padding: var(--s-lg);
  background: var(--grey-100);
  border-radius: var(--r-md);
  color: var(--grey-600);
}

/* =========================================================================
   7. Motion — staggered card reveal on load (signature-lite)
   ========================================================================= */

@keyframes rdp-kit-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.rdp-bundle-config-page .rdp-bundle-item {
  animation: rdp-kit-rise var(--dur-base) var(--ease-snap) both;
}
.rdp-bundle-config-page .rdp-bundle-item:nth-child(2) { animation-delay: 40ms; }
.rdp-bundle-config-page .rdp-bundle-item:nth-child(3) { animation-delay: 80ms; }
.rdp-bundle-config-page .rdp-bundle-item:nth-child(4) { animation-delay: 120ms; }
.rdp-bundle-config-page .rdp-bundle-item:nth-child(5) { animation-delay: 160ms; }
.rdp-bundle-config-page .rdp-bundle-item:nth-child(6) { animation-delay: 200ms; }

/* =========================================================================
   8. Responsive
   ========================================================================= */

@media (max-width: 780px) {
  .rdp-bundle-config-page .rdp-bundle-container {
    padding: var(--s-lg);
  }
  .rdp-bundle-config-page .rdp-bundle-items {
    grid-template-columns: 1fr;
  }
  .rdp-bundle-config-page .rdp-bundle-item-optional {
    flex-direction: column;
  }
  .rdp-bundle-config-page .rdp-bundle-item-optional .rdp-bundle-item-image {
    width: 100%;
    flex: none;
  }
}

/* =========================================================================
   9. Reduced motion — always ship the fallback
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  .rdp-bundle-config-page *,
  .rdp-bundle-config-page *::before,
  .rdp-bundle-config-page *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .rdp-bundle-config-page .rdp-bundle-item {
    opacity: 1;
    transform: none;
  }
}
