.cart-page,
.checkout-page {
    --purchase-ink: #253326;
    --purchase-muted: #6b7466;
    --purchase-line: #e6e9e1;
    --purchase-accent: var(--smpls-color-theme, #075108);
    color: var(--purchase-ink);
}

.purchase-steps {
    margin: 0 0 36px;
}

.purchase-steps ol {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.purchase-steps li {
    min-width: 0;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--purchase-line);
    color: var(--purchase-muted);
    font-size: 15px;
}

.purchase-steps li > :is(a, span) {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    line-height: 1.3;
    text-decoration: none;
}

.purchase-steps li > :is(a, span) > span {
    display: grid;
    flex: 0 0 28px;
    place-items: center;
    height: 28px;
    border: 1px solid var(--purchase-line);
    border-radius: 50%;
    font-size: 13px;
}

.purchase-steps .is-current {
    border-color: var(--purchase-accent);
    color: var(--purchase-ink);
    font-weight: 600;
}

.purchase-steps .is-current > span > span {
    border-color: var(--purchase-accent);
    background: var(--purchase-accent);
    color: #fff;
}

.purchase-steps .is-complete > :is(a, span) > span {
    border-color: #dbe4d4;
    background: #eff4e9;
    color: var(--purchase-accent);
}

.cart-page .purchase-eyebrow,
.checkout-page .purchase-eyebrow {
    margin: 0 0 10px;
    color: var(--purchase-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

body:has(:is(.cart-page, .checkout-page)) :is(#smartsupp-widget-container, #page-scroll-up) {
    display: none !important;
}

.checkout-page {
    padding-top: 48px;
    padding-bottom: 72px;
    font-size: 16px;
    line-height: 1.5;
}

.checkout-page *,
.checkout-page *::before,
.checkout-page *::after {
    box-sizing: border-box;
}

.checkout-page :is(h1, h2, h3, h4, h5) {
    margin-top: 0;
    color: var(--purchase-ink);
    font-family: var(--smpls-font-primary, 'Roboto Condensed', sans-serif);
    letter-spacing: normal;
    text-transform: none;
}

.checkout-page__header {
    margin-bottom: 32px;
}

.checkout-page__header h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 3vw, 38px);
    font-weight: 600;
    line-height: 1.2;
}

.checkout-page__header > p:last-of-type {
    max-width: 540px;
    margin: 0;
    color: var(--purchase-muted);
}

.checkout-jump {
    display: none;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
    align-items: start;
    gap: 28px;
}

.checkout-fields,
.checkout-summary {
    min-width: 0;
}

.checkout-page .checkout-card {
    margin: 0 0 20px;
    padding: 28px;
    border: 1px solid var(--purchase-line);
    border-radius: 16px;
    background: #fffefb;
}

.checkout-card > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.3;
}

.checkout-card__number {
    display: grid;
    flex: 0 0 30px;
    place-items: center;
    height: 30px;
    border: 1px solid #e0e7d9;
    border-radius: 50%;
    background: #f1f5ec;
    color: var(--purchase-accent);
    font-size: 14px;
}

.checkout-card__intro {
    margin: 10px 0 24px;
    color: var(--purchase-muted);
    font-size: 14px;
}

.checkout-page .checkout-login {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 20px 24px;
    border: 1px solid #dfe7d8;
    border-radius: 14px;
    background: #f4f7ef;
    color: var(--purchase-ink);
    text-decoration: none;
}

.checkout-login > svg {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: var(--purchase-accent);
}

.checkout-login strong,
.checkout-login > span > span {
    display: block;
    line-height: 1.5;
}

.checkout-login > span > span {
    margin-top: 2px;
    color: var(--purchase-muted);
    font-size: 13px;
}

.checkout-login__arrow {
    margin-left: auto;
    color: var(--purchase-accent);
    font-family: sans-serif;
    font-size: 24px;
}

.checkout-page .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 18px;
}

.checkout-page .form-row > div {
    width: auto;
    min-width: 0;
    padding: 0;
}

.checkout-address > .form-row > div:first-child,
.checkout-address #delivery_billing_same_content .form-row > div:first-child,
.checkout-page .form-row > div:only-child {
    grid-column: 1 / -1;
}

.checkout-page .form-floating {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0 !important;
}

