/**
 * GSS Moo Bridge – Frontend Styles
 *
 * Currency switcher (header) + product-page layout tweaks.
 * Extracted from inline <style> blocks in CurrencyGatewayModule
 * and InstalmentSelectorModule.
 */

/* ===== Currency Switcher (Header) ===== */

.gss-currency-header {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 0.74px solid rgba(224, 213, 204, 0.9);
    border-radius: 100px;
    padding: 3px;
    background: #fff8f3;
}

.gss-currency-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    line-height: 1.5;
    white-space: nowrap;
    color: #1a1a2e;
    background: transparent;
    transition: background 0.2s, color 0.2s;
}

.gss-currency-pill:hover {
    color: #1a1a2e;
    opacity: 0.7;
}

.gss-currency-pill--active {
    background: #1a1a2e;
    color: #fff8f3;
}

.gss-currency-pill--active:hover {
    color: #fff8f3;
    opacity: 1;
}

.wpml-ls a,
.gss-header-lang a,
.wpml-ls-statics-shortcode_actions a {
    text-decoration: none !important;
}

@media (max-width: 782px) {
    .gss-currency-header {
        margin-left: 4px;
        padding: 2px;
    }
    .gss-currency-pill {
        line-height: 1.5;
        padding: 5px 8px;
        font-size: 0.65rem;
    }
}

@media (max-width: 600px) {
    /* Hamburger: match pill style */
    button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open {
        padding: 8px 10px !important;
        border: 0.74px solid rgba(224, 213, 204, 0.9) !important;
        border-radius: 100px !important;
        background: #fff8f3 !important;
        color: #1a1a2e !important;
        min-height: 0 !important;
        line-height: 0 !important;
        margin-left: 6px;
    }
    button.wp-block-navigation__responsive-container-open svg {
        width: 16px !important;
        height: 16px !important;
        fill: #1a1a2e !important;
    }
    button.wp-block-navigation__responsive-container-open::after {
        width: 16px !important;
        height: 16px !important;
    }

    /* Site title: show GSS instead of GoSmallSteps */
    .gss-site-header__title a {
        font-size: 0 !important;
        letter-spacing: 0;
    }
    .gss-site-header__title a::before {
        content: 'GSS';
        font-size: 1.05rem;
        letter-spacing: normal;
    }

    /* Currency switcher compact */
    .gss-currency-header {
        margin-left: 2px;
        padding: 2px;
        gap: 1px;
    }
    .gss-currency-pill {
        line-height: 1.5;
        padding: 7px 7px;
        font-size: 0.62rem;
    }
    .gss-currency-code {
        display: none;
    }

    /* Language switcher compact */
    .gss-header-lang,
    .wpml-ls-statics-shortcode_actions {
        padding: 2px !important;
        gap: 1px !important;
    }
    .gss-header-lang a,
    .wpml-ls-statics-shortcode_actions a,
    .wpml-ls-statics-shortcode_actions .wpml-ls-item a {
        padding: 4px 7px !important;
        font-size: 0.62rem !important;
    }
}

/* ===== Product Page Layout ===== */

/* Tighten vertical gaps in block-based product layout */
.gss-single-product-main .wp-block-column > .wp-block-group {
    gap: 8px !important;
}

/* Kill the empty first-payment-date placeholder */
.gss-single-product-main p.first-payment-date {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

/* Remove huge padding above add-to-cart form */
.gss-single-product-main .wp-block-add-to-cart-form {
    padding-top: 4px !important;
}

/* Hide quantity selector */
.single-product form.cart .quantity {
    display: none !important;
}

/* Spacing between Pay by card and express checkout */
.single-product .wc-block-cart__submit-container {
    margin-bottom: 12px !important;
}

/* Secondary style for Add to Cart (both original and clone) */
.single-product .single_add_to_cart_button {
    width: 100% !important;
    background: transparent !important;
    color: #666 !important;
    border: 1.5px solid #ddd !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}

.single-product .single_add_to_cart_button:hover {
    border-color: #999 !important;
    color: #333 !important;
}

/* Hide original Add to Cart when clone exists */
.single-product form.cart .single_add_to_cart_button.gss-atc-hidden {
    display: none !important;
}
