:root {
    --tda-ink: #172132;
    --tda-muted: #6d7380;
    --tda-line: #d9dde3;
    --tda-line-strong: #aab3c0;
    --tda-surface: #ffffff;
    --tda-surface-soft: #f6f7f9;
    --tda-summary: #faf8f5;
    --tda-accent: #142f53;
    --tda-accent-hover: #0d2442;
    --tda-focus: #3269a8;
    --tda-danger: #b42318;
    --tda-radius: 10px;
    --tda-shadow: 0 18px 48px rgb(23 33 50 / 8%);
    --tda-font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --tda-checkout-bg: #ffffff;
    --tda-field-border: #dedede;
    --tda-field-focus: #162644;
    --tda-field-ink: #0b0b0b;
    --tda-field-muted: #6e6e6e;
}

body.tda-shopify-checkout,
body.tda-shopify-cart {
    color: var(--tda-ink);
    font-family: var(--tda-font-sans);
}

body.tda-shopify-cart {
    background: var(--tda-checkout-bg);
}

body.tda-shopify-checkout *,
body.tda-shopify-checkout *::before,
body.tda-shopify-checkout *::after,
body.tda-shopify-cart *,
body.tda-shopify-cart *::before,
body.tda-shopify-cart *::after {
    box-sizing: border-box;
}

body.tda-shopify-checkout :where(input, select, textarea, button),
body.tda-shopify-cart :where(input, select, textarea, button) {
    font: inherit;
}

/* Checkout page shell */
.tda-shopify-checkout .wp-site-blocks {
    padding: 0;
}

.tda-checkout-header {
    align-items: center;
    background: var(--tda-surface);
    border-bottom: 1px solid #e8e1d4;
    display: flex;
    justify-content: center;
    min-height: 88px;
    padding: 16px 24px;
}

.tda-checkout-header .tda-checkout-wordmark {
    border: 0;
    color: var(--tda-ink);
    font-family: "Lobster", cursive;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.2;
    margin: 0;
    padding: 8px 20px;
    text-align: center;
    text-transform: none;
    overflow-wrap: anywhere;
}

.tda-checkout-header .tda-checkout-wordmark a {
    color: inherit;
    text-decoration: none;
}

@media (min-width: 901px) {
    body.tda-shopify-checkout .wp-site-blocks {
        background: linear-gradient(to right, var(--tda-checkout-bg) calc(50% + 75px), var(--tda-summary) calc(50% + 75px));
    }

    body.tda-shopify-checkout .tda-checkout-header {
        background: transparent;
        border-bottom: 0;
        display: grid;
        grid-template-columns: minmax(0, 650px) minmax(360px, 500px);
        margin: 0 auto;
        max-width: 1240px;
        padding: 16px 0;
    }

    body.tda-shopify-checkout .tda-checkout-header .tda-checkout-wordmark {
        grid-column: 1;
        justify-self: center;
    }

    body.tda-shopify-checkout .tda-checkout-header {
        position: relative;
    }

    body.tda-shopify-checkout .tda-checkout-header::after {
        background: #e8e1d4;
        bottom: 0;
        content: "";
        height: 1px;
        left: max(0px, calc((100% - 1150px) / 2));
        position: absolute;
        width: min(650px, calc(100% - 360px));
    }

    body.tda-shopify-checkout .tda-order-summary {
        margin-top: -88px;
    }
}

@media (min-width: 901px) and (max-width: 1040px) {
    body.tda-shopify-checkout .wp-site-blocks {
        background: linear-gradient(to right, var(--tda-checkout-bg) 58%, var(--tda-summary) 58%);
    }

    body.tda-shopify-checkout .tda-checkout-header {
        grid-template-columns: minmax(0, 58%) minmax(340px, 42%);
    }

    body.tda-shopify-checkout .tda-checkout-header::after {
        left: 0;
        width: min(58%, calc(100% - 340px));
    }
}

.tda-checkout-page {
    background: linear-gradient(90deg, var(--tda-checkout-bg) 0, var(--tda-checkout-bg) 56%, var(--tda-summary) 56%, var(--tda-summary) 100%);
    margin: 0;
    min-height: calc(100vh - 88px);
    padding: 0;
}

.tda-checkout-page > .wp-block-post-content,
.tda-checkout-page .entry-content,
.tda-shopify-checkout .woocommerce {
    margin: 0;
    max-width: none;
    padding: 0;
    width: 100%;
}

.tda-shopify-checkout main .woocommerce {
    max-width: none !important;
    width: 100% !important;
}

.tda-shopify-checkout .woocommerce .tda-checkout-layout {
    margin-block: 0 !important;
}

.tda-shopify-checkout .woocommerce > .woocommerce-notices-wrapper,
.tda-shopify-checkout .woocommerce > .woocommerce-form-login-toggle,
.tda-shopify-checkout .woocommerce > .woocommerce-form-coupon-toggle,
.tda-shopify-checkout .woocommerce > form.login,
.tda-shopify-checkout .woocommerce > form.checkout_coupon {
    background: #fff;
    margin: 0 auto;
    max-width: 1180px;
    padding-left: 24px;
    padding-right: 24px;
}

.tda-shopify-checkout .woocommerce > .woocommerce-notices-wrapper,
.tda-shopify-checkout .woocommerce > .woocommerce-form-login-toggle,
.tda-shopify-checkout .woocommerce > .woocommerce-form-coupon-toggle {
    padding-top: 20px;
}

.tda-shopify-checkout .woocommerce > .woocommerce-notices-wrapper:empty {
    display: none;
}

.tda-shopify-checkout form.checkout_coupon,
.tda-shopify-checkout form.login {
    padding-bottom: 20px;
    padding-top: 14px;
}

.tda-checkout {
    grid-column: 1;
    grid-row: 1;
    margin: 0 !important;
    min-width: 0;
    width: 100%;
}

.tda-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 650px) minmax(360px, 500px);
    justify-content: center;
    margin: 0 auto;
    max-width: 1240px;
    min-height: calc(100vh - 88px);
}

.tda-checkout-main {
    grid-column: 1;
    min-width: 0;
    padding: 32px 48px 48px 24px;
}

.tda-order-summary {
    background: var(--tda-summary);
    border-left: 1px solid #e8e1d4;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 32px 24px 48px 36px;
}

.tda-order-summary__inner {
    overflow: visible;
    padding: 8px 12px 16px;
    position: sticky;
    top: 28px;
}

.admin-bar .tda-order-summary__inner {
    top: 60px;
}

@media (min-width: 901px) {
    .tda-order-summary__inner {
        left: var(--tda-summary-left);
        position: fixed;
        top: 32px;
        width: var(--tda-summary-width);
    }

    .admin-bar .tda-order-summary__inner {
        top: 64px;
    }
}

.tda-order-summary h2 {
    visibility: hidden;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    margin: 0 0 22px;
    text-transform: uppercase;
}

.tda-order-summary-toggle {
    display: none;
    grid-column: 1 / -1;
}

.tda-order-summary .cart-discount td {
    white-space: nowrap;
}

.tda-order-summary .cart-discount td .amount {
    display: inline;
}

.tda-order-summary .woocommerce-remove-coupon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 4px;
    border-radius: 50%;
    color: var(--tda-muted);
    font-size: 0;
    text-decoration: none;
    vertical-align: middle;
}

