/*
Theme Name: GOSTHO WoodMart Child
Theme URI: https://gostho.com/
Description: Child theme for WoodMart. Keeps GOSTHO custom PHP/CSS separate from the WoodMart parent theme.
Author: GOSTHO
Template: woodmart
Version: 1.8.0
Text Domain: gostho-woodmart-child
*/

/* Keep the core affiliate box intact; add a clean social-icon row below it. */
.gostho-product-aff-actions .gostho-wa-btn {
    display: none !important;
}

.gostho-social-icons-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
}

.gostho-social-icon-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    border: 1px solid #e2e2e2 !important;
    color: #161616 !important;
    text-decoration: none !important;
    padding: 0 !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    cursor: pointer;
}

.gostho-social-icon-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

.gostho-social-icon-btn:focus,
.gostho-social-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
}

.gostho-share-toast {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #171717;
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    display: none;
}

.gostho-share-toast.is-visible {
    display: block;
}

@media (max-width: 600px) {
    .gostho-social-icons-row {
        gap: 14px;
    }

    .gostho-social-icon-btn {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
}


/* V1.4: more compact affiliate card */
.gostho-product-aff-share {
    margin: 16px 0 6px !important;
    padding: 14px !important;
    border-radius: 16px !important;
}

.gostho-product-aff-head {
    gap: 8px !important;
    margin-bottom: 6px !important;
}

.gostho-product-aff-head span {
    font-size: 10px !important;
    letter-spacing: 1px !important;
}

.gostho-product-aff-head strong {
    font-size: 16px !important;
    line-height: 1.2 !important;
}

.gostho-product-aff-head em {
    padding: 6px 9px !important;
    font-size: 14px !important;
}

.gostho-product-aff-share > p {
    margin: 6px 0 9px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.gostho-product-aff-share input {
    min-height: 42px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
}

.gostho-product-aff-actions {
    gap: 8px !important;
    margin-top: 8px !important;
}

.gostho-product-aff-actions .button {
    min-height: 40px !important;
    font-size: 14px !important;
}

.gostho-social-icons-row {
    margin-top: 9px !important;
    gap: 12px !important;
}

.gostho-social-icon-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
}

.gostho-social-icon-btn svg {
    width: 22px !important;
    height: 22px !important;
}

@media (max-width: 600px) {
    .gostho-product-aff-share {
        padding: 13px !important;
    }

    .gostho-social-icon-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
    }
}


/* V1.7: mobile-first WooCommerce Login/Register polish.
   - The panel-switch Register/Login button appears immediately below OR.
   - The duplicate heading is hidden.
   - OTP input stays comfortably wide beside a compact Send OTP button.
   - Existing WooCommerce/OTP logic is not replaced. */
.woocommerce-account .gostho-account-switch-polished .gostho-account-switch-duplicate-title {
    display: none !important;
}

.woocommerce-account .gostho-account-switch-wrap {
    display: flex !important;
    justify-content: center;
    width: 100%;
    margin: 2px 0 14px !important;
    padding: 0 10px;
}

.woocommerce-account .gostho-account-switch-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: min(100%, 320px) !important;
    min-width: 0 !important;
    min-height: 50px;
    margin: 0 !important;
    padding: 12px 24px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.woocommerce-account .gostho-account-switch-helper {
    margin-top: 0 !important;
    opacity: .78;
}

/* Dedicated OTP control row: input gets the larger share, Send OTP stays compact. */
.woocommerce-account .gostho-otp-field-row {
    display: block !important;
    width: 100% !important;
}

.woocommerce-account .gostho-otp-controls {
    display: grid !important;
    grid-template-columns: minmax(0, 1.65fr) minmax(108px, .85fr);
    gap: 10px;
    align-items: stretch;
    width: 100% !important;
    margin-top: 8px !important;
}

.woocommerce-account .gostho-otp-controls .gostho-otp-input {
    width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    border-radius: 12px !important;
}

.woocommerce-account .gostho-otp-controls .gostho-otp-send-btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}

.woocommerce-account .gostho-register-privacy-compact {
    margin: 10px 0 7px !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    opacity: .78;
}

.woocommerce-account .gostho-register-privacy-compact a {
    font-weight: 600;
    text-decoration: underline;
}

.woocommerce-account .gostho-register-submit-primary {
    width: 100% !important;
    min-height: 52px;
    margin-top: 2px !important;
    border-radius: 14px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}

@media (max-width: 600px) {
    .woocommerce-account .gostho-account-switch-wrap {
        margin-bottom: 12px !important;
        padding: 0 8px;
    }

    .woocommerce-account .gostho-account-switch-btn {
        width: 100% !important;
        min-height: 52px;
        font-size: 17px !important;
    }

    .woocommerce-account .gostho-account-switch-helper {
        font-size: 14.5px !important;
        line-height: 1.5 !important;
    }

    .woocommerce-account .gostho-otp-controls {
        grid-template-columns: minmax(0, 1.7fr) minmax(104px, .8fr);
        gap: 8px;
    }

    .woocommerce-account .gostho-otp-controls .gostho-otp-input {
        font-size: 14px !important;
        padding-left: 12px !important;
        padding-right: 10px !important;
    }

    .woocommerce-account .gostho-otp-controls .gostho-otp-send-btn {
        font-size: 12.5px !important;
        padding-left: 7px !important;
        padding-right: 7px !important;
    }
}

@media (max-width: 360px) {
    .woocommerce-account .gostho-otp-controls {
        grid-template-columns: minmax(0, 1.55fr) minmax(100px, .8fr);
        gap: 7px;
    }

    .woocommerce-account .gostho-otp-controls .gostho-otp-send-btn {
        font-size: 12px !important;
    }
}

/* V1.8: clearer panel-switch copy: 'Create an Account' / 'Back to Login'. */
