#unified-commerce-section.unified-commerce {
  overflow: hidden;
}

#unified-commerce-section .unified-commerce__scroll {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: auto;
  margin-top: 2rem;
  padding-bottom: 0;
}

@media (min-width: 1024px) {
  #unified-commerce-section .unified-commerce__scroll {
    gap: 1.5rem;
    margin-top: 2.5rem;
  }
}

#unified-commerce-section .unified-commerce__stage {
  height: auto !important;
  min-height: 0;
  overflow: hidden;
  position: relative !important;
  top: auto !important;
  width: 100%;
}

/* Hidden radios (siblings of stage) — fixed focus avoids page scroll jump */
#unified-commerce-section .commerce-stack__input {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  left: 50%;
  margin: -1px;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  position: fixed;
  top: 50%;
  white-space: nowrap;
  width: 1px;
  z-index: -1;
}

#unified-commerce-section .commerce-stack__input:focus {
  outline: none;
}

#unified-commerce-section .commerce-stack__input:focus-visible {
  outline: none;
}

#unified-commerce-section .unified-commerce__cards {
  display: grid;
  height: auto !important;
  position: relative;
  width: 100%;
}

#unified-commerce-section .commerce-card {
  display: none;
  flex-direction: column;
  grid-area: 1 / 1;
  overflow: visible;
  pointer-events: none;
  position: relative;
  width: 100%;
}

#unified-commerce-section .commerce-card__advance {
  position: absolute;
  inset: 0;
  z-index: 4;
  cursor: pointer;
  border-radius: 30px;
}

#unified-commerce-section .commerce-card__advance:focus-visible {
  outline: 2px solid #5f15ee;
  outline-offset: 4px;
}

#unified-commerce-section .commerce-card__btn {
  position: relative;
  z-index: 6;
}

#unified-commerce-section .commerce-card__nav {
  display: none;
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 8;
}

#unified-commerce-section
  #commerce-stack-1:checked
  ~ .unified-commerce__stage
  .unified-commerce__cards
  [data-card="1"]
  .commerce-card__nav,
#unified-commerce-section
  #commerce-stack-2:checked
  ~ .unified-commerce__stage
  .unified-commerce__cards
  [data-card="2"]
  .commerce-card__nav,
#unified-commerce-section
  #commerce-stack-3:checked
  ~ .unified-commerce__stage
  .unified-commerce__cards
  [data-card="3"]
  .commerce-card__nav,
#unified-commerce-section
  #commerce-stack-4:checked
  ~ .unified-commerce__stage
  .unified-commerce__cards
  [data-card="4"]
  .commerce-card__nav {
  display: block;
}

#unified-commerce-section .commerce-stack__arrow {
  align-items: center;
  background: #fff;
  border: 1px solid #e6e8f2;
  border-radius: 999px;
  box-shadow:
    0 4px 14px rgba(36, 26, 120, 0.08),
    0 1px 2px rgba(15, 18, 32, 0.04);
  color: #0f1220;
  cursor: pointer;
  display: inline-flex;
  height: 2.75rem;
  justify-content: center;
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
  width: 2.75rem;
}

#unified-commerce-section .commerce-stack__arrow--prev {
  left: 0.75rem;
}

#unified-commerce-section .commerce-stack__arrow--next {
  right: 0.75rem;
}

#unified-commerce-section .commerce-stack__arrow:hover {
  background: #f9f6ff;
  border-color: #e0d5ff;
}

#unified-commerce-section .commerce-stack__arrow:focus-visible {
  outline: 2px solid #5f15ee;
  outline-offset: 2px;
}

#unified-commerce-section .commerce-stack__arrow:active {
  transform: translateY(-50%) scale(0.96);
}

#unified-commerce-section .commerce-stack__arrow svg {
  height: 1.25rem;
  width: 1.25rem;
}

#unified-commerce-section .commerce-card__layers {
  display: none;
}

#unified-commerce-section .commerce-card__layer {
  border: 1px solid #eae7ff;
  position: absolute;
}

#unified-commerce-section .commerce-card__layer--4 {
  background: #b09bfc;
  border-radius: 52px;
  height: 100%;
  left: 15%;
  top: 0;
  width: 70%;
}

#unified-commerce-section .commerce-card__layer--3 {
  background: #c7b1fe;
  border-radius: 46px;
  height: calc(100% - 1.25rem);
  left: 10%;
  top: 1.25rem;
  width: 80%;
}

#unified-commerce-section .commerce-card__layer--2 {
  background: #dfd3ff;
  border-radius: 36px;
  height: calc(100% - 2.125rem);
  left: 5%;
  top: 2.125rem;
  width: 90%;
}