.checkout-page .form-floating > label:not(.error) {
    position: static;
    grid-row: 1;
    width: auto;
    height: auto;
    margin: 0 0 7px;
    padding: 0;
    overflow: visible;
    color: var(--purchase-ink);
    font-size: 14px;
    font-weight: 400;
    white-space: normal;
    opacity: 1;
    transform: none !important;
    pointer-events: auto;
}

.checkout-page .form-control,
.checkout-page .form-floating > .form-control {
    grid-row: 2;
    width: 100%;
    min-width: 0;
    height: 50px;
    min-height: 50px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #d8ded2 !important;
    border-radius: 8px;
    background: #fff;
    color: var(--purchase-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: none;
}

.checkout-page .form-control::placeholder {
    color: #949b8e;
}

.checkout-page .form-floating .form-control::placeholder {
    color: transparent;
}

.checkout-page .form-floating > label.error {
    position: static;
    grid-row: 3;
    height: auto;
    margin: 6px 0 0;
    padding: 0;
    color: #a33232;
    font-size: 13px;
    white-space: normal;
    transform: none;
}

.checkout-page .form-control.error {
    border-color: #b64646;
}

.checkout-page abbr.required {
    color: var(--purchase-muted);
    text-decoration: none;
}

.checkout-address > br,
.checkout-address :is(#billing_info_content, #delivery_billing_same_content) > br {
    display: none;
}

.checkout-page :is(#billing_info, #delivery_billing_same, #register_customer) {
    align-items: flex-start;
    gap: 10px;
    margin: 0 !important;
    padding: 12px 0;
}

.checkout-page :is(#billing_info, #delivery_billing_same, #register_customer) > label {
    margin: 0;
    padding-top: 1px;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.checkout-page .checkbox-input {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 0;
}

.checkout-page .checkbox-input > input {
    position: static;
    width: 22px;
    height: 22px;
    margin: 0;
    opacity: 1;
    appearance: auto;
    accent-color: var(--purchase-accent);
    cursor: pointer;
}

.checkout-page .checkbox-input > input[type="hidden"],
.checkout-page .checkbox-input > span {
    display: none;
}

.checkout-page :is(#billing_info_content, #delivery_billing_same_content, #register_customer_content) {
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--purchase-line);
}

.checkout-page :is(#billing_info_content, #delivery_billing_same_content, #register_customer_content) .review-title {
    margin: 0 0 12px !important;
    font-size: 20px;
}

.checkout-page #billing_info_content > p {
    margin: 0 0 18px !important;
    color: var(--purchase-muted);
    font-size: 14px;
}

.checkout-page .load_from_ares {
    justify-self: start;
    margin-top: 8px;
    color: var(--purchase-accent);
    font-size: 13px;
    text-decoration: underline;
}

.checkout-page #form_order :is(#shipping, #payment) {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.checkout-page #form_order :is(#shipping, #payment) .payment_methods {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkout-page #form_order :is(#shipping, #payment) .payment_method {
    position: relative;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--purchase-line);
    border-radius: 10px;
    background: #fff;
}

.checkout-page #form_order :is(#shipping, #payment) .payment_method:has(input:checked) {
    border-color: #9eb58e;
    background: #f3f7ee;
    box-shadow: inset 0 0 0 1px #9eb58e;
}

.checkout-page #form_order :is(#shipping, #payment) .payment_method:has(input:disabled) {
    opacity: .55;
}

.checkout-page #form_order :is(#shipping, #payment) .payment_method_li_head {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.checkout-option__radio {
    position: relative;
    z-index: 1;
}

.checkout-page #form_order :is(#shipping, #payment) .radio-input,
.checkout-page #form_order :is(#shipping, #payment) .radio-input > input {
    display: block;
    position: static;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    opacity: 1;
    appearance: auto;
    accent-color: var(--purchase-accent);
    cursor: pointer;
}

.checkout-page #form_order :is(#shipping, #payment) .radio-input > span {
    display: none;
}

.checkout-option__content {
    position: static;
    min-width: 0;
}

.checkout-page #form_order :is(#shipping, #payment) .payment_method .form-list {
    position: static;
    margin: 0;
    padding: 0;
}

.checkout-page #form_order :is(#shipping, #payment) .payment_method label {
    position: static;
    display: block;
    margin: 0;
    color: var(--purchase-ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
}

