/* *
* 1. Global Styles
* 2. Purchase Type
* 3. Product Options
* 4. Variant Options
* 5. Add to Cart Button
* 6. Logged out message
* 7. Logged in messages
* 8. Out of Stock form
* 9. Responsive
*/


/* 1. Global */
:root {
    --hart-primary: #000000;
    --hart-secondary: #F1ECE1;
    --hart-white: #ffffff;
    --hart-lighter-gray: #979797;
    --hart-light-gray: #838383;
    --hart-gray: #5B5B5B;
    --hart-dark-gray: #575757;
    --hart-red: #FC383B;
}

.ghm-hidden {
    display: none;
}

.ghm-offer-selector {
    font-family: inherit;
}

.ghm-offer-selector>* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.ghm-offer-selector .choose-package {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    color: var(--hart-primary);
    text-align: center;
}

/* 2. Purchase Type */
.ghm-offer-selector .purchase-type-options {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    border-radius: 99999px;
}

.ghm-offer-selector .purchase-type-option {
    width: 100%;
}

.ghm-offer-selector .purchase-type-option label {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: var(--hart-primary);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    border-radius: 99999px;
    padding: 5px 20px;
    gap: 10px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s cubic-bezier(.17, .67, .83, .67);
}

.ghm-offer-selector .purchase-type-option label:has(input[type="radio"]:checked) {
    background: var(--hart-red);
    color: var(--hart-white);
}

.ghm-offer-selector .purchase-type-option input[type="radio"],
.ghm-offer-selector .purchase-size-option input[type="radio"] {
    display: none;
}


/* 3. Product Options */
.ghm-offer-selector .product-option {
    border: 1px solid var(--hart-primary);
    border-radius: 8px;
    padding: 20px 10px;
    margin-bottom: 20px;
}

.ghm-offer-selector ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ghm-offer-selector ul li {
    position: relative;
}

.ghm-offer-selector ul li label {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 15px;
    padding: 10px 20px;
    cursor: pointer;
    flex-direction: row;
    flex-wrap: nowrap;
    border-radius: 4px;
    transition: 0.3s cubic-bezier(.17, .67, .83, .67);
    border-radius: 99999px;
}

.ghm-offer-selector ul li label:hover {
    background-color: var(--hart-white);
}

.ghm-offer-selector ul li label:has(input[type="radio"]:checked) {
    background-color: var(--hart-primary);
}

.ghm-offer-selector .product-options input[type="radio"] {
    -webkit-appearance: none;
    height: 25px;
    width: 25px;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid var(--hart-primary);
    border-radius: 99999px;
    -ms-flex-item-align: center;
    -ms-grid-row-align: center;
    align-self: center;
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
    padding: 0;
    -webkit-box-shadow: unset;
    box-shadow: unset;
    background-color: var(--hart-white);

}

.ghm-offer-selector .product-options input[type="radio"]:checked {
    background-color: var(--hart-red);
    border: 2px solid var(--hart-white);
    border-radius: 99999px;
}

.ghm-offer-selector .pricing-container {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.ghm-offer-selector .quantity-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-areas: "quantity badge price";
    align-items: center;
    justify-items: end;
    gap: 5px;
}

.ghm-offer-selector .quantity-container.with-flags {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas: "quantity badge price flags";
}

.ghm-offer-selector .quantity-container .quantity {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.4;
    color: var(--hart-primary);
    font-family: inherit;
    text-transform: capitalize;
    justify-self: start;
}

.ghm-offer-selector .quantity-container .final-price {
    font-weight: 500;
    font-size: 24px;
    line-height: 1.3;
    color: var(--hart-primary);
    grid-area: price;
}

.ghm-offer-selector .savings-message {
    display: block;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.3;
    color: var(--hart-gray);
    margin: 8px 0 0 0;
}

.ghm-offer-selector ul li label:has(input[type="radio"]:checked) .quantity-container .quantity,
.ghm-offer-selector ul li label:has(input[type="radio"]:checked) .quantity-container .final-price,
.ghm-offer-selector ul li label:has(input[type="radio"]:checked) .savings-message {
    color: var(--hart-white);
}

.ghm-offer-selector ul li label:has(input[type="radio"]:checked) .badge {
    color: var(--hart-primary);
    background: var(--hart-white);
}

.ghm-offer-selector .badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
    padding: 5px 10px;
    background-color: var(--hart-red);
    color: var(--hart-white);
    font-family: inherit;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    text-align: center;
    border-radius: 4px;
    transition: 0.3s cubic-bezier(.17, .67, .83, .67);
    grid-area: badge;
}

.ghm-offer-selector .quantity-container .best-seller-flag,
.ghm-offer-selector .quantity-container .best-value-flag {
    width: 3rem;
    grid-area: flags;
    position: absolute;
    top: 0;
    right: 26px;
}

