body.cnwscheckout_active form.checkout {
    --cnwscheckout_radius: 18px;
}

.cnwscheckout_before_form {
    margin: 0 0 26px;
}

.cnwscheckout_banner {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 28px 30px;
    color: var(--cnwscheckout_banner_text, #fff);
    background: linear-gradient(135deg, var(--cnwscheckout_banner_bg, #132033), var(--cnwscheckout_banner_bg_2, #8b6826));
    box-shadow: 0 22px 50px rgba(15, 23, 42, .16);
}

.cnwscheckout_banner::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -90px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
}

.cnwscheckout_banner_content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.cnwscheckout_banner_kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--cnwscheckout_sidecart_header_muted, #e6d7b7);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cnwscheckout_banner h2 {
    margin: 0 0 6px;
    color: inherit;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -.04em;
}

.cnwscheckout_banner p {
    margin: 0;
    color: var(--cnwscheckout_banner_muted, #e6d7b7);
    font-size: 16px;
    line-height: 1.55;
}

.cnwscheckout_progress {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.cnwscheckout_progress li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--cnwscheckout_border, #d9e1ec);
    border-radius: 999px;
    background: var(--cnwscheckout_card_bg, #fff);
    color: #334155;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.cnwscheckout_progress li span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.cnwscheckout_progress li.is-current {
    border-color: color-mix(in srgb, var(--cnwscheckout_accent, #c99a3d) 55%, #fff);
}

.cnwscheckout_progress li.is-current span {
    background: var(--cnwscheckout_accent, #c99a3d);
    color: #fff;
}

.cnwscheckout_progress strong {
    font-size: 13px;
    letter-spacing: .01em;
}

body.cnwscheckout_active .woocommerce form.checkout,
body.cnwscheckout_active .woocommerce-checkout-review-order,
body.cnwscheckout_active .woocommerce-billing-fields,
body.cnwscheckout_active .woocommerce-shipping-fields,
body.cnwscheckout_active .woocommerce-additional-fields {
    border-radius: var(--cnwscheckout_radius);
}


body.cnwscheckout_shipping_from_start .woocommerce-shipping-fields .shipping_address {
    display: block !important;
}

body.cnwscheckout_shipping_from_start #ship-to-different-address {
    display: block !important;
}

body.cnwscheckout_active .woocommerce form .form-row input.input-text,
body.cnwscheckout_active .woocommerce form .form-row textarea,
body.cnwscheckout_active .woocommerce form .form-row select,
body.cnwscheckout_active .select2-container .select2-selection--single {
    min-height: 46px;
    border-color: var(--cnwscheckout_border, #d9e1ec);
    border-radius: 12px;
    box-shadow: none;
}

body.cnwscheckout_active .woocommerce form .form-row input.input-text:focus,
body.cnwscheckout_active .woocommerce form .form-row textarea:focus {
    border-color: var(--cnwscheckout_accent, #c99a3d);
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 154, 61, .14);
}

body.cnwscheckout_active #place_order,
body.cnwscheckout_active .woocommerce #payment #place_order,
body.cnwscheckout_active .woocommerce-page #payment #place_order,
body.cnwscheckout_active .wc-block-components-checkout-place-order-button {
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    background: var(--cnwscheckout_button_bg, #b8872f) !important;
    color: var(--cnwscheckout_button_text, #fff) !important;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 14px 28px rgba(184, 135, 47, .24);
}

body.cnwscheckout_active #place_order:hover,
body.cnwscheckout_active .woocommerce #payment #place_order:hover,
body.cnwscheckout_active .woocommerce-page #payment #place_order:hover,
body.cnwscheckout_active .wc-block-components-checkout-place-order-button:hover {
    background: var(--cnwscheckout_button_bg_hover, #936922) !important;
}




body.cnwscheckout_checkout_mode_block .cnwscheckout_before_form,
body.cnwscheckout_checkout_block_runtime .cnwscheckout_before_form {
    width: 100%;
    max-width: 100%;
}

body.cnwscheckout_checkout_mode_block .wp-block-woocommerce-checkout,
body.cnwscheckout_checkout_block_runtime .wp-block-woocommerce-checkout,
body.cnwscheckout_checkout_mode_block .wc-block-checkout,
body.cnwscheckout_checkout_block_runtime .wc-block-checkout {
    --cnwscheckout_radius: 18px;
}

/* WooCommerce Checkout Block support. */
body.cnwscheckout_active .wc-block-checkout,
body.cnwscheckout_active .wp-block-woocommerce-checkout {
    --cnwscheckout_radius: 18px;
}

body.cnwscheckout_active .wc-block-components-form .wc-block-components-text-input input[type="text"],
body.cnwscheckout_active .wc-block-components-form .wc-block-components-text-input input[type="email"],
body.cnwscheckout_active .wc-block-components-form .wc-block-components-text-input input[type="tel"],
body.cnwscheckout_active .wc-block-components-form .wc-block-components-text-input input[type="url"],
body.cnwscheckout_active .wc-block-components-form .wc-block-components-text-input input[type="password"],
body.cnwscheckout_active .wc-block-components-form .wc-block-components-text-input input[type="number"],
body.cnwscheckout_active .wc-block-components-text-input input,
body.cnwscheckout_active .wc-block-components-textarea,
body.cnwscheckout_active .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
body.cnwscheckout_active .wc-block-components-select .wc-block-components-select__select,
body.cnwscheckout_active .wc-blocks-components-select .wc-blocks-components-select__select {
    min-height: 46px;
    border: 1px solid var(--cnwscheckout_border, #d9e1ec) !important;
    border-radius: 12px !important;
    background-color: #fff;
    box-shadow: none !important;
}

body.cnwscheckout_active .wc-block-components-form .wc-block-components-text-input input:focus,
body.cnwscheckout_active .wc-block-components-text-input input:focus,
body.cnwscheckout_active .wc-block-components-textarea:focus,
body.cnwscheckout_active .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus,
body.cnwscheckout_active .wc-block-components-select .wc-block-components-select__select:focus,
body.cnwscheckout_active .wc-blocks-components-select .wc-blocks-components-select__select:focus {
    border-color: var(--cnwscheckout_accent, #c99a3d) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(201, 154, 61, .14) !important;
}

body.cnwscheckout_active .wc-block-components-checkout-step,
body.cnwscheckout_active .wc-block-components-checkout-step__container,
body.cnwscheckout_active .wc-block-components-sidebar,
body.cnwscheckout_active .wc-block-components-panel,
body.cnwscheckout_active .wc-block-components-radio-control,
body.cnwscheckout_active .wc-block-components-totals-wrapper {
    border-color: var(--cnwscheckout_border, #d9e1ec) !important;
}

body.cnwscheckout_active .wc-block-components-checkout-step__title,
body.cnwscheckout_active .wc-block-components-title.wc-block-components-title {
    color: #0f172a;
    letter-spacing: -.02em;
}

body.cnwscheckout_active .wc-block-components-checkout-place-order-button,
body.cnwscheckout_active .wc-block-cart__submit-button,
body.cnwscheckout_active .wp-block-woocommerce-checkout .wc-block-components-button {
    border-radius: 14px !important;
    background: var(--cnwscheckout_button_bg, #b8872f) !important;
    color: var(--cnwscheckout_button_text, #fff) !important;
    font-weight: 800 !important;
    box-shadow: 0 14px 28px rgba(184, 135, 47, .24) !important;
}

body.cnwscheckout_active .wc-block-components-checkout-place-order-button:hover,
body.cnwscheckout_active .wc-block-cart__submit-button:hover,
body.cnwscheckout_active .wp-block-woocommerce-checkout .wc-block-components-button:hover {
    background: var(--cnwscheckout_button_bg_hover, #936922) !important;
    color: var(--cnwscheckout_button_text, #fff) !important;
}

.cnwscheckout_guided_currency {
    display: block;
    margin-top: 5px;
    color: var(--cnwscheckout_sidecart_muted, #64748b);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
}

.cnwscheckout_ean_id_field.is-hidden {
    display: none !important;
}

@media (max-width: 760px) {
    .cnwscheckout_banner {
        padding: 22px 20px;
        border-radius: 18px;
    }

    .cnwscheckout_progress {
        grid-template-columns: 1fr;
    }
}

.cnwscheckout_guided_currency_total th,
.cnwscheckout_guided_currency_total td {
    color: #475569;
    font-size: 14px;
}

.cnwscheckout_guided_currency_total .cnwscheckout_guided_currency_value {
    display: inline-block;
    color: #334155;
    font-weight: 600;
}

.cnwscheckout_sidecart_trigger {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99998;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 0 17px;
    border: 0;
    border-radius: 999px;
    background: var(--cnwscheckout_button_bg, #b8872f);
    color: var(--cnwscheckout_button_text, #fff);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .24);
}

.cnwscheckout_sidecart_trigger:hover {
    background: var(--cnwscheckout_button_bg_hover, #936922);
}

.cnwscheckout_sidecart_trigger_icon svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.cnwscheckout_sidecart_trigger_count {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: inherit;
    font-size: 12px;
    line-height: 1;
}

.cnwscheckout_sidecart_overlay[hidden] {
    display: none !important;
}

.cnwscheckout_sidecart_overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.cnwscheckout_sidecart_backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .46);
}

.cnwscheckout_sidecart_panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(420px, calc(100vw - 24px));
    height: 100%;
    background: var(--cnwscheckout_sidecart_bg, #fff);
    color: var(--cnwscheckout_sidecart_text, #0f172a);
    box-shadow: -24px 0 60px rgba(15, 23, 42, .28);
}

.cnwscheckout_sidecart_panel_inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
}

.cnwscheckout_sidecart_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--cnwscheckout_sidecart_border, #e2e8f0);
    background: linear-gradient(135deg, var(--cnwscheckout_sidecart_header_bg, #132033), var(--cnwscheckout_sidecart_header_bg_2, #8b6826));
    color: var(--cnwscheckout_sidecart_header_text, #fff);
}

.cnwscheckout_sidecart_header span {
    display: block;
    margin-bottom: 5px;
    color: var(--cnwscheckout_banner_muted, #e6d7b7);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cnwscheckout_sidecart_header h2 {
    margin: 0;
    color: inherit;
    font-size: 24px;
    line-height: 1.1;
}

.cnwscheckout_sidecart_close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--cnwscheckout_sidecart_close_text, #fff);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    appearance: none;
}

.cnwscheckout_sidecart_close:hover,
.cnwscheckout_sidecart_close:focus {
    background: transparent;
    color: var(--cnwscheckout_sidecart_close_text, #fff);
    box-shadow: none;
    outline: none;
}

.cnwscheckout_sidecart_items {
    flex: 1;
    overflow: auto;
    padding: 18px;
}

.cnwscheckout_sidecart_item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid var(--cnwscheckout_sidecart_border, #e2e8f0);
}

.cnwscheckout_sidecart_item_image img {
    display: block;
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 14px;
    background: #f8fafc;
}

.cnwscheckout_sidecart_item_body h3 {
    margin: 0 0 7px;
    color: var(--cnwscheckout_sidecart_text, #0f172a);
    font-size: 15px;
    line-height: 1.3;
}

.cnwscheckout_sidecart_item_meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--cnwscheckout_sidecart_muted, #64748b);
    font-size: 13px;
}

.cnwscheckout_sidecart_item_meta strong {
    color: #0f172a;
}

.cnwscheckout_sidecart_qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    color: var(--cnwscheckout_sidecart_text, #0f172a);
    font-size: 13px;
    font-weight: 700;
}

.cnwscheckout_sidecart_qty button {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--cnwscheckout_sidecart_border, #e2e8f0);
    border-radius: 8px;
    background: var(--cnwscheckout_sidecart_bg, #fff);
    color: var(--cnwscheckout_sidecart_text, #0f172a);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.cnwscheckout_sidecart_qty button:hover,
.cnwscheckout_sidecart_qty button:focus-visible {
    border-color: var(--cnwscheckout_accent, #c99a3d);
    outline: none;
}

.cnwscheckout_sidecart_panel.is-loading .cnwscheckout_sidecart_qty,
.cnwscheckout_sidecart_panel.is-loading .cnwscheckout_sidecart_remove {
    pointer-events: none;
    opacity: .55;
}

.cnwscheckout_sidecart_remove {
    display: inline-flex;
    margin-top: 7px;
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.cnwscheckout_sidecart_empty {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 34px 24px;
    color: var(--cnwscheckout_sidecart_muted, #64748b);
    text-align: center;
}

.cnwscheckout_sidecart_footer {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-top: 1px solid var(--cnwscheckout_sidecart_border, #e2e8f0);
    background: color-mix(in srgb, var(--cnwscheckout_sidecart_bg, #fff) 92%, #f8fafc);
}

.cnwscheckout_sidecart_total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--cnwscheckout_sidecart_text, #334155);
    font-size: 15px;
    font-weight: 700;
}

.cnwscheckout_sidecart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
}

.cnwscheckout_sidecart_button.is-primary {
    background: var(--cnwscheckout_button_bg, #b8872f);
    color: var(--cnwscheckout_button_text, #fff);
}

.cnwscheckout_sidecart_button.is-secondary {
    border: 1px solid var(--cnwscheckout_sidecart_border, #cbd5e1);
    background: var(--cnwscheckout_sidecart_secondary_bg, #fff);
    color: var(--cnwscheckout_sidecart_secondary_text, #0f172a);
}

body.cnwscheckout_sidecart_open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .cnwscheckout_sidecart_trigger {
        right: 14px;
        bottom: 14px;
        min-height: 50px;
        padding: 0 14px;
    }

    .cnwscheckout_sidecart_trigger_label {
        display: none;
    }
}


.cnwscheckout_block_guided_currency {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0;
    padding: 12px 14px;
    border: 1px solid var(--cnwscheckout_border, #d9e1ec);
    border-radius: 14px;
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
}

.cnwscheckout_block_guided_currency span {
    color: #64748b;
    font-weight: 700;
}

.cnwscheckout_block_guided_currency .cnwscheckout_guided_currency_value {
    color: #334155;
    font-weight: 600;
    text-align: right;
}

.cnwscheckout_guided_currency_value,
.cnwscheckout_sidecart_guided_total .cnwscheckout_guided_currency_value,
.cnwscheckout_block_guided_currency .cnwscheckout_guided_currency_value {
    font-weight: 600;
    color: #334155;
    text-align: right;
}

.cnwscheckout_guided_currency_total .cnwscheckout_guided_currency_value {
    display: inline-block;
    font-weight: 600;
    color: #334155;
}
