/* GainProz Variation Offer Cards */

.gp-voc {
    --gp-green: #94b510;
    --gp-green-dark: #7f9e08;
    --gp-border: #e8edd3;
    --gp-soft: #f7f9ef;
    --gp-text: #111111;
    --gp-muted: #9299a6;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.gp-voc *,
.gp-voc *::before,
.gp-voc *::after {
    box-sizing: border-box;
}

.gp-voc-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 26px;
}

.gp-voc-heading::before,
.gp-voc-heading::after {
    content: "";
    height: 1.5px;
    background: #111;
    flex: 1;
}

.gp-voc-heading span {
    color: var(--gp-text);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: .1px;
}

.gp-voc-card {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 103px;
    margin: 0 0 18px;
    padding: 14px 18px;
    border: 2px solid var(--gp-border);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.gp-voc-card:hover {
    border-color: #b2c64d;
    transform: translateY(-1px);
}

.gp-voc-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(148,181,16,.22);
}

.gp-voc-card.is-selected {
    border-color: var(--gp-green);
    background: var(--gp-soft);
}

.gp-voc-radio {
    width: 9px;
    height: 9px;
    min-width: 9px;
    margin-right: 12px;
    border-radius: 50%;
    background: #e1e1e1;
}

.gp-voc-card.is-selected .gp-voc-radio {
    background: var(--gp-green);
}

.gp-voc-image {
    width: 54px;
    height: 54px;
    min-width: 54px;
    margin-right: 12px;
    border-radius: 10px;
    background: #ead9c7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gp-voc-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gp-voc-info {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 16px;
}

.gp-voc-title {
    color: var(--gp-text);
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 7px;
}

.gp-voc-subtitle {
    color: #5d6470;
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.gp-voc-saving {
    color: var(--gp-text);
    font-size: 16px;
    line-height: 1.25;
}

.gp-voc-price {
    flex: 0 0 180px;
    text-align: right;
}

.gp-voc-current {
    color: var(--gp-text);
    font-size: 19px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

.gp-voc-old {
    color: #8b8b8b;
    font-size: 17px;
    margin-left: 10px;
    font-weight: 600;
    text-decoration: line-through;
}

.gp-voc-mrp {
    display: block;
    margin-top: 6px;
    color: var(--gp-muted);
    font-size: 14px;
    line-height: 1.2;
}

.gp-voc-popular {
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    z-index: 2;
    padding: 3px 12px 4px;
    border-radius: 15px;
    background: var(--gp-green);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.gp-voc-buy {
    display: block;
    width: 100%;
    min-height: 64px;
    margin-top: 10px;
    padding: 12px 20px;
    border: 0;
    border-radius: 10px;
    background: var(--gp-green);
    color: #fff;
    font-family: inherit;
    font-size: 29px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 3px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.gp-voc-buy:hover {
    background: var(--gp-green-dark);
    transform: translateY(-1px);
}

.gp-voc-buy:focus-visible {
    outline: 3px solid rgba(148,181,16,.3);
    outline-offset: 2px;
}

.gp-voc-message {
    min-height: 20px;
    margin-top: 8px;
    color: #a33;
    font-size: 14px;
}

/* Hide the original WooCommerce variation row ONLY when our shortcode is present. */
body:has(.gp-voc) .gp-voc ~ * {
    /* Intentionally empty; do not hide unrelated product content. */
}

/* The original selector can be hidden by the optional body class added by JS. */
body.gp-voc-active .variations .gp-voc-original-row {
    display: none !important;
}

/* Simple product fallback: quantity + Add to Cart */

.gp-voc-simple-buy-row {
    display: flex;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    margin-top: 10px;
}

.gp-voc-quantity {
    display: flex;
    align-items: center;
    min-height: 60px;
    border: 1px solid #e3e5e8;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
}

.gp-voc-qty {
    width: 48px;
    min-width: 48px;
    height: 60px;
    border: 0;
    background: transparent;
    color: #111;
    font-family: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.gp-voc-qty:hover {
    background: #f6f8ec;
}

.gp-voc-qty-input {
    width: 58px;
    height: 60px;
    border: 0 !important;
    border-left: 1px solid #e3e5e8 !important;
    border-right: 1px solid #e3e5e8 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #111 !important;
    text-align: center;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    box-shadow: none !important;
    appearance: textfield;
    -moz-appearance: textfield;
}

.gp-voc-qty-input::-webkit-outer-spin-button,
.gp-voc-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gp-voc-simple-add {
    flex: 0 1 300px;
    margin-top: 0;
    min-height: 60px;
    letter-spacing: 0;
    font-size: 17px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .gp-voc-simple-buy-row {
        gap: 10px;
    }

    .gp-voc-quantity {
        min-width: 132px;
    }

    .gp-voc-qty {
        width: 38px;
        min-width: 38px;
    }

    .gp-voc-qty-input {
        width: 52px;
    }

    .gp-voc-simple-add {
        flex: 1;
        min-height: 56px;
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .gp-voc-heading {
        gap: 10px;
        margin-bottom: 20px;
    }

    .gp-voc-heading span {
        font-size: 18px;
    }

    .gp-voc-card {
        min-height: 92px;
        padding: 11px 10px;
        margin-bottom: 14px;
        border-radius: 10px;
    }

    .gp-voc-image {
        width: 48px;
        height: 48px;
        min-width: 48px;
        margin-right: 9px;
    }

    .gp-voc-radio {
        margin-right: 8px;
    }

    .gp-voc-info {
        padding-right: 7px;
    }

    .gp-voc-title {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .gp-voc-subtitle,
    .gp-voc-saving {
        font-size: 12px;
    }

    .gp-voc-price {
        flex-basis: 92px;
    }

    .gp-voc-current {
        font-size: 15px;
    }

    .gp-voc-old {
        display: block;
        margin: 4px 0 0;
        font-size: 12px;
    }

    .gp-voc-mrp {
        font-size: 10px;
        margin-top: 4px;
    }

    .gp-voc-popular {
        top: -12px;
        font-size: 10px;
        padding: 3px 9px;
    }

    .gp-voc-buy {
        min-height: 56px;
        font-size: 22px;
        letter-spacing: 2px;
    }
}


.gp-voc-notice {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

/* Main product image is updated by the variation card JavaScript. */
.gp-voc-main-image-transition{transition:opacity .16s ease;}