/* 4. Vairant Option */
.ghm-offer-selector .variant-options {
    margin-bottom: 24px;
}

.ghm-offer-selector .variant-options .variant-label {
    display: block;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    color: var(--hart-primary);
    text-align: center;
    margin-bottom: 20px;
}

.ghm-offer-selector .variant-options .variant-radio {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.ghm-offer-selector .variant-options .variant-radio .variant-option,
.ghm-offer-selector .variant-options .variant-radio .variant-option label {
    width: 100%;
}

.ghm-offer-selector .variant-option input[type=radio] {
    display: none;
}

.ghm-offer-selector .variant-option input[type=radio]+span {
    display: block;
    color: var(--hart-primary);
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    border-radius: 99999px;
    padding: 5px 20px;
    cursor: pointer;
}

.ghm-offer-selector .variant-option input[type=radio]:checked+span {
    background-color: var(--hart-red);
    color: var(--hart-white);
}

.ghm-offer-selector .variant-options .variant-select {
    border: 1px solid var(--hart-primary);
    border-radius: 99999px;
    padding: 12px 24px;
    color: var(--hart-primary);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%231A1A1A' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;

}

/* 5. Add to Cart button */
.ghm-offer-selector .button-container .add-to-cart {
    display: block;
    width: 90%;
    padding: 10px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.5;
    margin: 20px auto;
    color: var(--hart-white);
    background: var(--hart-primary);
    border-radius: 9999px;
    transition: 0.3s cubic-bezier(.17, .67, .83, .67);
    outline: none;
    text-transform: uppercase;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
}

.ghm-offer-selector .button-container .disabled-btn {
    background-color: var(--hart-lighter-gray);
    color: var(--hart-gray);
    pointer-events: none;
}

.ghm-offer-selector .button-container .add-to-cart:hover {
    background-color: var(--hart-red);
}

.ghm-offer-selector .button-container .add-to-cart:focus {
    box-shadow: 0px 0px 0px 2px rgb(0 0 0);
}

/* 6. Logged out message */
.ghm-offer-selector .logged-out-message-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px 20px;
    text-align: center;
    background-color: var(--hart-secondary);
    border-radius: 4px;
}

.ghm-offer-selector .logged-out-message-container .message {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--hart-primary);
    grid-area: 1 / 1 / -1 / 4;
}

.ghm-offer-selector .logged-out-message-container .message span:nth-child(2),
.ghm-offer-selector .logged-out-message-container .message .saving-price {
    font-weight: 600;
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.ghm-offer-selector .logged-out-message-container .links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    justify-content: center;
    gap: 5px;
    grid-area: 2 / 1 / -1 / 4;
}

.ghm-offer-selector .logged-out-message-container .links .link-as-btn {
    display: inline-flex;
    padding: 6px 14px;
    font-family: inherit;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    border-radius: 99999px;
    transition: 0.3s cubic-bezier(.17, .67, .83, .67);
}

.ghm-offer-selector .logged-out-message-container .links .sign-up-link {
    background-color: var(--hart-primary);
    color: var(--hart-white);
}

.ghm-offer-selector .logged-out-message-container .links .sign-up-link:hover {
    background-color: var(--hart-red);
}


.ghm-offer-selector .logged-out-message-container .links .login-link {
    border: 2px solid var(--hart-primary);
    color: var(--hart-primary);
}

.ghm-offer-selector .logged-out-message-container .links .login-link:hover {
    color: var(--hart-white);
    background-color: var(--hart-primary);
}

.ghm-offer-selector .logged-out-message-container .footer {
    grid-area: 1 / 4 / 3 / -1;
}

.ghm-offer-selector .logged-out-message-container .footer p {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.ghm-offer-selector .logged-out-message-container .footer p:first-child {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.ghm-offer-selector .disclaimer p {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    gap: 4px;
    margin: 0;
    text-align: center;
    font-weight: 700;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.33;
    text-align: center;
    text-transform: uppercase;
    color: var(--hart-primary);
    margin: 0;
    padding: 0 6px;
    letter-spacing: 2px;
}

/* 7. Logged In Message */
.ghm-offer-selector .logged-in-message {
    text-align: center;
    font-size: 16px;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--hart-red);
    margin: 20px 0;
}

.ghm-offer-selector .subscribe-save-message-container {
    margin-bottom: 15px;
}

.ghm-offer-selector .subscribe-save-message-container .logged-in-subscribe-save-message {
    font-size: 12px;
    line-height: 17px;
    font-weight: 400;
    color: var(--hart-primary);
    margin-top: 16px;
    border: 1px solid var(--hart-gray);
    padding: 10px;
    text-align: justify;
}

.ghm-offer-selector .subscribe-save-message-container .logged-in-subscribe-save-message a {
    border-bottom: 1px solid var(--hart-primary);
}

.ghm-offer-selector .subscribe-save-message-container input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border: 2px solid var(--hart-primary);
    -webkit-box-shadow: unset;
    box-shadow: unset;
    background-color: var(--hart-white);
    vertical-align: middle;
    cursor: pointer;
    border-radius: 0;
}

