:root {
    --sh-checkout-green: var(--e-global-color-primary, #064942);
    --sh-checkout-light-green: var(--e-global-color-secondary, #6ebea5);
    --sh-checkout-text: var(--e-global-color-text, #064942);
    --sh-checkout-accent: var(--e-global-color-057f140, #ff961b);
    --sh-checkout-white: var(--e-global-color-d9141eb, #ffffff);
    --sh-checkout-soft: var(--e-global-color-0faa537, #e1f8f0);
    --sh-checkout-font: var(--e-global-typography-text-font-family, "Urbanist", sans-serif);
    --sh-checkout-subtitle-font: var(--e-global-typography-accent-font-family, var(--sh-checkout-font));
    --sh-checkout-subtitle-size: var(--e-global-typography-accent-font-size, clamp(18px, 1.67vw, 24px));
    --sh-checkout-subtitle-weight: var(--e-global-typography-accent-font-weight, 600);
    --sh-checkout-subtitle-line: var(--e-global-typography-accent-line-height, 1.2);
    --sh-checkout-body-size: var(--e-global-typography-text-font-size, clamp(15px, 1.1vw, 16px));
    --sh-checkout-body-weight: var(--e-global-typography-text-font-weight, 400);
    --sh-checkout-input-height: 30px;
    --sh-checkout-input-radius: 7px;
}

.sh-checkout,
.sh-checkout * {
    box-sizing: border-box;
}

.sh-checkout {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: clamp(32px, 5vw, 72px) 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
    gap: clamp(32px, 5.5vw, 76px);
    color: var(--sh-checkout-text);
    font-family: var(--sh-checkout-font);
}

.sh-checkout [type="button"],
.sh-checkout [type="submit"],
.sh-checkout button {
    padding: 0;
}

.sh-checkout [type="button"]:hover,
.sh-checkout [type="submit"]:hover,
.sh-checkout button:hover,
.sh-checkout [type="button"]:focus,
.sh-checkout [type="submit"]:focus,
.sh-checkout button:focus {
    filter: none;
    transform: none;
    box-shadow: none;
    outline: none;
}

.sh-checkout__main {
    min-width: 0;
}

.sh-checkout__panel {
    border-bottom: 1px solid var(--sh-checkout-green);
    margin: 0 0 22px;
    padding: 0 0 22px;
}

.sh-checkout__panel:not(.is-active) .sh-checkout__step-body {
    display: none;
}

.sh-checkout__step-title {
    margin: 0;
}

.sh-checkout__step-title button {
    width: 100%;
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--sh-checkout-green);
    cursor: default;
    font-family: var(--sh-checkout-subtitle-font);
    font-size: var(--sh-checkout-subtitle-size);
    font-weight: var(--sh-checkout-subtitle-weight);
    line-height: var(--sh-checkout-subtitle-line);
    letter-spacing: 0;
    text-align: left;
}

.sh-checkout__panel.is-unlocked .sh-checkout__step-title button {
    cursor: pointer;
}

.sh-checkout__step-title button:hover,
.sh-checkout__step-title button:focus {
    color: var(--sh-checkout-green);
    background: transparent;
    filter: none;
    transform: none;
    box-shadow: none;
    outline: none;
}

.sh-checkout__step-body {
    padding-top: 24px;
}

.sh-checkout__google,
.sh-checkout__email-login,
.sh-checkout__continue-payment,
.sh-checkout__coupon button,
.sh-checkout .woocommerce-checkout #place_order,
.sh-checkout .woocommerce-checkout button.button {
    min-height: 50px;
    border-radius: 999px;
    font: 500 var(--sh-checkout-body-size) / 1.2 var(--sh-checkout-font);
    text-decoration: none;
}

.sh-checkout__google {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 30px;
    border: 1px solid var(--sh-checkout-green);
    color: var(--sh-checkout-green);
    background: var(--sh-checkout-white);
    cursor: pointer;
}

.sh-checkout__google.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.sh-checkout__google:hover,
.sh-checkout__email-login:hover,
.sh-checkout__continue-payment:hover,
.sh-checkout__text-action:hover,
.sh-checkout__coupon button:hover,
.sh-checkout .woocommerce-checkout #place_order:hover {
    filter: none;
    transform: none;
    box-shadow: none;
}

.sh-checkout__google:hover,
.sh-checkout__text-action:hover {
    color: var(--sh-checkout-green);
}

.sh-checkout__email-login:hover,
.sh-checkout__continue-payment:hover,
.sh-checkout__coupon button:hover,
.sh-checkout .woocommerce-checkout #place_order:hover {
    color: var(--sh-checkout-white);
}

.sh-checkout__google-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--sh-checkout-white);
    font-weight: 800;
}

.sh-checkout__google-blue {
    color: #4285f4;
    font-size: 18px;
}

.sh-checkout__setup-note {
    margin: 12px 0 0;
    color: var(--sh-checkout-green);
    font-size: 14px;
}

.sh-checkout__divider {
    display: flex;
    align-items: center;
    gap: 48px;
    margin: 34px 0 24px;
    color: var(--sh-checkout-green);
}

.sh-checkout__divider::before,
.sh-checkout__divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--sh-checkout-green);
}