.tda-order-summary .woocommerce-remove-coupon::before {
    content: "\00d7";
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.tda-order-summary .woocommerce-remove-coupon:hover {
    background: var(--tda-line);
    color: var(--tda-ink);
}

.tda-order-summary .woocommerce-remove-coupon:focus-visible {
    outline: 2px solid var(--tda-accent);
    outline-offset: 2px;
}

.tda-order-summary__coupon {
    margin: 0;
    padding: 0;
}

body.tda-shopify-checkout .tda-order-summary__coupon form.tda-order-summary-coupon-form {
    border: 0;
    display: grid !important;
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    padding: 0;
    width: 100%;
}

body.tda-shopify-checkout .tda-order-summary__coupon form.tda-order-summary-coupon-form .form-row {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

body.tda-shopify-checkout .tda-order-summary__coupon form.tda-order-summary-coupon-form .form-row-first {
    grid-column: 1;
    grid-row: 1;
}

body.tda-shopify-checkout .tda-order-summary__coupon form.tda-order-summary-coupon-form .form-row-last {
    align-self: center;
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    margin-right: 5px !important;
    position: relative;
}

body.tda-shopify-checkout .tda-order-summary__coupon form.tda-order-summary-coupon-form input.input-text {
    background: #fff;
    border: 1px solid var(--tda-line);
    border-radius: 8px;
    height: 48px;
    min-width: 0;
    font-size: 14px;
    padding: 8px 76px 8px 12px;
    width: 100%;
}

body.tda-shopify-checkout .tda-order-summary__coupon form.tda-order-summary-coupon-form .button {
    background: #f6f6f6;
    border: 1px solid #ededed;
    border-radius: 8px;
    color: var(--tda-ink);
    font-size: 14px;
    font-weight: 700;
    height: 32px;
    padding: 5px 9px;
    white-space: nowrap;
}

body.tda-shopify-checkout .tda-order-summary__coupon form.tda-order-summary-coupon-form.is-processing {
    opacity: .65;
    pointer-events: none;
}

body.tda-shopify-checkout .tda-order-summary__coupon form.tda-order-summary-coupon-form input.has-error {
    border-color: var(--tda-danger);
    box-shadow: 0 0 0 1px var(--tda-danger);
}

body.tda-shopify-checkout .tda-order-summary__coupon .coupon-error-notice {
    color: var(--tda-danger);
    font-size: 12px;
    grid-column: 1 / -1;
    line-height: 1.4;
    margin-top: 2px;
}

/* Checkout sections and fields */
.tda-checkout-section,
.tda-checkout-shipping-methods,
.tda-checkout-payment-section {
    margin: 0 0 30px;
}

.tda-section-heading {
    margin-bottom: 10px;
}

.tda-section-heading--split {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.tda-section-heading h2,
.tda-checkout-shipping-methods > h2 {
    color: var(--tda-ink);
    font-family: var(--tda-font-sans);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.25;
    margin: 0;
}

.tda-section-heading p {
    color: var(--tda-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 4px 0 0;
}

.tda-section-heading a,
.tda-checkout-legal a {
    color: var(--tda-ink);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tda-checkout #customer_details,
.tda-checkout #customer_details > .col-1,
.tda-checkout #customer_details > .col-2 {
    float: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.tda-checkout .tda-contact-fields,
.tda-checkout .tda-delivery-fields,
.tda-checkout .tda-billing-fields,
.tda-checkout .woocommerce-shipping-fields__field-wrapper,
.tda-checkout .woocommerce-additional-fields__field-wrapper,
.tda-checkout .create-account {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

body.tda-shopify-checkout .tda-checkout #shipping_address_1-description {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #ff4d5e;
    font-size: 12px;
    line-height: 1.5;
}

body.tda-shopify-checkout .tda-checkout #shipping_address_1-description::before {
    content: "i";
    content: "i" / "";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: static;
    transform: none;
    box-sizing: border-box;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    margin: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-family: Georgia, serif;
    font-size: 9px;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}

body.tda-shopify-checkout .tda-checkout #shipping_address_1-description::after {
    display: none;
}

body.tda-shopify-checkout .tda-checkout .form-row {
    float: none !important;
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100% !important;
}

body.tda-shopify-checkout .tda-checkout :is(#billing_country_field, #shipping_country_field) {
    order: -1;
}

.tda-checkout :is(#billing_first_name_field, #shipping_first_name_field) {
    grid-column: span 3;
}

.tda-checkout :is(#billing_last_name_field, #shipping_last_name_field) {
    grid-column: span 3;
}

.tda-checkout :is(#billing_city_field, #billing_state_field, #billing_postcode_field, #shipping_city_field, #shipping_state_field, #shipping_postcode_field) {
    grid-column: span 2;
}

body.tda-shopify-checkout .tda-checkout .form-row > label {
    color: var(--tda-field-muted);
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    left: 11px;
    line-height: 1.2;
    margin: 0;
    max-width: calc(100% - 26px);
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    text-overflow: ellipsis;
    top: 8px;
    transform-origin: left top;
    transition: color .16s ease, transform .16s ease, top .16s ease;
    white-space: nowrap;
    z-index: 3;
}

body.tda-shopify-checkout .tda-checkout .form-row > label.screen-reader-text {
    clip: auto !important;
    clip-path: none !important;
    height: auto !important;
    margin: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: auto !important;
}

body.tda-shopify-checkout .tda-checkout .form-row:not(.tda-field--enhanced) > label,
body.tda-shopify-checkout .tda-checkout .form-row:not(.tda-field--has-value):not(.tda-field--focused) > label {
    font-size: 14px;
    top: 16px;
}

body.tda-shopify-checkout .tda-checkout .form-row.tda-field--focused > label {
    color: var(--tda-field-muted);
}

.tda-checkout .form-row .required {
    display: none;
}

body.tda-shopify-checkout .tda-checkout .form-row :is(input.input-text, textarea, select),
body.tda-shopify-checkout .tda-checkout .select2-container .select2-selection--single,
.tda-shopify-checkout form.checkout_coupon input.input-text,
.tda-shopify-checkout form.login input.input-text {
    background: var(--tda-surface);
    border: 1px solid var(--tda-field-border);
    border-radius: var(--tda-radius);
    box-shadow: none;
    color: var(--tda-field-ink);
    font-size: 14px;
    font-weight: 400;
    height: 49px;
    line-height: 18px;
    margin: 0;
    outline: none;
    padding: 20px 10px 5px;
    transition: border-color .16s ease, box-shadow .16s ease;
    width: 100%;
}

body.tda-shopify-checkout .tda-checkout .form-row input.input-text {
    padding: 20px 10px 5px;
}

body.tda-shopify-checkout .tda-checkout .form-row select {
    padding: 21px 36px 4px 10px;
}

body.tda-shopify-checkout .tda-checkout .select2-container .select2-selection--single {
    padding: 0;
}

body.tda-shopify-checkout .tda-checkout .form-row :is(input.input-text, textarea)::placeholder {
    color: transparent;
}

body.tda-shopify-checkout .tda-checkout .form-row textarea {
    height: 92px;
    min-height: 92px;
    padding-top: 25px;
    resize: vertical;
}

body.tda-shopify-checkout .tda-checkout .form-row :is(input.input-text, textarea, select):focus,
body.tda-shopify-checkout .tda-checkout .select2-container--focus .select2-selection--single,
body.tda-shopify-checkout .tda-checkout .select2-container--open .select2-selection--single {
    border-color: var(--tda-field-focus);
    box-shadow: 0 0 0 1px var(--tda-field-focus);
}

.tda-checkout .form-row.woocommerce-invalid :is(input.input-text, textarea, select),
.tda-checkout .form-row.woocommerce-invalid .select2-selection--single,
.tda-checkout .form-row.woocommerce-validated :is(input.input-text, textarea, select),
.tda-checkout .form-row.woocommerce-validated .select2-selection--single {
    border-color: var(--tda-field-border) !important;
}

.tda-checkout .form-row.woocommerce-invalid > label,
.tda-checkout .form-row.woocommerce-validated > label {
    color: var(--tda-field-muted) !important;
}

.tda-checkout.tda-validation-active .form-row.woocommerce-invalid :is(input.input-text, textarea, select),
.tda-checkout.tda-validation-active .form-row.woocommerce-invalid .select2-selection--single {
    border-color: var(--tda-danger) !important;
}

.tda-checkout.tda-validation-active .form-row.woocommerce-invalid > label {
    color: var(--tda-danger) !important;
}

.tda-checkout .form-row.tda-field--focused :is(input.input-text, textarea, select),
.tda-checkout .form-row.tda-field--focused .select2-selection--single {
    border-color: var(--tda-field-focus) !important;
    box-shadow: 0 0 0 1px var(--tda-field-focus);
}

.tda-checkout .select2-container {
    display: block;
    width: 100% !important;
}

body.tda-shopify-checkout .tda-checkout .select2-container .select2-selection--single .select2-selection__rendered {
    color: var(--tda-field-ink);
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    padding: 21px 36px 4px 10px;
}

body.tda-shopify-checkout .tda-checkout .select2-container .select2-selection__arrow {
    height: 47px;
    right: 8px;
}

body.tda-shopify-checkout .select2-container--open {
    z-index: 100000;
}

body.tda-shopify-checkout .select2-container--open .select2-dropdown {
    background: var(--tda-surface);
    border: 1px solid var(--tda-line-strong);
    border-radius: var(--tda-radius);
    box-shadow: 0 16px 40px rgb(23 33 50 / 16%);
    color: var(--tda-ink);
    overflow: hidden;
}

body.tda-shopify-checkout .select2-container--open .select2-dropdown--below {
    border-top: 1px solid var(--tda-line-strong);
    margin-top: 6px;
}

body.tda-shopify-checkout .select2-container--open .select2-dropdown--above {
    border-bottom: 1px solid var(--tda-line-strong);
    margin-top: -6px;
}

body.tda-shopify-checkout .select2-container--open .select2-search--dropdown {
    background: var(--tda-surface);
    border-bottom: 1px solid var(--tda-line);
    padding: 10px;
}

body.tda-shopify-checkout .select2-container--open .select2-search--dropdown .select2-search__field {
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--tda-surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236d7380' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    border: 1px solid var(--tda-line);
    border-radius: 8px;
    box-shadow: none;
    color: var(--tda-ink);
    font: 400 14px/1.25 var(--tda-font-sans);
    height: 42px;
    outline: none;
    padding: 10px 38px 10px 12px;
    width: 100%;
}

body.tda-shopify-checkout .select2-container--open .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--tda-focus);
    box-shadow: 0 0 0 1px var(--tda-focus);
}

body.tda-shopify-checkout .select2-container--open .select2-search--dropdown .select2-search__field::placeholder {
    color: var(--tda-muted);
    opacity: 1;
}

body.tda-shopify-checkout .select2-container--default .select2-results > .select2-results__options {
    max-height: min(260px, 42vh);
    overflow-y: auto;
    padding: 6px;
    scrollbar-color: var(--tda-line-strong) transparent;
    scrollbar-width: thin;
}

body.tda-shopify-checkout .select2-container--open .select2-results__option {
    border-radius: 7px;
    color: var(--tda-ink);
    font: 400 14px/1.35 var(--tda-font-sans);
    margin: 0;
    min-height: 0;
    padding: 9px 10px;
}

body.tda-shopify-checkout .select2-container--default .select2-results__option[aria-selected="true"],
body.tda-shopify-checkout .select2-container--default .select2-results__option[data-selected="true"],
body.tda-shopify-checkout .select2-container--default .select2-results__option--selected {
    background: #eef2f7;
    color: var(--tda-ink);
    font-weight: 600;
}

body.tda-shopify-checkout .select2-container--default .select2-results__option--highlighted[aria-selected],
body.tda-shopify-checkout .select2-container--default .select2-results__option--highlighted[data-selected] {
    background: var(--tda-accent);
    color: #fff;
}

.tda-checkout .woocommerce-shipping-fields,
.tda-checkout .woocommerce-additional-fields,
.tda-checkout .woocommerce-account-fields {
    margin-top: 24px;
}

.tda-checkout .woocommerce-additional-fields > h3 {
    display: none;
}

.tda-checkout #customer_details > .col-2 .woocommerce-shipping-fields {
    margin-top: 0;
}