#unified-commerce-section .commerce-card__layer--1 {
  background: #ebe3ff;
  border-radius: 32px;
  height: calc(100% - 3.25rem);
  left: 2.5%;
  top: 3.25rem;
  width: 95%;
}

#unified-commerce-section .commerce-card__surface {
  background: linear-gradient(180deg, #faf8ff 78.62%, #f2edff 100%);
  border: 1px solid #eae7ff;
  border-radius: 30px;
  box-shadow:
    0 4px 14px rgba(36, 26, 120, 0.06),
    0 1px 2px rgba(15, 18, 32, 0.04);
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: 0;
  min-height: 0;
  overflow: visible;
  padding: 1rem 3.25rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  #unified-commerce-section .commerce-card__surface {
    padding: 1.5rem 3.75rem;
  }
}

@media (min-width: 1024px) {
  #unified-commerce-section .commerce-card__surface {
    padding: 2rem 4.5rem;
  }

  #unified-commerce-section .commerce-stack__arrow {
    height: 3rem;
    width: 3rem;
  }

  #unified-commerce-section .commerce-stack__arrow--prev {
    left: 1.25rem;
  }

  #unified-commerce-section .commerce-stack__arrow--next {
    right: 1.25rem;
  }
}

#unified-commerce-section .commerce-card__body {
  align-items: center;
  display: grid;
  flex: 1;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
  min-height: auto;
  overflow: visible;
}

@media (min-width: 1024px) {
  #unified-commerce-section .commerce-card__body {
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 46%);
  }
}

#unified-commerce-section .commerce-card__copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

@media (min-width: 1024px) {
  #unified-commerce-section .commerce-card__copy {
    gap: 1.25rem;
  }
}

#unified-commerce-section .commerce-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#unified-commerce-section .commerce-card__features {
  gap: 0.75rem;
}

#unified-commerce-section .commerce-card__actions {
  gap: 0.75rem;
}

/* One active card in flow — stage height follows card; dots sit in flex gap below */
#unified-commerce-section
  #commerce-stack-1:checked
  ~ .unified-commerce__stage
  .unified-commerce__cards
  [data-card="1"],
#unified-commerce-section
  #commerce-stack-2:checked
  ~ .unified-commerce__stage
  .unified-commerce__cards
  [data-card="2"],
#unified-commerce-section
  #commerce-stack-3:checked
  ~ .unified-commerce__stage
  .unified-commerce__cards
  [data-card="3"],
#unified-commerce-section
  #commerce-stack-4:checked
  ~ .unified-commerce__stage
  .unified-commerce__cards
  [data-card="4"] {
  display: flex !important;
  pointer-events: auto;
  z-index: 1;
}

#unified-commerce-section .commerce-stack__dots {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  min-height: 0.5rem;
  position: relative;
  z-index: 2;
}

#unified-commerce-section .commerce-stack__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #e0d5ff;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

#unified-commerce-section .commerce-stack__dot:hover {
  background: #c7b1fe;
}

#unified-commerce-section
  #commerce-stack-1:checked
  ~ .commerce-stack__dots
  label[for="commerce-stack-1"],
#unified-commerce-section
  #commerce-stack-2:checked
  ~ .commerce-stack__dots
  label[for="commerce-stack-2"],
#unified-commerce-section
  #commerce-stack-3:checked
  ~ .commerce-stack__dots
  label[for="commerce-stack-3"],
#unified-commerce-section
  #commerce-stack-4:checked
  ~ .commerce-stack__dots
  label[for="commerce-stack-4"] {
  background: #5f15ee;
  transform: scale(1.15);
}

/* Tablet: vertical stack — all cards visible (natural page scroll) */
@media (min-width: 431px) and (max-width: 1023px) {
  #unified-commerce-section .unified-commerce__scroll {
    gap: 0;
  }

  #unified-commerce-section .unified-commerce__cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    grid-template-columns: unset;
  }

  #unified-commerce-section .commerce-card {
    display: flex !important;
    grid-area: unset;
    pointer-events: auto !important;
  }

  #unified-commerce-section .commerce-card__layers,
  #unified-commerce-section .commerce-stack__dots,
  #unified-commerce-section .commerce-card__nav {
    display: none !important;
  }

  #unified-commerce-section .commerce-card__surface {
    margin-top: 0;
    padding: 1.25rem 1.25rem;
  }

  #unified-commerce-section .commerce-card__actions {
    flex-direction: column;
  }

  #unified-commerce-section .commerce-card__btn {
    justify-content: center;
    width: 100%;
    white-space: normal;
  }

  #unified-commerce-section .commerce-card__image {
    max-height: 220px;
  }
}