.sh-checkout__email-login,
.sh-checkout__continue-payment {
    width: 100% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px !important;
    border: 1px solid var(--sh-checkout-green) !important;
    border-radius: 999px !important;
    background: var(--sh-checkout-green) !important;
    color: var(--sh-checkout-white) !important;
    cursor: pointer;
    font: 500 var(--sh-checkout-body-size) / 1.2 var(--sh-checkout-font) !important;
    text-align: center;
    text-decoration: none !important;
}

.sh-checkout__account-actions {
    margin: 18px 4px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    color: var(--sh-checkout-green);
    font-size: var(--sh-checkout-body-size);
}

.sh-checkout__account-actions p {
    margin: 0;
}

.sh-checkout__text-action {
    appearance: none;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: var(--e-global-color-primary, var(--sh-checkout-green)) !important;
    cursor: pointer;
    font: 400 var(--sh-checkout-body-size) / 1.2 var(--sh-checkout-font);
    box-shadow: none !important;
    outline: 0 !important;
    text-decoration: underline;
}

.sh-checkout__text-action:hover,
.sh-checkout__text-action:focus,
.sh-checkout__text-action:active {
    border: 0 !important;
    background: transparent !important;
    color: var(--e-global-color-primary, var(--sh-checkout-green)) !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    text-decoration: underline;
}

.sh-checkout__logged-in {
    margin: 0 0 20px;
    color: var(--sh-checkout-green);
    font-size: var(--sh-checkout-body-size);
}

.sh-checkout__customer-details,
.sh-checkout__billing,
.sh-checkout__shipping {
    display: grid;
    gap: 0;
}

.sh-checkout .woocommerce-billing-fields > h3,
.sh-checkout .woocommerce-shipping-fields > h3,
.sh-checkout .woocommerce-additional-fields > h3,
.sh-checkout .woocommerce-account-fields {
    display: none;
}

.sh-checkout .form-row {
    width: 100% !important;
    float: none !important;
    clear: both;
    margin: 0 0 12px;
    padding: 0;
}

.sh-checkout .form-row label {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.sh-checkout .input-text,
.sh-checkout select,
.sh-checkout textarea,
.sh-checkout .select2-container .select2-selection--single {
    width: 100%;
    min-height: var(--sh-checkout-input-height);
    border: 1px solid var(--sh-checkout-green);
    border-radius: var(--sh-checkout-input-radius);
    background: var(--sh-checkout-white);
    color: var(--sh-checkout-text);
    padding: 6px 12px;
    font: var(--sh-checkout-body-weight) var(--sh-checkout-body-size) / 1.2 var(--sh-checkout-font);
    outline: none;
}

.sh-checkout .input-text::placeholder,
.sh-checkout textarea::placeholder {
    color: var(--sh-checkout-light-green);
    opacity: 1;
}

.sh-checkout textarea.input-text {
    min-height: 78px;
}

.sh-checkout .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
}