.tda-checkout #customer_details .woocommerce-additional-fields {
    margin-top: 20px;
    margin-bottom: 28px;
}

.tda-checkout .tda-delivery-section {
    margin-bottom: 0;
}

.tda-checkout .tda-order-notes-title {
    color: var(--tda-ink);
    font-family: var(--tda-font-sans);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.015em;
    margin: 0 0 16px;
}

body.tda-shopify-checkout .tda-checkout #order_comments_field > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

body.tda-shopify-checkout .tda-checkout #order_comments {
    height: 120px;
    min-height: 120px;
    padding: 12px;
    font: 400 14px/1.5 var(--tda-font-sans);
    color: var(--tda-ink);
}

body.tda-shopify-checkout .tda-checkout #order_comments::placeholder {
    color: var(--tda-muted);
}

.tda-checkout .woocommerce-shipping-fields:empty,
.tda-checkout .woocommerce-additional-fields:empty {
    display: none;
    margin: 0;
}

.tda-checkout #ship-to-different-address {
    font-family: inherit;
    font-size: 15px;
    margin: 0 0 14px;
}

.tda-billing-options {
    border: 1px solid var(--tda-line);
    border-radius: var(--tda-radius);
    overflow: hidden;
}

.tda-billing-options > label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin: 0;
    color: var(--tda-ink);
    font: 500 14px/1.5 var(--tda-font-sans);
    cursor: pointer;
}

.tda-billing-options > label + label {
    border-top: 1px solid var(--tda-line);
}

.tda-billing-options > label:has(input:checked) {
    background: #f2f6fc;
}

.tda-checkout .tda-billing-fields {
    margin-top: 14px;
}

.tda-checkout .tda-billing-fields[hidden],
.tda-checkout #ship-to-different-address[hidden] {
    display: none;
}

.tda-checkout :is(.checkbox, .woocommerce-form__label-for-checkbox) {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    gap: 9px;
}

.tda-checkout input[type="checkbox"],
.tda-checkout input[type="radio"] {
    accent-color: var(--tda-accent);
    height: 18px;
    margin: 0;
    width: 18px;
}

/* Shipping methods */
.tda-checkout-shipping-methods.is-empty {
    display: none;
}

.tda-checkout-shipping-methods > h2 {
    margin-bottom: 14px;
}

.tda-shipping-methods-placeholder {
    background: #f6f6f6;
    border-radius: var(--tda-radius);
    color: var(--tda-muted);
    font-size: 14px;
    line-height: 1.5;
    padding: 16px 20px;
    text-align: center;
}

