/**
 * SCP Cart & Checkout — estilos compartidos
 */

/* Header checkout (carrito + checkout usan header-checkout.php) */
.site-header--checkout .header-top--checkout {
    background: #111;
    padding: 14px 0;
}

.header-top__inner--checkout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-actions--checkout {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.scp-checkout-help-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: #fff;
    color: var(--scp-accent, #9333ea);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-header--checkout .header-action {
    color: #fff;
}

.site-header--checkout .site-branding {
    flex-shrink: 1;
    min-width: 0;
}

.scp-checkout-header-active .header-nav-wrap {
    display: none;
}

.scp-checkout-header-active .header-search-wrap,
.scp-checkout-header-active .header-search-toggle,
.scp-checkout-header-active .menu-toggle--top {
    display: none !important;
}

@media (max-width: 900px) {
    .site-header--checkout .header-top--checkout {
        padding: 10px 0;
        overflow: hidden;
    }

    body.scp-checkout-header-active .site-header--checkout .header-top.header-top--checkout .container.header-top__inner--checkout {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-height: 0;
        position: relative;
        grid-template-columns: none;
    }

    body.scp-checkout-header-active .site-header--checkout .site-branding {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        order: 0;
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100% - 140px);
        width: auto;
        pointer-events: auto;
        z-index: 1;
        justify-self: auto;
        display: flex;
        justify-content: flex-start;
    }

    body.scp-checkout-header-active .site-header--checkout .site-branding a.custom-logo-link img,
    body.scp-checkout-header-active .site-header--checkout .site-branding .scp-img-load img,
    body.scp-checkout-header-active .site-header--checkout .site-logo {
        width: auto !important;
        max-width: 100%;
        height: auto !important;
        max-height: 36px;
        object-fit: contain;
    }

    body.scp-checkout-header-active .site-header--checkout .header-actions--checkout {
        order: 1;
        flex: 0 0 auto;
        gap: 8px;
        margin-left: auto;
        grid-column: auto;
        justify-self: auto;
        z-index: 2;
    }

    .site-header--checkout .scp-checkout-help-btn {
        padding: 6px 10px;
        font-size: 0.68rem;
    }

    .site-header--checkout .header-action__label {
        display: none;
    }
}

@media (max-width: 480px) {
    body.scp-checkout-header-active .site-header--checkout .site-branding {
        max-width: calc(100% - 122px);
    }

    body.scp-checkout-header-active .site-header--checkout .site-branding a.custom-logo-link img,
    body.scp-checkout-header-active .site-header--checkout .site-branding .scp-img-load img,
    body.scp-checkout-header-active .site-header--checkout .site-logo {
        max-height: 32px;
    }

    .site-header--checkout .header-actions--checkout {
        gap: 6px;
    }

    .site-header--checkout .scp-checkout-help-btn {
        padding: 5px 8px;
        font-size: 0.62rem;
    }
}

.scp-cart-checkout-wrap {
    background: #f4f4f6;
    padding: 24px 0 48px;
}

.scp-cart-checkout__inner {
    max-width: var(--scp-container-max, 1280px);
    margin: 0 auto;
    padding: 0 var(--scp-container-pad, 20px);
}

/* Buttons */
.scp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.scp-btn--primary {
    background: var(--scp-accent, #9333ea);
    color: #fff;
    border-color: var(--scp-accent, #9333ea);
}

.scp-btn--primary:hover {
    background: var(--scp-accent-hover, #7e22ce);
    color: #fff;
}

.scp-btn--outline {
    background: #fff;
    color: var(--scp-accent, #9333ea);
    border-color: var(--scp-accent, #9333ea);
}

.scp-btn--block {
    width: 100%;
}