.sh-checkout .select2-container .select2-selection__rendered {
    padding-left: 0;
    color: var(--sh-checkout-text);
}

.sh-checkout .woocommerce-checkout #place_order,
.sh-checkout .woocommerce-checkout button.button {
    width: 100%;
    margin-top: 24px;
    border: 0;
    background: var(--sh-checkout-accent);
    color: var(--sh-checkout-white);
    padding: 15px 30px;
}

.sh-checkout__after-payment-template {
    margin-top: 64px;
}

.sh-checkout__summary-card {
    min-height: 680px;
    border: 1px solid var(--sh-checkout-green);
    border-radius: 28px;
    padding: clamp(28px, 4vw, 52px);
    background: var(--sh-checkout-white);
}

.sh-checkout__summary-card h2 {
    margin: 0 0 48px;
    color: var(--sh-checkout-green);
    font-family: var(--sh-checkout-subtitle-font);
    font-size: var(--sh-checkout-subtitle-size);
    font-weight: var(--sh-checkout-subtitle-weight);
    line-height: var(--sh-checkout-subtitle-line);
    letter-spacing: 0;
}

.sh-checkout__item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
    padding: 0 0 46px;
    margin: 0 0 48px;
    border-bottom: 1px solid var(--sh-checkout-green);
}

.sh-checkout__item-image img {
    width: 82px;
    height: 110px;
    object-fit: contain;
    display: block;
}

.sh-checkout__item h3 {
    margin: 0 0 6px;
    color: var(--sh-checkout-green);
    font: 700 19px / 1.2 var(--sh-checkout-font);
}

.sh-checkout__item p {
    margin: 0;
    color: var(--sh-checkout-green);
    font-size: 18px;
}

.sh-checkout__qty {
    width: max-content;
    min-width: 92px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    border: 1px solid var(--sh-checkout-green);
    border-radius: 999px;
    color: var(--sh-checkout-green);
}

.sh-checkout__qty button {
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: var(--sh-checkout-green);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.sh-checkout__qty span {
    min-width: 18px;
    text-align: center;
    font-weight: 600;
}

.sh-checkout__item-price {
    color: var(--sh-checkout-green);
    font: 800 24px / 1.1 var(--sh-checkout-font);
    white-space: nowrap;
}

.sh-checkout__coupon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 18px;
    margin: 0 0 clamp(64px, 9vw, 150px);
}

.sh-checkout__coupon input {
    min-width: 0;
    border: 1px solid var(--sh-checkout-green);
    border-radius: 8px;
    padding: 14px 22px;
    color: var(--sh-checkout-text);
    font: 400 18px / 1.2 var(--sh-checkout-font);
}

.sh-checkout__coupon button {
    border: 0;
    background: var(--sh-checkout-green);
    color: var(--sh-checkout-white);
    cursor: pointer;
}

.sh-checkout__review {
    border-top: 1px solid var(--sh-checkout-green);
    padding-top: 22px;
}

.sh-checkout__review table.shop_table {
    width: 100%;
    border: 0;
    margin: 0;
    border-collapse: collapse;
    color: var(--sh-checkout-green);
}

.sh-checkout__review table.shop_table th,
.sh-checkout__review table.shop_table td {
    border: 0;
    padding: 8px 0;
    background: transparent;
    color: var(--sh-checkout-green);
    font: 700 18px / 1.25 var(--sh-checkout-font);
}

.sh-checkout__review table.shop_table td {
    text-align: right;
}

.sh-checkout__review table.shop_table th {
    text-align: left;
}

.sh-checkout__review table.shop_table .order-total th,
.sh-checkout__review table.shop_table .order-total td {
    padding-top: 18px;
    font-size: 24px;
    text-transform: uppercase;
}