.checkout-page #form_order :is(#shipping, #payment) .payment_method label::after {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    content: '';
}

.checkout-page #form_order :is(#shipping, #payment) .payment_method p {
    margin: 6px 0 0;
    color: var(--purchase-muted);
    font-size: 13px;
    line-height: 1.5;
}

.checkout-option__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 52px;
    color: var(--purchase-ink);
    font-size: 15px;
    line-height: 1.5;
    white-space: nowrap;
}

.checkout-option__logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 28px;
}

.checkout-option__logo img {
    display: block;
    width: 64px;
    height: 28px;
    object-fit: contain;
}

.checkout-option__logo svg {
    width: 26px;
    height: 26px;
    color: var(--purchase-muted);
}

.checkout-page #form_order :is(#shipping, #payment) .shipping_branch_button {
    display: inline-flex;
    position: relative;
    z-index: 1;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    margin-top: 8px;
    padding: 6px 10px;
    border: 1px solid #d4dfcc;
    border-radius: 6px;
    background: #f5f8f0;
    color: var(--purchase-accent);
    font-size: 13px;
    text-decoration: none;
}

.checkout-page #form_order :is(#shipping, #payment) .shipping-ajax-response {
    margin-top: 8px;
    color: var(--purchase-accent);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.checkout-summary {
    position: sticky;
    top: 24px;
    scroll-margin-top: calc(var(--mobile-header-height, 0px) + 20px);
}

.checkout-page .checkout-review {
    background: #f7f9f3;
}

.checkout-review__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.checkout-review__heading h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

.checkout-review__heading > a {
    color: var(--purchase-muted);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.checkout-page #checkout_progress_wrapper {
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.checkout-address-preview {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--purchase-line);
    font-size: 13px;
}

.checkout-address-preview summary {
    color: var(--purchase-muted);
    cursor: pointer;
}

.checkout-page .order-info-box {
    margin: 16px 0 0;
    padding: 0;
    font-size: 13px;
}

.checkout-page .order-info-box > div {
    padding: 0;
}

.checkout-page .order-info-box h5 {
    margin-bottom: 4px;
    font-size: 15px;
}

.checkout-page .order-info-box address {
    margin-bottom: 14px;
    overflow-wrap: anywhere;
}

.checkout-page #checkout-review-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: none;
    font-size: 14px;
}

.checkout-page #checkout-review-table col:first-child {
    width: 68%;
}

.checkout-page #checkout-review-table col:last-child {
    width: 32%;
}

.checkout-page #checkout-review-table thead {
    display: none;
}

.checkout-page #checkout-review-table :is(td, th) {
    display: table-cell;
    width: auto;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid var(--purchase-line);
    background: none;
    color: var(--purchase-ink);
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    vertical-align: top;
    text-transform: none;
    letter-spacing: normal;
}

.checkout-page #checkout-review-table tr {
    display: table-row;
}

.checkout-page #checkout-review-table .amount {
    font-size: inherit;
}

.checkout-page #checkout-review-table strong {
    letter-spacing: normal;
}

.checkout-page #checkout-review-table :is(td, th):last-child {
    padding-left: 14px;
    text-align: right;
}

.checkout-page #checkout-review-table h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.checkout-page #checkout-review-table .product-name a {
    color: inherit;
}

.checkout-page #checkout-review-table .product-name ul {
    display: inline;
    margin: 0;
    padding: 0;
    color: var(--purchase-muted);
    font-size: 13px;
    list-style: none;
}

.checkout-page #checkout-review-table .product-name li {
    display: inline;
}

.checkout-product-quantity {
    display: inline-block;
    margin-right: 8px;
    color: var(--purchase-muted);
    font-size: 13px;
}

.checkout-page #checkout-review-table tfoot th {
    color: var(--purchase-muted);
    font-size: 13px;
}

.checkout-page #checkout-review-table tfoot th strong {
    color: var(--purchase-ink);
    font-weight: 400;
}

.checkout-page #checkout-review-table .checkout-total :is(th, td) {
    padding-top: 22px;
    padding-bottom: 20px;
    border-bottom: 0;
    vertical-align: middle;
}

.checkout-page #checkout-review-table .checkout-total th strong {
    font-size: 17px;
    font-weight: 500;
}