body.tda-shopify-checkout .tda-checkout .tda-shipping-methods-card,
body.tda-shopify-checkout .tda-checkout .tda-shipping-methods-card :is(table, tbody, tr, td) {
    display: block;
    margin: 0;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.tda-shipping-methods-card table {
    border: 0;
}

.tda-shipping-methods-card th {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.tda-shipping-methods-card td {
    border: 0;
    padding: 0;
}

body.tda-shopify-checkout .tda-checkout .tda-shipping-methods-card ul#shipping_method {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--tda-line);
    border-radius: var(--tda-radius);
    overflow: hidden;
}

body.tda-shopify-checkout .tda-checkout .tda-shipping-methods-card ul#shipping_method li {
    align-items: center;
    background: #fff;
    border: 0;
    display: flex;
    gap: 12px;
    margin: 0;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 0;
}

body.tda-shopify-checkout .tda-checkout .tda-shipping-methods-card ul#shipping_method li + li {
    border-top: 1px solid var(--tda-line);
}

body.tda-shopify-checkout .tda-checkout .tda-shipping-methods-card ul#shipping_method li:has(input:checked),
body.tda-shopify-checkout .tda-checkout .tda-shipping-methods-card ul#shipping_method li:has(input[type="hidden"]) {
    background: #f2f6fc;
    position: relative;
    z-index: 1;
}

body.tda-shopify-checkout .tda-checkout .tda-shipping-methods-card ul#shipping_method label {
    cursor: pointer;
    display: flex;
    flex: 1;
    font-size: 14px;
    font-weight: 650;
    justify-content: space-between;
    margin: 0;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tda-shipping-method__price {
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}

/* Payment methods: retain gateway markup and event contracts. */
.tda-checkout-payment-section {
    margin-top: 24px;
}

body.tda-shopify-checkout .tda-checkout .woocommerce-checkout-payment {
    background: transparent;
    border-radius: 0;
}

body.tda-shopify-checkout .tda-checkout #payment.woocommerce-checkout-payment {
    background: transparent !important;
}

body.tda-shopify-checkout .tda-checkout #payment ul.payment_methods {
    background: var(--tda-surface);
    border: 1px solid var(--tda-line);
    border-radius: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body.tda-shopify-checkout .tda-checkout #payment .wc_payment_method {
    background: var(--tda-surface);
    border: 0;
    border-bottom: 1px solid var(--tda-line);
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
    transition: background-color .16s ease, box-shadow .16s ease;
}

body.tda-shopify-checkout .tda-checkout #payment .wc_payment_method:last-child {
    border-bottom: 0;
}

body.tda-shopify-checkout .tda-checkout #payment .wc_payment_method.tda-payment-method--selected {
    background: #f8fafc;
    z-index: 1;
}

body.tda-shopify-checkout .tda-checkout #payment .wc_payment_method > input.input-radio {
    -webkit-appearance: none;
    appearance: none;
    background: var(--tda-surface);
    border: 1.5px solid var(--tda-line-strong);
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    float: none;
    height: 20px;
    left: 18px;
    margin: 0;
    padding: 0;
    place-content: center;
    position: absolute;
    top: 19px;
    width: 20px;
    z-index: 3;
}

body.tda-shopify-checkout .tda-checkout #payment .wc_payment_method > input.input-radio::before {
    background: var(--tda-accent);
    border-radius: 50%;
    content: "";
    height: 8px;
    transform: scale(0);
    transition: transform .12s ease;
    width: 8px;
}

body.tda-shopify-checkout .tda-checkout #payment .wc_payment_method > input.input-radio:checked {
    border-color: var(--tda-accent);
}

body.tda-shopify-checkout .tda-checkout #payment .wc_payment_method > input.input-radio:checked::before {
    transform: scale(1);
}

body.tda-shopify-checkout .tda-checkout #payment .wc_payment_method > input.input-radio:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--tda-focus) 45%, transparent);
    outline-offset: 2px;
}

body.tda-shopify-checkout .tda-checkout #payment .wc_payment_method > label {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 5px;
    font-size: 15px;
    font-weight: 600;
    justify-content: flex-start;
    line-height: 1.25;
    margin: 0;
    min-height: 58px;
    overflow: hidden;
    padding: 10px 16px 10px 52px;
    width: 100%;
}

body.tda-shopify-checkout .tda-checkout #payment .wc_payment_method > label :is(.mecom-paypal-payment-icon, .mecom-stripe-payment-icon) {
    float: none !important;
    flex: 0 0 auto;
    margin: 0 !important;
    max-height: 22px !important;
    max-width: 36px;
    object-fit: contain;
    padding: 0 !important;
    position: static;
    width: auto;
}

body.tda-shopify-checkout .tda-checkout #payment .wc_payment_method > label :is(.mecom-paypal-payment-icon, .mecom-stripe-payment-icon):first-of-type {
    margin-left: auto !important;
}

body.tda-shopify-checkout .tda-checkout #payment div.payment_box {
    background: var(--tda-surface-soft) !important;
    border-top: 1px solid var(--tda-line);
    border-radius: 0;
    color: var(--tda-ink);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 !important;
    padding: 20px !important;
    width: 100%;
}

body.tda-shopify-checkout .tda-checkout #payment .payment_method_mecom_paypal div.payment_box {
    background: transparent !important;
    border-top: 0;
    padding: 0 !important;
}

body.tda-shopify-checkout .tda-checkout #payment div.payment_box::before {
    display: none !important;
}

body.tda-shopify-checkout .tda-checkout #payment div.payment_box p:first-child {
    margin-top: 0;
}

body.tda-shopify-checkout .tda-checkout #payment div.payment_box p:last-child {
    margin-bottom: 0;
}

body.tda-shopify-checkout .tda-checkout #payment div.payment_box iframe {
    max-width: 100%;
}

body.tda-shopify-checkout .tda-checkout #payment .payment_method_mecom_stripe div.payment_box > div:first-child {
    padding: 8px 0 6px !important;
}

body.tda-shopify-checkout .tda-checkout #payment .payment_method_mecom_stripe div.payment_box > div:first-child img {
    display: block;
    height: auto;
    max-height: 110px;
    max-width: 100%;
    width: auto;
}

body.tda-shopify-checkout .tda-checkout #payment .payment_method_mecom_stripe div.payment_box > div:nth-child(2) {
    color: var(--tda-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 8px auto 0 !important;
    max-width: 410px;
    text-align: center;
}

.tda-checkout #mecom-paypal-credit-form-container:not(.mecom-paypal-credit-form-container-inline) {
    margin-top: 18px;
}

.tda-checkout .form-row.place-order {
    background: transparent !important;
    display: block;
    margin-top: 18px;
    padding: 0 !important;
}

.tda-checkout #place_order,
.tda-shopify-cart .checkout-button,
.tda-shopify-cart .wc-proceed-to-checkout .button {
    background: var(--tda-accent);
    border: 0;
    border-radius: var(--tda-radius);
    color: #fff;
    float: none;
    font-size: 16px;
    font-weight: 700;
    min-height: 56px;
    padding: 16px 24px;
    text-align: center;
    transition: background .16s ease, transform .16s ease;
    width: 100%;
}