.sh-checkout__review table.shop_table thead,
.sh-checkout__review table.shop_table .cart_item {
    display: none;
}

.sh-checkout__note {
    margin: 26px 0 0;
    border-top: 1px solid var(--sh-checkout-green);
    padding-top: 28px;
    color: var(--sh-checkout-green);
    font-size: 18px;
}

.sh-checkout-message {
    max-width: 760px;
    margin: 40px auto;
    color: #064942;
    font-family: "Urbanist", sans-serif;
    font-size: 18px;
}

.sh-checkout-auth {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: var(--sh-checkout-font);
}

.sh-checkout-auth.is-open {
    display: flex;
}

.sh-checkout-auth__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 73, 66, 0.45);
}

.sh-checkout-auth__dialog {
    position: relative;
    width: min(100%, 480px);
    border: 1px solid var(--sh-checkout-green);
    border-radius: 24px;
    padding: 42px;
    background: var(--sh-checkout-white);
    color: var(--sh-checkout-green);
    box-shadow: 0 22px 70px rgba(6, 73, 66, 0.18);
}

.sh-checkout-auth__close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 28px;
    height: 28px;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: var(--sh-checkout-green);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.sh-checkout-auth__dialog h2 {
    margin: 0 32px 10px 0;
    color: var(--sh-checkout-green);
    font-family: var(--sh-checkout-subtitle-font);
    font-size: var(--sh-checkout-subtitle-size);
    font-weight: var(--sh-checkout-subtitle-weight);
    line-height: var(--sh-checkout-subtitle-line);
    letter-spacing: 0;
}

.sh-checkout-auth__dialog p {
    margin: 0 0 20px;
    color: var(--sh-checkout-green);
    font-size: var(--sh-checkout-body-size);
}

.sh-checkout-auth__message {
    display: none;
    margin: 0 0 16px;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.35;
}

.sh-checkout-auth__message:not(:empty) {
    display: block;
}

.sh-checkout-auth__message.is-error {
    background: #fff1f0;
    color: #b42318;
}

.sh-checkout-auth__message.is-success {
    background: var(--sh-checkout-soft);
    color: var(--sh-checkout-green);
}

.sh-checkout-auth__form {
    display: none;
    gap: 8px;
}

.sh-checkout-auth__form.is-active {
    display: grid;
}

.sh-checkout-auth__form label {
    margin: 6px 0 0;
    color: var(--sh-checkout-green);
    font: 500 14px / 1.2 var(--sh-checkout-font);
}

.sh-checkout-auth__form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--sh-checkout-green);
    border-radius: 8px;
    background: var(--sh-checkout-white);
    color: var(--sh-checkout-text);
    padding: 10px 14px;
    font: var(--sh-checkout-body-weight) var(--sh-checkout-body-size) / 1.2 var(--sh-checkout-font);
    outline: none;
}

.sh-checkout-auth__submit {
    width: 100%;
    min-height: 50px;
    margin-top: 16px;
    border: 0 !important;
    border-radius: 999px;
    padding: 0 22px !important;
    background: var(--sh-checkout-green) !important;
    color: var(--sh-checkout-white) !important;
    cursor: pointer;
    font: 500 var(--sh-checkout-body-size) / 1.2 var(--sh-checkout-font);
}

.sh-checkout-auth__submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.sh-checkout-auth__switch {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: var(--sh-checkout-green);
    font-size: var(--sh-checkout-body-size);
}

.sh-checkout-auth__switch button {
    appearance: none;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: var(--e-global-color-primary, var(--sh-checkout-green)) !important;
    cursor: pointer;
    font: 500 var(--sh-checkout-body-size) / 1.2 var(--sh-checkout-font);
    box-shadow: none !important;
    outline: 0 !important;
    text-decoration: underline;
}

.sh-checkout-auth__close:hover,
.sh-checkout-auth__close:focus,
.sh-checkout-auth__submit:hover,
.sh-checkout-auth__submit:focus,
.sh-checkout-auth__switch button:hover,
.sh-checkout-auth__switch button:focus,
.sh-checkout-auth__switch button:active {
    filter: none;
    transform: none;
    box-shadow: none !important;
    outline: 0 !important;
}