.checkout-page #checkout-review-table .checkout-total td {
    font-size: 28px;
    font-weight: 600;
}

.checkout-page #checkout-review-table .checkout-total td strong {
    font-weight: 600;
}

.checkout-commit {
    padding-top: 20px;
    border-top: 1px solid var(--purchase-line);
}

.checkout-note-label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 400;
}

.checkout-note-label > span {
    color: var(--purchase-muted);
    font-size: 12px;
}

.checkout-page textarea#note {
    height: 94px;
    min-height: 94px;
    resize: vertical;
}

.checkout-page .terms-and-conditions-wrapper {
    margin: 22px 0 !important;
}

.checkout-page .terms-and-conditions-wrapper .form-check {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 0 10px;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.checkout-page .terms-and-conditions-wrapper .form-check-label {
    padding: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}

.checkout-page .terms-and-conditions-wrapper a {
    color: var(--purchase-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkout-page .terms-and-conditions-wrapper label.error {
    grid-column: 2;
    color: #a33232;
    font-size: 13px;
}

.checkout-page .checkout-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid var(--purchase-accent);
    border-radius: 9px;
    background: var(--purchase-accent);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
}

.checkout-submit > span {
    font-family: sans-serif;
    font-size: 22px;
    font-weight: 400;
}

.checkout-submit-note {
    margin: 12px 0 0;
    color: var(--purchase-muted);
    font-size: 12px;
    text-align: center;
}

.checkout-page :is(a, button, input, textarea, summary):focus-visible {
    outline: 2px solid var(--purchase-accent);
    outline-offset: 3px;
}

.checkout-page #form_order :is(#shipping, #payment) .payment_method:focus-within {
    outline: 2px solid var(--purchase-accent);
    outline-offset: 3px;
}

.checkout-page #form_order :is(#shipping, #payment) .payment_method:hover:not(:has(input:disabled)) {
    border-color: #b3c3a6;
}

.checkout-submit:hover {
    filter: brightness(.9);
}

@media (max-width: 991.98px) {
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .checkout-summary {
        position: static;
    }

    .checkout-jump {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        min-height: 44px;
        margin-top: 10px;
        color: var(--purchase-accent);
        font-size: 14px;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}

@media (max-width: 575.98px) {
    .purchase-steps {
        margin-bottom: 28px;
    }

    .purchase-steps ol {
        grid-template-columns: 1fr 1.6fr 1fr;
        gap: 8px;
    }

    .purchase-steps li {
        padding-bottom: 12px;
        font-size: 12px;
    }

    .purchase-steps li > :is(a, span) {
        gap: 6px;
    }

    .purchase-steps li > :is(a, span) > span {
        flex-basis: 23px;
        height: 23px;
        font-size: 11px;
    }

    .checkout-page {
        padding: 24px 16px 40px;
    }

    .checkout-page__header {
        margin-bottom: 22px;
    }

    .checkout-page__header > p:last-of-type {
        font-size: 15px;
    }

    .checkout-page .checkout-card {
        margin-bottom: 16px;
        padding: 22px 18px;
        border-radius: 13px;
    }

    .checkout-card > h2 {
        font-size: 22px;
    }

    .checkout-page .checkout-login {
        gap: 12px;
        margin-bottom: 16px;
        padding: 18px;
    }

    .checkout-page .form-row {
        gap: 14px 12px;
        margin-bottom: 16px;
    }

    .checkout-contact .form-row:nth-of-type(2),
    .checkout-address #billing_info_content .form-row,
    .checkout-address #register_customer_content .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .checkout-page #form_order :is(#shipping, #payment) .payment_method {
        padding: 14px 12px;
    }

    .checkout-page #form_order :is(#shipping, #payment) .payment_method_li_head {
        grid-template-columns: 20px minmax(0, 1fr) auto;
        gap: 9px;
    }

    .checkout-page #form_order :is(#shipping, #payment) .payment_method label {
    position: static;
        font-size: 15px;
    }

    .checkout-option__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 52px;
        font-size: 14px;
    }

    .checkout-review__heading h2 {
        font-size: 23px;
    }

    .checkout-page #checkout-review-table .checkout-total td {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .checkout-page *, .purchase-steps * {
        scroll-behavior: auto;
        transition: none;
    }
}