.tda-checkout #place_order:hover,
.tda-shopify-cart .checkout-button:hover,
.tda-shopify-cart .wc-proceed-to-checkout .button:hover {
    background: var(--tda-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.tda-checkout .woocommerce-terms-and-conditions-wrapper {
    color: var(--tda-muted);
    font-size: 13px;
}

.tda-checkout-legal {
    border-top: 1px solid var(--tda-line);
    margin-top: 44px;
    padding-top: 20px;
}

.tda-shopify-checkout .woocommerce-order,
.tda-shopify-checkout .woocommerce-order-pay {
    background: #fff;
    border: 1px solid var(--tda-line);
    border-radius: 14px;
    box-shadow: var(--tda-shadow);
    margin: 48px auto 80px;
    max-width: 760px;
    padding: clamp(24px, 5vw, 48px);
}

.tda-shopify-checkout .woocommerce-order-overview {
    background: var(--tda-surface-soft);
    border-radius: 10px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    margin: 24px 0;
    padding: 18px;
}

.tda-shopify-checkout .woocommerce-order-overview li {
    border: 0;
    margin: 0;
    padding: 0;
}

/* Checkout order summary */
.tda-order-summary table.woocommerce-checkout-review-order-table {
    background: transparent;
    border: 0;
    border-collapse: collapse;
    margin: 0;
    table-layout: auto;
    width: 100%;
}

.tda-order-summary table.woocommerce-checkout-review-order-table thead {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

body.tda-shopify-checkout .tda-order-summary table.woocommerce-checkout-review-order-table th,
body.tda-shopify-checkout .tda-order-summary table.woocommerce-checkout-review-order-table td {
    background: transparent;
    border: 0 !important;
    padding: 9px 0;
}

.tda-order-summary table.woocommerce-checkout-review-order-table tbody tr:first-child th,
.tda-order-summary table.woocommerce-checkout-review-order-table tbody tr:first-child td {
    padding-top: 0;
}

.tda-order-summary table.woocommerce-checkout-review-order-table tbody td.product-name {
    padding-right: 16px;
    width: 100%;
}

.tda-order-summary table.woocommerce-checkout-review-order-table td.product-total {
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
    width: 98px;
}

.tda-summary-product {
    align-items: center;
    display: flex;
    gap: 14px;
    min-width: 0;
}

.tda-summary-product__image {
    background: #fff;
    border: 3px solid #fff;
    box-sizing: border-box;
    border-radius: 9px;
    display: block;
    flex: 0 0 72px;
    height: 72px;
    min-width: 72px;
    width: 72px;
    position: relative;
}

.tda-product-image-preview { display: block; height: 100%; cursor: zoom-in; }
.tda-return-to-cart { display: inline-block; margin-top: 24px; color: var(--tda-muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.tda-product-image-preview:focus-visible { outline: 2px solid var(--tda-focus); outline-offset: 4px; border-radius: 8px; }
.tda-image-dialog { border: 0; border-radius: 16px; padding: 48px 16px 16px; background: #fff; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); }
.tda-image-dialog::backdrop { background: rgb(0 0 0 / .65); }
.tda-image-dialog img { display: block; max-width: min(800px, calc(100vw - 64px)); max-height: calc(100dvh - 112px); width: auto; height: auto; object-fit: contain; margin: auto; }
.tda-image-dialog__close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f3f4f6; color: #1f2937; font-size: 24px; cursor: pointer; line-height: 1; }

.tda-summary-product__image img {
    border-radius: 8px;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.tda-summary-product__quantity {
    align-items: center;
    background: #1f2937;
    border: 2px solid var(--tda-summary);
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-size: 11px;
    font-weight: 700;
    height: 22px;
    justify-content: center;
    min-width: 22px;
    padding: 0 5px;
    position: absolute;
    right: -9px;
    top: -9px;
}

.tda-summary-product__details {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.tda-summary-product__name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.tda-summary-product__name a,
.tda-summary-product__name a:hover {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.tda-summary-product__options {
    color: var(--tda-muted);
    display: block;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.tda-summary-product .variation,
.tda-summary-product .wc-item-meta {
    color: var(--tda-muted);
    font-size: 11px;
    line-height: 1.35;
    margin: 3px 0 0;
}

.tda-summary-product .variation {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    row-gap: 1px;
}

.tda-summary-product .variation > :is(dt, dd) {
    clear: none;
    float: none;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.tda-summary-product .variation > dt {
    font-weight: 500;
    margin-right: 4px;
}

.tda-summary-product .variation > dd p {
    margin: 0;
}

.tda-order-summary table.woocommerce-checkout-review-order-table tfoot {
    border-top: 0;
}

.tda-order-summary table.woocommerce-checkout-review-order-table tfoot tr:first-child th,
.tda-order-summary table.woocommerce-checkout-review-order-table tfoot tr:first-child td {
    padding-top: 14px;
}

.tda-order-summary table.woocommerce-checkout-review-order-table tfoot .tda-order-summary-coupon-row td {
    padding: 14px 0 10px;
    text-align: left;
}

.tda-order-summary table.woocommerce-checkout-review-order-table tfoot .cart-subtotal {
    border-top: 0;
}

.tda-order-summary table.woocommerce-checkout-review-order-table tfoot .cart-subtotal th,
.tda-order-summary table.woocommerce-checkout-review-order-table tfoot .cart-subtotal td {
    padding-top: 10px;
}

.tda-order-summary table.woocommerce-checkout-review-order-table tfoot th {
    color: var(--tda-ink);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.tda-order-summary table.woocommerce-checkout-review-order-table tfoot td {
    font-size: 14px;
    text-align: right;
}

.tda-order-summary table.woocommerce-checkout-review-order-table .order-total {
    border-top: 0;
}

.tda-order-summary table.woocommerce-checkout-review-order-table .order-total th,
.tda-order-summary table.woocommerce-checkout-review-order-table .order-total td {
    font-size: 20px;
    font-weight: 750;
    padding-top: 16px;
}

.tda-order-summary table.woocommerce-checkout-review-order-table .order-total .amount {
    font-size: 22px;
}

.tda-checkout-benefits {
    border-top: 1px solid var(--tda-line);
    margin-top: 22px;
    padding-top: 18px;
}

.tda-checkout-benefits--mobile {
    display: none;
}

.tda-checkout-benefits h3 {
    color: var(--tda-ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 16px;
    text-align: center;
}

.tda-checkout-benefits ul {
    display: grid;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tda-checkout-benefits li {
    align-items: start;
    display: grid;
    gap: 10px;
    grid-template-columns: 28px minmax(0, 1fr);
    margin: 0;
    padding: 0;
}

.tda-checkout-benefits__icon {
    align-items: center;
    border: 1px solid var(--tda-line);
    border-radius: 50%;
    color: var(--tda-accent);
    display: flex;
    font-size: 17px;
    height: 28px;
    justify-content: center;
    line-height: 1;
}

.tda-checkout-benefits h4 {
    color: var(--tda-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 4px;
}

.tda-checkout-benefits__icon svg {
    fill: none;
    height: 16px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
    width: 16px;
}

.tda-checkout-benefits p {
    color: var(--tda-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 900px) {
    .tda-checkout-benefits--desktop {
        display: none;
    }

    .tda-checkout-benefits--mobile {
        display: block;
    }

    .tda-checkout-benefits {
        margin-top: 18px;
        padding-top: 16px;
    }

    .tda-checkout-benefits ul {
        gap: 14px;
    }

    .tda-order-summary__inner {
        padding: 4px 0 8px;
    }
}

/* WooCommerce notices */
.tda-shopify-checkout :is(.woocommerce-error, .woocommerce-message, .woocommerce-info),
.tda-shopify-cart :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
    background: #fff;
    border: 1px solid var(--tda-line);
    border-left: 4px solid var(--tda-accent);
    border-radius: 8px;
    box-shadow: none;
    color: var(--tda-ink);
    font-size: 14px;
    margin-bottom: 18px;
    padding: 15px 18px;
}

.tda-shopify-checkout .woocommerce-error,
.tda-shopify-cart .woocommerce-error {
    border-left-color: var(--tda-danger);
}

.tda-shopify-cart .woocommerce-message .wc-forward,
.tda-shopify-cart .wc-block-components-notice-banner.is-success .wc-forward {
    display: none;
}

body.tda-shopify-cart :is(.woocommerce-message, .wc-block-components-notice-banner):has(a.restore-item) {
    display: none !important;
}

/* Cart page */
.tda-cart-page {
    background: var(--tda-checkout-bg);
    min-height: calc(100vh - 116px);
    padding: 48px 24px 96px;
}

body.tda-shopify-cart .tda-cart-page__inner.alignwide {
    margin: 0 auto;
    max-width: 1150px !important;
    width: 100%;
}

.tda-cart-title {
    font-family: var(--tda-font-sans);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.25;
    margin: 0 0 32px;
}

.tda-shopify-cart .tda-cart-page .wp-block-post-content,
.tda-shopify-cart .tda-cart-page .woocommerce {
    max-width: none;
    width: 100%;
}

.tda-shopify-cart .tda-cart-page .woocommerce {
    align-items: start;
    display: grid;
    column-gap: 48px;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
    row-gap: 32px;
}

.tda-shopify-cart.woocommerce-cart-empty .tda-cart-page .woocommerce {
    display: block;
    margin: 0 auto;
    max-width: 720px;
    text-align: center;
}

.tda-shopify-cart .tda-cart-page .woocommerce:has(.wc-empty-cart-message) {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0 auto;
    max-width: 620px;
    padding-top: 28px;
    text-align: center;
}

.tda-shopify-cart .woocommerce:has(.wc-empty-cart-message) > .woocommerce-notices-wrapper:empty {
    display: none;
}

.tda-shopify-cart .woocommerce:has(.wc-empty-cart-message) > .woocommerce-notices-wrapper {
    width: 100%;
}

.tda-shopify-cart .woocommerce:has(.wc-empty-cart-message) > .wc-empty-cart-message:empty {
    display: none;
}

.tda-shopify-cart .wc-empty-cart-message {
    margin: 0;
    width: 100%;
}

body.tda-shopify-cart .woocommerce:has(.wc-empty-cart-message) .wc-block-components-notice-banner.is-info {
    background: transparent;
    border: 0;
    color: var(--tda-ink);
    display: block;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.tda-shopify-cart .wc-empty-cart-message .wc-block-components-notice-banner > svg {
    display: none;
}

.tda-shopify-cart .return-to-shop {
    margin: 0;
}

body.tda-shopify-cart .return-to-shop a.button.wc-backward {
    align-items: center;
    background: var(--tda-accent);
    border: 0;
    border-radius: var(--tda-radius);
    color: #fff;
    display: inline-flex;
    font-size: 16px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.25;
    min-height: 56px;
    padding: 16px 24px;
    text-decoration: none;
}

body.tda-shopify-cart .return-to-shop a.button.wc-backward:hover {
    background: var(--tda-accent-hover);
    color: #fff;
}

.tda-shopify-cart .woocommerce > :is(.woocommerce-notices-wrapper, .woocommerce-message, .woocommerce-error, .woocommerce-info) {
    grid-column: 1 / -1;
    margin: 0;
}

.tda-shopify-cart .woocommerce > .woocommerce-notices-wrapper:empty {
    display: none;
}

.tda-shopify-cart .woocommerce-cart-form {
    grid-column: 1;
    margin: 0;
    min-width: 0;
}

.tda-shopify-cart .cart-collaterals {
    float: none;
    grid-column: 2;
    margin: 0;
    width: 100%;
}

.tda-shopify-cart .cart-collaterals .cart_totals {
    background: var(--tda-summary);
    border: 1px solid #e8e1d4;
    border-radius: 12px;
    box-shadow: none;
    float: none;
    padding: 28px;
    position: sticky;
    top: 24px;
    width: 100%;
}

.tda-shopify-cart .cart-collaterals .cart_totals > h2 {
    font-family: var(--tda-font-sans);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.25;
    margin: 0 0 18px;
}

.tda-shopify-cart .cart-collaterals .cross-sells {
    float: none;
    margin-top: 48px;
    width: 100%;
}

.tda-shopify-cart table.shop_table {
    border: 0;
    border-collapse: collapse;
    margin: 0;
    width: 100%;
}

.tda-shopify-cart table.cart thead th {
    border: 0;
    border-bottom: 1px solid var(--tda-line);
    color: var(--tda-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.4;
    padding: 0 10px 14px;
    text-transform: uppercase;
}

.tda-shopify-cart table.cart td {
    border: 0;
    border-bottom: 1px solid var(--tda-line);
    padding: 24px 10px;
    vertical-align: middle;
}

.tda-shopify-cart table.cart .product-thumbnail {
    width: 112px;
}

.tda-shopify-cart table.cart .product-thumbnail img {
    border: 1px solid var(--tda-line);
    border-radius: 10px;
    display: block;
    height: 92px;
    object-fit: cover;
    width: 92px;
}

.tda-shopify-cart table.cart .product-name a {
    color: var(--tda-ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.tda-shopify-cart table.cart .product-name a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.tda-shopify-cart table.cart .product-name .variation {
    color: var(--tda-muted);
    display: grid;
    font-size: 13px;
    grid-template-columns: max-content minmax(0, 1fr);
    line-height: 1.45;
    margin: 6px 0 0;
    row-gap: 2px;
}

body.tda-shopify-cart table.cart .product-name .variation > :is(dt, dd) {
    clear: none;
    float: none;
    margin: 0;
    min-width: 0;
    padding: 0;
}

body.tda-shopify-cart table.cart .product-name .variation > dt {
    font-weight: 500;
    margin-right: 5px;
}

body.tda-shopify-cart table.cart .product-name .variation > dd {
    font-weight: 400;
}

body.tda-shopify-cart table.cart .product-name .variation > dd p {
    margin: 0;
}

.tda-shopify-cart table.cart .product-price,
.tda-shopify-cart table.cart .product-subtotal {
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
}

.tda-shopify-cart table.cart .product-remove {
    width: 30px;
}

.tda-shopify-cart table.cart .product-remove .remove {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--tda-muted) !important;
    display: flex;
    font-size: 22px;
    height: 28px;
    justify-content: center;
    text-decoration: none;
    width: 28px;
}

.tda-shopify-cart table.cart .product-remove .remove:hover {
    color: var(--tda-danger) !important;
}

.tda-shopify-cart .quantity {
    align-items: center;
    border: 1px solid var(--tda-line);
    border-radius: 8px;
    display: inline-flex;
    min-height: 36px;
    overflow: hidden;
}

.tda-shopify-cart .quantity .qty {
    -moz-appearance: textfield;
    background: #fff;
    border: 0;
    border-left: 1px solid var(--tda-line);
    border-radius: 0;
    border-right: 1px solid var(--tda-line);
    box-shadow: none;
    font-size: 13px;
    height: 34px;
    margin: 0;
    padding: 0 4px;
    text-align: center;
    width: 36px;
}

.tda-shopify-cart .quantity .qty::-webkit-inner-spin-button,
.tda-shopify-cart .quantity .qty::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

.tda-cart-quantity-button {
    align-items: center;
    background: #fff;
    border: 0;
    color: var(--tda-ink);
    cursor: pointer;
    display: flex;
    font-size: 16px;
    height: 34px;
    justify-content: center;
    padding: 0;
    width: 30px;
}

.tda-cart-quantity-button:hover {
    background: var(--tda-surface-soft);
}

.tda-shopify-cart table.cart td.actions {
    border-bottom: 0;
    display: none !important;
    padding: 22px 0 0;
}

.tda-shopify-cart form.tda-cart--updating .quantity {
    opacity: .6;
    pointer-events: none;
}

.tda-shopify-cart table.cart td.actions .coupon {
    align-items: center;
    display: flex;
    float: left;
    gap: 8px;
}

body.tda-shopify-cart table.cart td.actions .coupon {
    display: none !important;
}

.tda-shopify-cart table.cart td.actions .coupon input.input-text {
    background: var(--tda-surface);
    border: 1px solid var(--tda-line);
    border-radius: 8px;
    height: 46px;
    line-height: 1.2;
    margin: 0;
    min-width: 180px;
    padding: 10px 12px;
}

.tda-shopify-cart table.cart td.actions .button,
.tda-shopify-checkout form.checkout_coupon .button,
.tda-shopify-checkout form.login .button {
    background: #fff;
    border: 1px solid var(--tda-line-strong);
    border-radius: 8px;
    color: var(--tda-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    min-height: 46px;
    padding: 10px 16px;
}

body.tda-shopify-cart table.cart td.actions .button {
    height: 46px;
}

body.tda-shopify-cart table.cart td.actions .coupon input.input-text {
    height: 46px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
}

body.tda-shopify-cart table.cart td.actions :is(input.input-text, .button):focus-visible {
    border-color: var(--tda-field-focus);
    box-shadow: 0 0 0 1px var(--tda-field-focus);
    outline: none;
}

.tda-shopify-cart .cart_totals table th,
.tda-shopify-cart .cart_totals table td {
    background: transparent;
    border: 0;
    font-size: 14px;
    padding: 14px 0;
}

.tda-shopify-cart .cart_totals table th {
    font-weight: 500;
    text-align: left;
}

.tda-shopify-cart .cart_totals table td {
    font-weight: 600;
    text-align: right;
}

.tda-shopify-cart .cart_totals table .order-total th,
.tda-shopify-cart .cart_totals table .order-total td {
    border-bottom: 0;
    font-size: 19px;
    font-weight: 750;
    padding-top: 18px;
}

body.tda-shopify-cart .cart_totals table.shop_table .order-total :is(th, td) {
    border: 0;
}

.tda-shopify-cart .wc-proceed-to-checkout {
    padding: 22px 0 0;
}

.tda-shopify-cart .wc-proceed-to-checkout a.checkout-button {
    margin: 0;
}

body.tda-shopify-cart .cart_totals .wc-proceed-to-checkout a.checkout-button.button {
    align-items: center;
    display: flex;
    font-size: 16px;
    justify-content: center;
    line-height: 1.25;
    min-height: 56px;
    padding: 16px 20px;
}

@media (max-width: 680px) {
    body.tda-shopify-cart table.shop_table_responsive tr:nth-child(2n) td {
        background: transparent;
    }

    body.tda-shopify-cart .cart_totals table.shop_table_responsive td {
        border: 0;
    }

    body.tda-shopify-cart .cart_totals table.shop_table_responsive td::before {
        content: attr(data-title);
    }
}

.tda-shopify-cart .cart_totals > :is(.mecom-paypal-button-container, .cs-stripe-button-container),
.tda-shopify-cart .cart_totals > div[id*="mecom"],
.tda-shopify-cart .cart_totals > div[id*="stripe"] {
    margin-top: 12px;
    max-width: 100%;
}

/* Cart block fallback, retained for editor previews and safe migrations. */
.tda-shopify-cart .wp-block-woocommerce-cart {
    margin: 0;
    max-width: none;
}

.tda-shopify-cart .wc-block-cart-items,
.tda-shopify-cart .wc-block-components-sidebar {
    border-color: var(--tda-line);
}

/* Keep tip controls outside payment fragments to preserve input and focus. */
.tda-tip {
    margin: 0 0 24px;
    text-align: left;
}

body.tda-shopify-checkout .tda-checkout .tda-tip h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px;
}

.tda-tip-card {
    border: 0;
}

body.tda-shopify-checkout .tda-checkout .tda-tip-toggle {
    align-items: center;
    background: #fff;
    cursor: pointer;
    display: flex;
    gap: 10px;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    min-height: 54px;
    padding: 8px 0;
}

.tda-tip-toggle input {
    accent-color: var(--tda-focus);
    flex: 0 0 20px;
    height: 20px;
    margin: 0;
    width: 20px;
}

.tda-tip-optional {
    color: var(--tda-muted);
    font-size: 12px;
    margin-left: auto;
}

.tda-tip-options {
    background: transparent;
    border: 0;
    padding: 8px 0 0;
}

.tda-tip-options[hidden] {
    display: none;
}

.tda-tip-presets {
    border: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 12px;
    padding: 0;
}

body.tda-shopify-checkout .tda-checkout .tda-tip-preset {
    cursor: pointer;
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
    position: relative;
}

.tda-tip-preset input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.tda-tip-preset > span {
    align-items: center;
    background: #fff;
    border: 1px solid var(--tda-line);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 58px;
    height: 100%;
    min-width: 0;
    margin-left: -1px;
    padding: 8px 4px;
}

.tda-tip-preset:first-of-type > span { border-radius: 10px 0 0 10px; margin-left: 0; }
.tda-tip-preset:last-of-type > span { border-radius: 0 10px 10px 0; }
.tda-tip-preset strong { font-weight: 500; }
.tda-tip-preset small { color: var(--tda-muted); font-size: 12px; margin-top: 2px; }
.tda-tip-preset input:checked + span { background: #edf3fb; border-color: var(--tda-focus); position: relative; z-index: 1; }
.tda-tip-preset input:focus-visible + span { outline: 2px solid var(--tda-focus); outline-offset: 2px; }

.tda-tip-custom-row { display: flex; gap: 10px; }
.tda-tip-custom-field { align-items: center; background: #fff; border: 1px solid var(--tda-line); border-radius: 10px; display: flex; flex: 1; min-width: 0; }
.tda-tip-custom-field:focus-within { border-color: var(--tda-focus); box-shadow: 0 0 0 1px var(--tda-focus); }
body.tda-shopify-checkout .tda-tip-custom-field input { background: transparent; border: 0; box-shadow: none; color: var(--tda-ink); min-width: 0; outline: 0; font-size: 14px; height: 42px; padding: 10px 12px; width: 100%; }
.tda-tip-custom-field input::-webkit-inner-spin-button { appearance: none; }
.tda-tip-custom-field input { -moz-appearance: textfield; }
body.tda-shopify-checkout .tda-tip-step { background: transparent; border: 0; color: var(--tda-muted); cursor: pointer; flex: 0 0 32px; font-size: 22px; padding: 8px 0; }
body.tda-shopify-checkout .tda-tip-apply { background: #fff; border: 1px solid var(--tda-line); border-radius: 10px; color: var(--tda-ink); cursor: pointer; font-size: 14px; font-weight: 600; padding: 10px 12px; white-space: nowrap; }
.tda-tip-step:hover, .tda-tip-apply:hover { color: var(--tda-focus); }
.tda-tip-step:focus-visible, .tda-tip-apply:focus-visible { outline: 2px solid var(--tda-focus); outline-offset: 2px; }
.tda-tip-note { font-size: 13px; margin: 10px 0 0; }
.tda-tip-basis { color: var(--tda-muted); font-size: 12px; margin: 6px 0 0; }

/* Preserve WooCommerce's payment lock without flashing the entire payment panel. */
.tda-checkout #payment > .blockUI { opacity: 0 !important; }
/* Keep the native interaction lock, with feedback only beside the total. */
.tda-order-summary .woocommerce-checkout-review-order-table > .blockUI { opacity: 0 !important; }
body.tda-summary-updating .tda-order-summary .order-total td { opacity: .65; }
body.tda-summary-updating .tda-order-summary .order-total th::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 10px;
    border: 2px solid var(--tda-line);
    border-top-color: var(--tda-muted);
    border-radius: 50%;
    vertical-align: middle;
    animation: tda-summary-spin .8s linear infinite;
}
@keyframes tda-summary-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    body.tda-summary-updating .tda-order-summary .order-total th::after { animation: none; }
}

@media (max-width: 1040px) {
    .tda-checkout-layout {
        grid-template-columns: minmax(0, 58%) minmax(340px, 42%);
    }

    .tda-checkout-main {
        padding-right: 38px;
    }

    .tda-order-summary {
        padding-left: 32px;
    }

    .tda-shopify-cart .tda-cart-page .woocommerce {
        gap: 30px;
        grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    }
}

@media (max-width: 900px) {
    .tda-checkout-header {
        min-height: 88px;
        padding: 18px 20px;
    }

    .tda-checkout-header .tda-checkout-wordmark {
        font-size: 24px;
        padding: 12px 18px;
    }

    .tda-checkout-page {
        background: var(--tda-checkout-bg);
        min-height: calc(100vh - 88px);
    }

    .tda-checkout-layout {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .tda-order-summary-toggle {
        align-items: center;
        background: var(--tda-summary);
        border: 0;
        border-bottom: 1px solid #e8e1d4;
        color: var(--tda-ink);
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        min-height: 64px;
        order: 1;
        padding: 14px 20px;
        text-align: left;
        width: 100%;
    }

    .tda-order-summary-toggle__label {
        align-items: center;
        display: flex;
        font-size: 14px;
        font-weight: 650;
        gap: 9px;
    }

    .tda-order-summary-toggle__icon {
        border-bottom: 2px solid currentColor;
        border-right: 2px solid currentColor;
        display: block;
        height: 8px;
        transform: rotate(45deg) translateY(-2px);
        transition: transform .16s ease;
        width: 8px;
    }

    .tda-order-summary-toggle[aria-expanded="true"] .tda-order-summary-toggle__icon {
        transform: rotate(225deg) translate(-2px, -2px);
    }

    .tda-order-summary-toggle__total {
        font-size: 17px;
        font-weight: 750;
    }

    .tda-order-summary-toggle__total strong {
        font-weight: inherit;
    }

    .tda-order-summary {
        border-bottom: 1px solid #e8e1d4;
        border-left: 0;
        display: none;
        order: 2;
        padding: 24px 20px 28px;
    }

    .tda-order-summary.is-open {
        display: block;
    }

    .tda-order-summary__inner {
        margin: 0 auto;
        max-height: none;
        max-width: 620px;
        overflow: visible;
        position: static;
    }

    .admin-bar .tda-order-summary__inner {
        max-height: none;
    }

    .tda-order-summary h2 {
        display: none;
    }

    .tda-checkout-main {
        margin: 0 auto;
        max-width: 660px;
        padding: 24px 20px 40px;
        width: 100%;
    }

    .tda-checkout {
        order: 3;
    }

    .tda-shopify-cart .tda-cart-page .woocommerce {
        display: block;
    }

    .tda-shopify-cart .cart-collaterals {
        margin-top: 32px;
    }

    .tda-shopify-cart .cart-collaterals .cart_totals {
        position: static;
    }
}

@media (max-width: 680px) {
    .tda-checkout .tda-contact-fields,
    .tda-checkout .tda-delivery-fields,
    .tda-checkout .tda-billing-fields,
    .tda-checkout .woocommerce-shipping-fields__field-wrapper,
    .tda-checkout .woocommerce-additional-fields__field-wrapper,
    .tda-checkout .create-account {
        grid-template-columns: 1fr;
    }

    .tda-checkout .form-row,
    .tda-checkout :is(#billing_first_name_field, #shipping_first_name_field, #billing_last_name_field, #shipping_last_name_field, #billing_city_field, #billing_state_field, #billing_postcode_field, #shipping_city_field, #shipping_state_field, #shipping_postcode_field) {
        grid-column: 1;
    }

    .tda-cart-page {
        min-height: calc(100vh - 88px);
        padding: 36px 20px 64px;
    }

    .tda-cart-title {
        font-size: 28px;
        margin-bottom: 26px;
    }

    .tda-shopify-cart table.cart,
    .tda-shopify-cart table.cart tbody,
    .tda-shopify-cart table.cart tr,
    .tda-shopify-cart table.cart td {
        display: block;
        width: 100%;
    }

    .tda-shopify-cart table.cart thead {
        display: none;
    }

    .tda-shopify-cart table.cart tr.cart_item {
        display: grid;
        gap: 6px 16px;
        grid-template-columns: 88px minmax(0, 1fr) auto;
        padding: 20px 0;
        position: relative;
    }

    .tda-shopify-cart table.cart tr.cart_item td {
        border: 0;
        padding: 0;
    }

    .tda-shopify-cart table.cart tr.cart_item td::before {
        display: none;
    }

    .tda-shopify-cart table.cart .product-thumbnail {
        display: block !important;
        grid-column: 1;
        grid-row: 1 / span 4;
        width: 88px;
    }

    body.tda-shopify-cart .woocommerce table.shop_table_responsive.cart tr.cart_item td.product-thumbnail {
        display: block !important;
    }

    .tda-shopify-cart table.cart .product-thumbnail img {
        height: 82px;
        width: 82px;
    }

    .tda-shopify-cart table.cart .product-name {
        grid-column: 2 / 4;
        grid-row: 1;
        padding-right: 24px;
        text-align: left !important;
    }

    .tda-shopify-cart table.cart .product-price {
        color: var(--tda-muted);
        grid-column: 2;
        grid-row: 2;
        text-align: left !important;
    }

    .tda-shopify-cart table.cart .product-quantity {
        grid-column: 2;
        grid-row: 3;
        text-align: left !important;
    }

    .tda-shopify-cart table.cart .product-subtotal {
        grid-column: 3;
        grid-row: 3;
        text-align: right !important;
    }

    .tda-shopify-cart table.cart .product-remove {
        position: absolute;
        right: 0;
        top: 13px;
        width: auto;
    }

    .tda-shopify-cart table.cart td.actions {
        border-bottom: 0;
    }

    .tda-shopify-cart table.cart td.actions .coupon {
        display: grid !important;
        float: none !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        margin-bottom: 10px;
        width: 100% !important;
    }

    .tda-shopify-cart table.cart td.actions .coupon input.input-text {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        width: 100% !important;
    }

    .tda-shopify-cart table.cart td.actions .coupon > label {
        position: absolute;
    }

    .tda-shopify-cart table.cart td.actions .coupon .button {
        grid-column: 2;
        grid-row: 1;
        min-height: 46px;
        white-space: nowrap;
        width: auto !important;
    }

    .tda-shopify-cart table.cart td.actions > .button {
        float: none;
        width: 100%;
    }
}

@media (max-width: 340px) {
    body.tda-shopify-checkout .tda-checkout #payment .wc_payment_method > input.input-radio {
        left: 16px;
    }

    body.tda-shopify-checkout .tda-checkout #payment .wc_payment_method > label {
        font-size: 14px;
        gap: 4px;
        padding-left: 48px;
        padding-right: 10px;
    }

    body.tda-shopify-checkout .tda-checkout #payment .wc_payment_method > label :is(.mecom-paypal-payment-icon, .mecom-stripe-payment-icon) {
        max-height: 19px !important;
        max-width: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tda-shopify-checkout *,
    .tda-shopify-cart * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