@media (max-width: 430px) {
  #unified-commerce-section .unified-commerce__scroll {
    gap: 0;
  }

  #unified-commerce-section .unified-commerce__stage {
    height: auto !important;
    position: relative !important;
    top: auto !important;
  }

  #unified-commerce-section .unified-commerce__cards {
    display: grid !important;
    flex-direction: unset;
    gap: 0;
    grid-template-columns: 1fr;
    height: auto !important;
  }

  #unified-commerce-section .commerce-card {
    display: none !important;
    grid-area: 1 / 1;
    opacity: 1 !important;
    pointer-events: none;
    position: relative !important;
    transform: none !important;
  }

  #unified-commerce-section
    #commerce-stack-1:checked
    ~ .unified-commerce__stage
    .unified-commerce__cards
    [data-card="1"],
  #unified-commerce-section
    #commerce-stack-2:checked
    ~ .unified-commerce__stage
    .unified-commerce__cards
    [data-card="2"],
  #unified-commerce-section
    #commerce-stack-3:checked
    ~ .unified-commerce__stage
    .unified-commerce__cards
    [data-card="3"],
  #unified-commerce-section
    #commerce-stack-4:checked
    ~ .unified-commerce__stage
    .unified-commerce__cards
    [data-card="4"] {
    display: flex !important;
    pointer-events: auto;
  }

  #unified-commerce-section .commerce-card__layers,
  #unified-commerce-section .commerce-stack__dots {
    display: none !important;
  }

  #unified-commerce-section .commerce-card__surface {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    padding: 1.25rem;
  }

  #unified-commerce-section .commerce-card__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    order: 1;
  }

  #unified-commerce-section .commerce-card__visual {
    min-height: 0;
    order: -1;
  }

  #unified-commerce-section .commerce-card__image {
    border-radius: 15px;
    max-height: 216px;
  }

  #unified-commerce-section .commerce-card__copy {
    gap: 1rem;
  }

  #unified-commerce-section .commerce-card__head {
    gap: 0.75rem;
  }

  #unified-commerce-section .commerce-card__title {
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
  }

  #unified-commerce-section .commerce-card__lede {
    font-size: 0.75rem;
    line-height: normal;
    max-width: none;
  }

  #unified-commerce-section .commerce-card__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.081em;
  }

  #unified-commerce-section .commerce-card__features {
    gap: 0.75rem;
  }

  #unified-commerce-section .commerce-card__features li {
    gap: 1rem;
  }

  #unified-commerce-section .commerce-card__feature-title {
    font-size: 0.875rem;
    line-height: normal;
  }

  #unified-commerce-section .commerce-card__feature-desc {
    font-size: 0.875rem;
    line-height: 1.32;
  }

  #unified-commerce-section .commerce-card__actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  #unified-commerce-section .commerce-card__btn {
    border-radius: 62px;
    font-size: 0.875rem;
    height: 3.25rem;
    justify-content: center;
    width: 100%;
    white-space: normal;
  }

  /* Hide overlay nav; show bottom external controls on active card only */
  #unified-commerce-section .commerce-card__nav {
    display: none !important;
    height: auto;
    inset: auto !important;
    margin-top: 1rem;
    order: 2;
    pointer-events: none;
    position: static !important;
    width: 100%;
  }

  #unified-commerce-section
    #commerce-stack-1:checked
    ~ .unified-commerce__stage
    .unified-commerce__cards
    [data-card="1"]
    .commerce-card__nav,
  #unified-commerce-section
    #commerce-stack-2:checked
    ~ .unified-commerce__stage
    .unified-commerce__cards
    [data-card="2"]
    .commerce-card__nav,
  #unified-commerce-section
    #commerce-stack-3:checked
    ~ .unified-commerce__stage
    .unified-commerce__cards
    [data-card="3"]
    .commerce-card__nav,
  #unified-commerce-section
    #commerce-stack-4:checked
    ~ .unified-commerce__stage
    .unified-commerce__cards
    [data-card="4"]
    .commerce-card__nav {
    align-items: center;
    display: flex !important;
    gap: 0.75rem;
    justify-content: flex-end;
    pointer-events: auto;
  }

  #unified-commerce-section .commerce-stack__arrow {
    height: 2.5rem;
    left: auto !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 2.5rem;
  }

  #unified-commerce-section .commerce-stack__arrow:active {
    transform: scale(0.96) !important;
  }

  #unified-commerce-section .commerce-stack__arrow svg {
    height: 1rem;
    width: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #unified-commerce-section .commerce-card {
    transition: none;
  }
}