.ghm-offer-selector .subscribe-save-message-container input[type="checkbox"]:checked {
    background-image: url('data:image/svg+xml,<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 448 512"><defs><style> .cls-1 { fill: %23747742; stroke-width: 0px; } </style></defs><path class="cls-1" d="M438.6,105.4c12.5,12.5,12.5,32.8,0,45.3L182.6,406.7c-12.5,12.5-32.8,12.5-45.3,0L9.3,278.7c-12.5-12.5-12.5-32.8,0-45.3,12.5-12.5,32.8-12.5,45.3,0l105.4,105.3,233.4-233.3c12.5-12.5,32.8-12.5,45.3,0h0Z"/></svg>');
    background-size: 80%;
    background-position: center center;
    background-repeat: no-repeat;
}

.ghm-offer-selector .subscribe-save-message-container label {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--hart-primary);
    cursor: pointer;
    margin-left: 5px;
}

/* 8. Out of Stock form */
.notify-me-container .out-of-stock-message {
    text-transform: uppercase;
    color: var(--hart-red);
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.notify-me-container .notify-me-form .form-group {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    gap: 6px;
}

.notify-me-container .notify-me-form .form-group label {
    display: block;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--hart-primary);
}

.notify-me-container .notify-me-form .form-group input {
    display: block;
    width: 100%;
    border-radius: 8px;
    padding: 10px 20px;
    color: var(--hart-primary);
    border: 1px solid var(--hart-gray);
    box-shadow: 0px 2px 3px rgba(19, 22, 29, 0.04), 0px 1px 2px rgba(19, 22, 29, 0.08);
    outline: none;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
}

.notify-me-container .notify-me-form .form-group input:focus,
.notify-me-container .notify-me-form .form-group input:active {
    border-color: var(--hart-primary);
}

.notify-me-container .notify-me-form .notify-me-submit-btn {
    margin: 20px auto;
    display: block;
    padding: 10px 20px;
    background-color: var(--hart-red);
    border-radius: 99999px;
    border: none;
    outline: none;
    text-transform: uppercase;
    color: var(--hart-white);
    background-color: var(--hart-primary);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    transition: 0.3s cubic-bezier(.17, .67, .83, .67);
}

.notify-me-container .notify-me-form .notify-me-submit-btn:hover {
    background-color: var(--hart-red);
}

.notify-me-container .notify-me-form .notify-me-submit-btn:focus {
    box-shadow: 0px 0px 0px 4px rgba(41, 69, 184, 0.12);
}

.notify-me-container .notify-me-form .notify-me-submit-btn .loading {
    display: none;
    margin: auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spinner 0.6s infinite linear;
}

.notify-me-container .notify-me-message {
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

@-webkit-keyframes spinner {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359deg);
    }
}

@keyframes spinner {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359deg);
    }
}

/* 9. Responsive */
@media screen and (max-width: 450px) {
    .ghm-offer-selector .purchase-type-options {
        flex-direction: column;
        border: none;
    }

    .ghm-offer-selector .purchase-type-option label:has(input[type="radio"]) {
        border: 1.5px solid var(--hart-dark-green);
    }

    .ghm-offer-selector .quantity-container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas: "quantity badge price";
    }

    .ghm-offer-selector .quantity-container.with-flags {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas: "quantity price flags"
            "badge badge flags";
    }

    .ghm-offer-selector .badge {
        font-size: 12px;
        justify-self: start;
    }

    .ghm-offer-selector .quantity-container .quantity {
        font-size: 16px;
    }

    .ghm-offer-selector .quantity-container .final-price {
        font-size: 24px;
        justify-self: center;
    }

    .ghm-offer-selector .quantity-container .best-seller-flag,
    .ghm-offer-selector .quantity-container .best-value-flag {
        width: 46px;
    }

    .ghm-offer-selector .logged-out-message-container .links {
        flex-direction: column;
        gap: 2px;
    }

    .ghm-offer-selector .button-container .add-to-cart {
        font-size: 16px;
    }
}

@supports not selector(:has(*)) {
    .ghm-offer-selector ul li label.active {
        background-color: var(--hart-primary);
    }

    .ghm-offer-selector ul li label.active .badge {
        color: var(--hart-primary);
        background-color: var(--hart-white);
    }

    .ghm-offer-selector ul li label.active .quantity-container .quantity,
    .ghm-offer-selector ul li label.active .quantity-container .final-price,
    .ghm-offer-selector ul li label.active .savings-message {
        color: var(--hart-white);
    }
}