/*
 * mobile-premium-components.css
 * EligeTusFotos — Mobile Premium Flow
 *
 * Componentes reutilizables del flujo premium:
 * navbar, hero, stepper, card, botones, footer glass, cart item, summary.
 *
 * Requiere: mobile-premium-layout.css (tokens --mp-*).
 * Breakpoint único: 768px.
 * No toca Bootstrap ni clases legacy.
 */

/* ─────────────────────────────────────────────────────────────────────────
   1. NAVBAR
   ─────────────────────────────────────────────────────────────────────── */

.mp-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
    padding-top: env(safe-area-inset-top, 0px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(242, 242, 247, 0.88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.mp-navbar__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--mp-radius-icon, 999px);
    background: rgba(0, 0, 0, 0.05);
    color: var(--mp-primary, #0066FF);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.mp-navbar__button:hover {
    background: rgba(0, 0, 0, 0.09);
}

.mp-navbar__brand {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 8px;
}

.mp-navbar__logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.etf-premium-flow-page .mp-navbar--brand-image-only .mp-navbar__brand {
    min-width: 0;
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    max-width: min(50vw, 190px);
    overflow: visible;
    padding: 0;
    gap: 0;
    text-decoration: none;
    color: inherit;
}

.etf-premium-flow-page .mp-navbar--brand-image-only .mp-navbar__logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 41px;
    max-width: min(50vw, 190px);
    object-fit: contain;
    flex: 0 1 auto;
}

.etf-premium-flow-page .mp-navbar--brand-image-only .mp-navbar__brand-text {
    display: none;
}

.etf-premium-flow-page .mp-navbar--brand-image-only .mp-navbar__brand-fallback {
    display: inline-block;
    max-width: min(50vw, 190px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    color: var(--mp-text, #111827);
}

.etf-premium-flow-page .mp-navbar--brand-image-only .mp-navbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.etf-premium-flow-page .mp-navbar--brand-image-only .mp-navbar__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mp-navbar__cart {
    position: relative;
}

.mp-navbar__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--mp-radius-pill, 999px);
    background: var(--mp-danger, #FF3B30);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.etf-premium-flow-page .mp-navbar--mobile-premium {
    height: auto;
    min-height: 55px;
    padding: 6px 20px;
    background: #FFFFFF;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0 0 28px 28px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    gap: 12px;
    margin-left: calc(-1 * var(--mp-screen-x, 28px));
    margin-right: calc(-1 * var(--mp-screen-x, 28px));
    width: calc(100% + 2 * var(--mp-screen-x, 28px));
}

.etf-premium-flow-page .mp-navbar--selection,
.etf-premium-flow-page .mp-navbar--complete {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.etf-premium-flow-page .mp-navbar--checkout-focus {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
}

.etf-premium-flow-page .mp-navbar--checkout-focus::after {
    content: "";
    width: 40px;
    height: 40px;
}

.etf-premium-flow-page .mp-navbar--mobile-premium .mp-navbar__back,
.etf-premium-flow-page .mp-navbar--mobile-premium .mp-navbar__cart,
.etf-premium-flow-page .mp-navbar--mobile-premium .mp-navbar__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #1C1C1E;
    background: transparent;
    border: none;
    border-radius: 999px !important;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.etf-premium-flow-page .mp-navbar--mobile-premium .mp-navbar__back:hover,
.etf-premium-flow-page .mp-navbar--mobile-premium .mp-navbar__cart:hover,
.etf-premium-flow-page .mp-navbar--mobile-premium .mp-navbar__menu:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1C1C1E;
}

.etf-premium-flow-page .mp-navbar--mobile-premium .mp-navbar__back:focus-visible,
.etf-premium-flow-page .mp-navbar--mobile-premium .mp-navbar__cart:focus-visible,
.etf-premium-flow-page .mp-navbar--mobile-premium .mp-navbar__menu:focus-visible {
    outline: 2px solid rgba(0, 102, 255, 0.28);
    outline-offset: 2px;
}

.etf-premium-flow-page .mp-navbar--mobile-premium .mp-navbar__brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    max-width: min(50vw, 190px);
    overflow: visible;
    padding: 0;
    gap: 0;
    text-decoration: none;
    color: inherit;
}