.sh-checkout-auth__switch button:hover,
.sh-checkout-auth__switch button:focus,
.sh-checkout-auth__switch button:active {
    color: var(--e-global-color-primary, var(--sh-checkout-green)) !important;
}

body.sh-checkout-auth-open {
    overflow: hidden;
}

.sh-cart-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: var(--sh-checkout-font);
}

.sh-cart-popup.is-open {
    display: flex;
}

.sh-cart-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 73, 66, 0.45);
}

.sh-cart-popup__dialog {
    position: relative;
    width: min(100%, 520px);
    border: 1px solid var(--sh-checkout-green);
    border-radius: 24px;
    padding: 42px;
    background: var(--sh-checkout-white);
    color: var(--sh-checkout-green);
    box-shadow: 0 22px 70px rgba(6, 73, 66, 0.18);
}

.sh-cart-popup__close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 28px;
    height: 28px;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--sh-checkout-green);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.sh-cart-popup__dialog h2 {
    margin: 0 32px 12px 0;
    color: var(--sh-checkout-green);
    font-family: var(--sh-checkout-subtitle-font);
    font-size: var(--sh-checkout-subtitle-size);
    font-weight: var(--sh-checkout-subtitle-weight);
    line-height: var(--sh-checkout-subtitle-line);
}

.sh-cart-popup__dialog p {
    margin: 0 0 28px;
    color: var(--sh-checkout-green);
    font-size: var(--sh-checkout-body-size);
}

.sh-cart-popup__actions {
    display: grid;
    gap: 12px;
}

.sh-cart-popup__button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 20px;
    cursor: pointer;
    font: 500 var(--sh-checkout-body-size) / 1.2 var(--sh-checkout-font);
    text-align: center;
    text-decoration: none;
}

.sh-cart-popup__button--secondary {
    border: 1px solid var(--sh-checkout-green);
    background: var(--sh-checkout-white);
    color: var(--sh-checkout-green);
}

.sh-cart-popup__button--primary {
    border: 1px solid var(--sh-checkout-green);
    background: var(--sh-checkout-green);
    color: var(--sh-checkout-white);
}

.sh-cart-popup__button:hover,
.sh-cart-popup__button:focus {
    filter: none;
    transform: none;
    box-shadow: none;
}

.sh-cart-popup__button--secondary:hover,
.sh-cart-popup__button--secondary:focus {
    color: var(--sh-checkout-green);
}

.sh-cart-popup__button--primary:hover,
.sh-cart-popup__button--primary:focus {
    color: var(--sh-checkout-white);
}

body.sh-cart-popup-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .sh-checkout {
        grid-template-columns: 1fr;
    }

    .sh-checkout__summary {
        order: -1;
    }
}

@media (max-width: 640px) {
    .sh-checkout {
        padding: 24px 14px;
    }

    .sh-cart-popup__dialog {
        border-radius: 18px;
        padding: 32px 22px 24px;
    }

    .sh-checkout-auth__dialog {
        border-radius: 18px;
        padding: 32px 22px 24px;
    }

    .sh-checkout__step-body {
        padding-top: 28px;
    }

    .sh-checkout .input-text,
    .sh-checkout select,
    .sh-checkout textarea,
    .sh-checkout .select2-container .select2-selection--single {
        min-height: 44px;
        border-radius: 10px;
        padding: 10px 14px;
        font-size: 16px;
    }

    .sh-checkout .input-text::placeholder,
    .sh-checkout textarea::placeholder {
        font-size: 16px;
    }

    .sh-checkout__item {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 16px;
    }

    .sh-checkout__item-price {
        grid-column: 2;
        font-size: 20px;
    }

    .sh-checkout__item-image img {
        width: 64px;
        height: 88px;
    }

    .sh-checkout__coupon {
        grid-template-columns: 1fr;
    }
}