.etf-premium-flow-page .mp-navbar--checkout-focus .mp-navbar__brand {
    justify-self: center;
    justify-content: center;
}

.etf-premium-flow-page .mp-navbar--mobile-premium .mp-navbar__logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 41px;
    max-width: min(50vw, 190px);
    object-fit: contain;
    flex: 0 1 auto;
}

.etf-premium-flow-page .mp-navbar--mobile-premium .mp-navbar__brand-fallback {
    display: inline-block;
    max-width: min(50vw, 190px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    color: var(--mp-text, #111827);
}

.etf-premium-flow-page .mp-navbar--mobile-premium .mp-navbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.etf-premium-flow-page .mp-navbar--mobile-premium .mp-navbar__cart-badge {
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 12.35px;
    background: #0066FF;
    border-radius: 999px !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   2. HERO
   ─────────────────────────────────────────────────────────────────────── */

.mp-hero {
    padding: var(--mp-space-32, 32px) 0 var(--mp-space-20, 20px);
}

.mp-hero-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--mp-text, #111111);
    margin: 0 0 8px;
}

.mp-hero-title-lg {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.6px;
    line-height: 1.15;
    color: var(--mp-text, #111111);
    margin: 0 0 8px;
}

.mp-hero-subtitle {
    font-size: 15px;
    color: var(--mp-text-secondary, #6E6E73);
    margin: 0;
    line-height: 1.45;
}

.etf-premium-flow-page :where(.pantalla-carrito-flow__hero,
    .payment-method-flow__hero,
    .seller-agreement-flow__hero,
    .datos-bancarios-flow__hero).mp-hero {
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
    text-rendering: auto;
    -webkit-font-smoothing: auto;
}

.etf-premium-flow-page :where(.pantalla-carrito-flow__hero,
    .payment-method-flow__hero).mp-hero {
    width: min(100%, 372px);
    min-height: var(--mp-hero-compact-min-h, 76px);
    display: grid;
    align-content: center;
    padding-block: var(--mp-hero-compact-py, 14px);
    margin-inline: auto;
}

.etf-premium-flow-page :where(.pantalla-carrito-flow__hero,
    .payment-method-flow__hero).mp-hero .mp-hero-title-lg {
    margin: 0;
    color: #111111;
    font-family: "Open Sans", sans-serif !important;
    font-size: 18.2px;
    font-weight: 800 !important;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-rendering: auto;
    -webkit-font-smoothing: auto;
}

.etf-premium-flow-page :where(.pantalla-carrito-flow__hero,
    .payment-method-flow__hero).mp-hero .mp-hero-subtitle {
    margin: 4px 0 0;
    color: #586176;
    font-family: "Open Sans", sans-serif !important;
    font-size: 10.725px;
    font-weight: 500 !important;
    line-height: 1.25;
    letter-spacing: 0;
    text-rendering: auto;
    -webkit-font-smoothing: auto;
}

.etf-premium-flow-page :where(.seller-agreement-flow__hero,
    .datos-bancarios-flow__hero).mp-hero {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: var(--mp-hero-illustrated-min-h, 86px);
    margin: 6px 0 0;
    padding: 0;
}

.etf-premium-flow-page :where(.seller-agreement-flow__hero-icon,
    .datos-bancarios-flow__hero-icon) {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    border-radius: 999px;
}

.etf-premium-flow-page :where(.seller-agreement-flow__hero-copy,
    .datos-bancarios-flow__hero-copy) {
    min-width: 0;
}

.etf-premium-flow-page :where(.seller-agreement-flow__hero,
    .datos-bancarios-flow__hero).mp-hero .mp-hero-title-lg {
    margin: 0;
    color: #111111;
    font-family: "Open Sans", sans-serif !important;
    font-size: 18.2px;
    font-weight: 800 !important;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-rendering: auto;
    -webkit-font-smoothing: auto;
}

.etf-premium-flow-page :where(.seller-agreement-flow__hero,
    .datos-bancarios-flow__hero).mp-hero .mp-hero-subtitle {
    margin: 9px 0 0;
    color: #586176;
    font-family: "Open Sans", sans-serif !important;
    font-size: 10.725px;
    font-weight: 500 !important;
    line-height: 1.25;
    letter-spacing: 0;
    text-rendering: auto;
    -webkit-font-smoothing: auto;
}

/* ─────────────────────────────────────────────────────────────────────────
   3. STEPPER
   ─────────────────────────────────────────────────────────────────────── */

.mp-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: var(--mp-space-24, 24px);
}

.mp-stepper__step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--mp-text-muted, #8E8E93);
    font-weight: 500;
}

.mp-stepper__step--active {
    color: var(--mp-primary, #0066FF);
    font-weight: 600;
}

.mp-stepper__step--done {
    color: var(--mp-success, #16A34A);
}

.mp-stepper__dot {
    width: 20px;
    height: 20px;
    border-radius: var(--mp-radius-pill, 999px);
    background: var(--mp-border, rgba(229, 229, 234, 0.72));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.mp-stepper__step--active .mp-stepper__dot {
    background: var(--mp-primary, #0066FF);
    color: #fff;
}

.mp-stepper__step--done .mp-stepper__dot {
    background: var(--mp-success, #16A34A);
    color: #fff;
}

.mp-stepper__line {
    flex: 1;
    height: 1px;
    background: var(--mp-border, rgba(229, 229, 234, 0.72));
    margin: 0 6px;
}

/* ─────────────────────────────────────────────────────────────────────────
   4. CARD
   ─────────────────────────────────────────────────────────────────────── */

.mp-card {
    background: var(--mp-card, #FFFFFF);
    border-radius: var(--mp-radius-card, 28px);
    box-shadow: var(--mp-shadow-card, 0 10px 30px rgba(0, 0, 0, 0.07), 0 2px 8px rgba(0, 0, 0, 0.04));
    overflow: hidden;
}

.mp-card--lg {
    border-radius: var(--mp-radius-card-lg, 32px);
}

.mp-card__body {
    padding: var(--mp-space-20, 20px) var(--mp-space-24, 24px);
}

/* ─────────────────────────────────────────────────────────────────────────
   5. BOTONES
   ─────────────────────────────────────────────────────────────────────── */

.mp-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 54px;
    padding: 0 28px;
    border-radius: var(--mp-radius-button, 22px);
    background: var(--mp-primary, #0066FF);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}

.mp-primary-button:hover {
    opacity: 0.92;
}

.mp-primary-button:active {
    transform: scale(0.98);
    opacity: 0.88;
}

.mp-primary-button--full {
    width: 100%;
}

.mp-icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--mp-radius-icon, 999px);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--mp-text-muted, #8E8E93);
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
}

.mp-icon-button:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* ─────────────────────────────────────────────────────────────────────────
   6. FOOTER GLASS (bottom bar fija)
   ─────────────────────────────────────────────────────────────────────── */

.mp-bottom-glass {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mp-shell-max, 430px);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(200%) blur(28px);
    -webkit-backdrop-filter: saturate(200%) blur(28px);
    border-radius: var(--mp-radius-card-lg, 32px) var(--mp-radius-card-lg, 32px) 0 0;
    box-shadow: var(--mp-shadow-footer, 0 -18px 44px rgba(15, 23, 42, 0.10));
    padding: 16px var(--mp-screen-x, 28px);
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 200;
}

.mp-bottom-glass__handle {
    width: 36px;
    height: 4px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    margin: 0 auto 16px;
}

/* ─────────────────────────────────────────────────────────────────────────
   7. CART ITEM
   ─────────────────────────────────────────────────────────────────────── */

.mp-cart-list {
    display: flex;
    flex-direction: column;
    gap: var(--mp-space-12, 12px);
    margin-bottom: var(--mp-space-16, 16px);
}

.mp-cart-item {
    background: var(--mp-card, #FFFFFF);
    border-radius: var(--mp-radius-card, 28px);
    box-shadow: var(--mp-shadow-card, 0 10px 30px rgba(0, 0, 0, 0.07), 0 2px 8px rgba(0, 0, 0, 0.04));
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.mp-cart-item__main {
    display: flex;
    align-items: center;
    gap: var(--mp-space-12, 12px);
    padding: var(--mp-space-16, 16px);
}

.mp-cart-item__content {
    flex: 1;
    min-width: 0;
}

.mp-cart-item__title-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.mp-cart-item__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--mp-text, #111111);
    margin: 0;
    line-height: 1.3;
}

.mp-cart-item__size {
    font-size: 13px;
    color: var(--mp-text-muted, #8E8E93);
    white-space: nowrap;
}

.mp-cart-item__badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--mp-radius-pill, 999px);
    background: var(--mp-primary-soft, #EAF2FF);
    color: var(--mp-primary, #0066FF);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.mp-cart-item__meta {
    font-size: 13px;
    color: var(--mp-text-muted, #8E8E93);
    margin: 0;
}

.mp-cart-item__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--mp-text, #111111);
    white-space: nowrap;
    flex-shrink: 0;
}

.mp-cart-item__photos {
    padding: 0 var(--mp-space-16, 16px) var(--mp-space-16, 16px);
    border-top: 1px solid var(--mp-border, rgba(229, 229, 234, 0.72));
}

/* ─────────────────────────────────────────────────────────────────────────
   8. PHOTO STACK
   ─────────────────────────────────────────────────────────────────────── */

.mp-photo-stack {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.mp-photo-stack__img {
    position: absolute;
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.mp-photo-stack__img:nth-child(1) {
    top: 0;
    left: 0;
    z-index: 3;
}

.mp-photo-stack__img:nth-child(2) {
    top: 3px;
    left: 5px;
    z-index: 2;
    opacity: 0.75;
}

.mp-photo-stack__img:nth-child(3) {
    top: 6px;
    left: 10px;
    z-index: 1;
    opacity: 0.5;
}

.mp-photo-stack__more {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    padding: 2px 5px;
    z-index: 4;
}

.mp-photo-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: var(--mp-space-12, 12px) 0 4px;
    scrollbar-width: none;
}

.mp-photo-strip::-webkit-scrollbar {
    display: none;
}

.mp-photo-strip__img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.mp-caption {
    font-size: 13px;
    color: var(--mp-text-muted, #8E8E93);
    margin: var(--mp-space-12, 12px) 0 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   9. SUMMARY
   ─────────────────────────────────────────────────────────────────────── */

.mp-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--mp-text-secondary, #6E6E73);
    margin-bottom: var(--mp-space-8, 8px);
}

.mp-summary-row strong {
    color: var(--mp-text, #111111);
    font-weight: 600;
}

.mp-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 700;
    color: var(--mp-text, #111111);
    margin: var(--mp-space-8, 8px) 0 var(--mp-space-16, 16px);
}

.mp-coupon-row {
    display: flex;
    align-items: center;
    gap: var(--mp-space-12, 12px);
    width: 100%;
    background: var(--mp-primary-soft, #EAF2FF);
    border: none;
    border-radius: var(--mp-radius-button, 22px);
    padding: 12px var(--mp-space-16, 16px);
    margin-bottom: var(--mp-space-12, 12px);
    cursor: pointer;
    text-align: left;
    color: var(--mp-primary, #0066FF);
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mp-coupon-row:hover {
    opacity: 0.88;
}

.mp-coupon-row__icon {
    font-size: 18px;
    flex-shrink: 0;
}

.mp-coupon-row__text {
    flex: 1;
}

.mp-coupon-row__discount {
    font-weight: 700;
    color: var(--mp-success, #16A34A);
}

.mp-coupon-row__chevron {
    font-size: 14px;
    opacity: 0.6;
}

/* ─────────────────────────────────────────────────────────────────────────
   10. SEGURIDAD INLINE
   ─────────────────────────────────────────────────────────────────────── */

.mp-security-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--mp-text-muted, #8E8E93);
    margin-bottom: var(--mp-space-12, 12px);
}

/* ─────────────────────────────────────────────────────────────────────────
   11. PAYMENT CARDS (SeleccionMedioDePago)
   ─────────────────────────────────────────────────────────────────────── */

.mp-payment-list {
    display: flex;
    flex-direction: column;
    gap: var(--mp-space-12, 12px);
    margin-bottom: var(--mp-space-24, 24px);
}

.mp-payment-card {
    display: flex;
    align-items: center;
    gap: var(--mp-space-16, 16px);
    background: var(--mp-card, #FFFFFF);
    border-radius: var(--mp-radius-card, 28px);
    box-shadow: var(--mp-shadow-card, 0 10px 30px rgba(0, 0, 0, 0.07), 0 2px 8px rgba(0, 0, 0, 0.04));
    padding: var(--mp-space-20, 20px) var(--mp-space-24, 24px);
    text-decoration: none;
    color: var(--mp-text, #111111);
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}

.mp-payment-card:hover {
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.10),
        0 3px 10px rgba(0, 0, 0, 0.06);
}

.mp-payment-card:active {
    transform: scale(0.98);
}

.mp-payment-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--mp-radius-icon, 999px);
    background: var(--mp-primary-soft, #EAF2FF);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
}

.mp-payment-card__content {
    flex: 1;
    min-width: 0;
}

.mp-payment-card__title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px;
    color: var(--mp-text, #111111);
}

.mp-payment-card__sub {
    font-size: 13px;
    color: var(--mp-text-muted, #8E8E93);
    margin: 0;
}

.mp-payment-card__chevron {
    color: var(--mp-text-muted, #8E8E93);
    font-size: 16px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   12. SELLER AGREEMENT SUMMARY COMPONENTS
-------------------------------------------------------------------------- */

.mp-thumb-stack {
    position: relative;
    display: block;
    width: 75.2px;
    height: 59.2px;
    flex: 0 0 75.2px;
}

.mp-thumb-stack__layer {
    position: absolute;
    top: 2.4px;
    width: 54.4px;
    height: 54.4px;
    border-radius: 5.504px;
    border: 1.6px solid rgba(255, 255, 255, 0.95);
    background: #FFFFFF;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
    overflow: hidden;
}

.mp-thumb-stack__layer--front {
    z-index: 3;
    left: 16px;
    transform: rotate(0deg);
}

.mp-thumb-stack__layer--middle {
    z-index: 2;
    left: 8px;
    transform: rotate(-4deg) translateY(1px);
}

.mp-thumb-stack__layer--back {
    z-index: 1;
    left: 0;
    transform: rotate(-7deg) translateY(3px);
}

.mp-thumb-stack--count-1 .mp-thumb-stack__layer--front {
    left: 8.8px;
}

.mp-thumb-stack--count-2 .mp-thumb-stack__layer--front {
    left: 12.8px;
}

.mp-thumb-stack--count-2 .mp-thumb-stack__layer--middle {
    left: 4px;
    transform: rotate(-6deg) translateY(2px);
}

.mp-thumb-stack__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-order-summary-card {
    display: grid;
    gap: 14px;
    padding: 18px 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: var(--mp-radius-card, 28px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(251, 252, 255, 0.95));
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.035);
    backdrop-filter: blur(20px);
}

.mp-order-summary-card__header {
    display: grid;
    gap: 6px;
}

.mp-order-summary-card__eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mp-text-muted, #8E8E93);
}

.mp-order-summary-card__title {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--mp-text, #111111);
}

.mp-order-summary-card__subtitle {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: #5E6477;
}

.mp-order-summary-card__items {
    display: grid;
    gap: 12px;
}

.mp-order-summary-card__item {
    display: block;
}

.mp-order-summary-card__item--expanded,
.mp-order-summary-card__item--collapsed {
    display: grid;
    gap: 12px;
}

.mp-order-summary-card__item-main {
    display: grid;
    gap: 10px;
}

.mp-order-summary-card__item-heading {
    min-width: 0;
}

.mp-order-summary-card__item-title {
    margin: 0;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.028em;
    color: #1C1C1E;
}

.mp-order-summary-card__item-measure {
    display: inline-block;
    margin-left: 7px;
    font-size: 0.88em;
    font-weight: 500;
    letter-spacing: -0.012em;
    color: #7A8193;
}

.mp-order-summary-card__item-subtitle {
    margin: 0;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.32;
    color: #6B7280;
}

.mp-order-summary-card__item-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.mp-order-summary-card__item-category-media {
    flex: 0 0 118px;
    width: 118px;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.mp-order-summary-card__item-category-img {
    display: block;
    width: 112px;
    max-width: 100%;
    max-height: 82px;
    border-radius: 12px;
    object-fit: contain;
}

.mp-order-summary-card__item-category-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: #EEF3FF;
    color: var(--mp-primary, #0066FF);
}

.mp-order-summary-card__item-category-fallback svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mp-order-summary-card__item-side {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.mp-order-summary-card__item-thumbs {
    margin-top: 2px;
}

.mp-order-summary-card__item-price {
    flex: 0 0 auto;
    padding-top: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.15;
    color: #5E6783;
    white-space: nowrap;
    text-align: right;
}

.mp-order-summary-card__item-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.mp-order-summary-card__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-top: -4px;
    margin-right: -4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 102, 255, 0.08);
    color: var(--mp-primary, #0066FF);
    cursor: pointer;
}

.mp-order-summary-card__detail-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.mp-order-summary-card__detail-indicator svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease;
}

.mp-order-summary-card__item--expanded .mp-order-summary-card__detail-indicator svg {
    transform: rotate(180deg);
}

.mp-order-summary-card__photo-strip {
    display: grid;
    gap: 10px;
    padding-top: 2px;
}

.mp-order-summary-card__item--collapsed .mp-order-summary-card__photo-strip,
.mp-order-summary-card__photo-strip[hidden],
.mp-order-summary-card__photo-strip[aria-hidden="true"],
.mp-order-summary-card__photo--loader[hidden] {
    display: none !important;
}

.mp-order-summary-card__item--expanded .mp-order-summary-card__photo-strip:not([hidden]) {
    display: grid;
}

.mp-order-summary-card__photo-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mp-order-summary-card__photo-strip-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #66708C;
}

.mp-order-summary-card__photo-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mp-order-summary-card__photo-row::-webkit-scrollbar {
    display: none;
}

.mp-order-summary-card__photo {
    position: relative;
    flex: 0 0 78px;
    width: 78px;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(226, 232, 240, 0.75);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.mp-order-summary-card__photo-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.mp-order-summary-card__photo--loader {
    display: grid;
    place-items: center;
    background: rgba(241, 245, 249, 0.9);
}

.mp-order-summary-card__photo-loader-mark {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 2px solid rgba(0, 102, 255, 0.18);
    border-top-color: var(--mp-primary, #0066FF);
    animation: mp-order-summary-spin 900ms linear infinite;
}

@keyframes mp-order-summary-spin {
    to {
        transform: rotate(360deg);
    }
}

.mp-order-summary-card__separator {
    height: 1px;
    background: rgba(15, 23, 42, 0.08);
}

.mp-order-summary-card__separator--total {
    margin-top: -2px;
}

.mp-order-summary-card__total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding-top: 2px;
}

.mp-order-summary-card__total-label {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
    color: #66708C;
}

.mp-order-summary-card__total-amount {
    font-size: 34px;
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: var(--mp-primary, #0066FF);
    white-space: nowrap;
}

.mp-seller-agreement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mp-seller-agreement-icon__bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(0, 102, 255, 0.11), rgba(0, 102, 255, 0.05));
    color: var(--mp-primary, #0066FF);
    box-shadow: inset 0 0 0 1px rgba(0, 102, 255, 0.08);
}

.mp-seller-agreement-icon__svg {
    display: block;
    width: 40px;
    height: 40px;
}

@media (max-width: 389.98px) {
    .mp-order-summary-card {
        padding: 16px 18px 18px;
    }

    .mp-order-summary-card__item-main {
        gap: 12px;
    }

    .mp-order-summary-card__item-price {
        font-size: 16.5px;
    }

    .mp-order-summary-card__total-amount {
        font-size: 30px;
    }
}

.mp-stepper-shell {
    box-sizing: border-box;
    width: min(100%, 372px);
    margin: 0 auto 12px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 23.2px !important;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035);
    backdrop-filter: blur(14px);
}

.mp-stepper-shell .mp-stepper {
    display: grid;
    grid-template-columns: minmax(64px, 1fr) minmax(38px, 56px) minmax(64px, 1fr) minmax(38px, 56px) minmax(64px, 1fr);
    align-items: start;
    justify-content: center;
    gap: 5px;
    min-height: 25px;
    margin: 0 !important;
    padding: 0;
    list-style: none;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.mp-stepper-shell .mp-stepper__step {
    display: grid;
    grid-template-rows: 17px minmax(20px, auto);
    justify-items: center;
    align-content: center;
    gap: 4px;
    min-width: 0;
    color: #8A91A6;
    font-family: "Open Sans", sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0;
    text-align: center;
    text-rendering: auto;
    -webkit-font-smoothing: auto;
}

.mp-stepper-shell .mp-stepper__label {
    display: block;
    max-width: 62px;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.05;
    letter-spacing: inherit;
    text-align: center;
    text-rendering: auto;
    -webkit-font-smoothing: auto;
}

.mp-stepper-shell .mp-stepper__step--done,
.mp-stepper-shell .mp-stepper__step--active,
.mp-stepper-shell .mp-stepper__step--final {
    color: #1D4ED8;
}

.mp-stepper-shell .mp-stepper__dot {
    display: grid !important;
    place-items: center !important;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    padding: 0 !important;
    border: 1px solid rgba(146, 154, 176, 0.34);
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.92);
    color: #8A91A6;
    font-family: "Open Sans", sans-serif;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
    text-rendering: auto;
    -webkit-font-smoothing: auto;
}

.mp-stepper-shell .mp-stepper__step--done .mp-stepper__dot,
.mp-stepper-shell .mp-stepper__step--active .mp-stepper__dot,
.mp-stepper-shell .mp-stepper__step--final .mp-stepper__dot {
    border-color: rgba(37, 99, 235, 0.18);
    background: #0066FF;
    color: #FFFFFF;
    box-shadow: 0 4px 8px rgba(15, 107, 255, 0.12);
}

.mp-stepper-shell .mp-stepper__check {
    display: block;
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mp-stepper-shell .mp-stepper__connector {
    display: block;
    width: calc(100% + 45px);
    min-width: 0;
    height: 0;
    align-self: start;
    margin: 8px -22.5px 0;
    background: transparent;
    border-top: 1px dashed rgba(145, 153, 173, 0.42);
}

.mp-stepper-shell .mp-stepper__connector--done {
    border-top-color: #0066FF;
}

.mp-stepper-shell .mp-stepper__connector--pending {
    border-top-color: rgba(145, 153, 173, 0.42);
}

.mp-stepper-shell .mp-stepper__connector--split {
    border-top-color: rgba(145, 153, 173, 0.42);
    background-image: linear-gradient(90deg, #0066FF 0 50%, rgba(145, 153, 173, 0.42) 50% 100%);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: top left;
}