/**
 * KihCarpet Checkout v1.8
 * Визуальный слой для classic WooCommerce checkout + базовая поддержка Checkout Block.
 */

body.kih-checkout-enabled {
    --kih-checkout-accent: #2f7d4a;
    --kih-checkout-surface: #f7f5ef;
    --kih-checkout-card: #ffffff;
    --kih-checkout-ink: #203027;
    --kih-checkout-muted: #6e776f;
    --kih-checkout-line: #e2e7e2;
    --kih-checkout-soft-green: #edf6ef;
    --kih-checkout-danger: #b42318;
    --kih-checkout-radius: 18px;
    --kih-checkout-shadow: 0 16px 45px rgba(34, 55, 42, .08);
    background: var(--kih-checkout-surface);
}

body.kih-checkout-enabled .site-main,
body.kih-checkout-enabled .content-area,
body.kih-checkout-enabled .entry-content,
body.kih-checkout-enabled .woocommerce {
    min-width: 0;
}

body.kih-checkout-enabled .entry-header .entry-title,
body.kih-checkout-enabled .page-header .page-title {
    display: none !important;
}

body.kih-checkout-enabled .entry-content > .woocommerce,
body.kih-checkout-enabled main .woocommerce {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

body.kih-checkout-enabled .woocommerce:before,
body.kih-checkout-enabled .woocommerce:after {
    content: none;
}


/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */

.kih-checkout-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin: 28px 0 22px;
}

.kih-checkout-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    margin-bottom: 9px;
    border: 1px solid color-mix(in srgb, var(--kih-checkout-accent) 25%, transparent);
    border-radius: 999px;
    background: var(--kih-checkout-soft-green);
    color: var(--kih-checkout-accent);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.kih-checkout-intro h1 {
    margin: 0 !important;
    color: var(--kih-checkout-ink);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.kih-checkout-intro p {
    max-width: 680px;
    margin: 11px 0 0;
    color: var(--kih-checkout-muted);
    font-size: 15px;
    line-height: 1.65;
}

.kih-checkout-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--kih-checkout-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 8px 30px rgba(34, 55, 42, .04);
    white-space: nowrap;
}

.kih-checkout-progress span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--kih-checkout-muted);
    font-size: 12px;
    font-weight: 700;
}

.kih-checkout-progress i {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #eef1ee;
    color: #677168;
    font-style: normal;
    font-size: 11px;
}

.kih-checkout-progress .is-active {
    background: var(--kih-checkout-soft-green);
    color: var(--kih-checkout-accent);
}

.kih-checkout-progress .is-active i {
    background: var(--kih-checkout-accent);
    color: #fff;
}


/* --------------------------------------------------------------------------
   Trust
   -------------------------------------------------------------------------- */

.kih-checkout-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 22px;
}

.kih-checkout-trust__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--kih-checkout-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
}

.kih-checkout-trust__icon {
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--kih-checkout-soft-green);
    color: var(--kih-checkout-accent);
}

.kih-checkout-trust__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.kih-checkout-trust__item > span:last-child {
    min-width: 0;
}

.kih-checkout-trust__item strong,
.kih-checkout-trust__item small {
    display: block;
}

.kih-checkout-trust__item strong {
    overflow: hidden;
    margin-bottom: 2px;
    color: var(--kih-checkout-ink);
    font-size: 13px;
    line-height: 1.3;
    text-overflow: ellipsis;
}

.kih-checkout-trust__item small {
    overflow: hidden;
    color: var(--kih-checkout-muted);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
}


/* --------------------------------------------------------------------------
   Login / coupon / notices
   -------------------------------------------------------------------------- */

body.kih-checkout-enabled .woocommerce-info,
body.kih-checkout-enabled .woocommerce-message,
body.kih-checkout-enabled .woocommerce-error {
    margin: 0 0 14px !important;
    padding: 14px 16px 14px 46px !important;
    border: 1px solid var(--kih-checkout-line) !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--kih-checkout-ink) !important;
    font-size: 13px;
}

body.kih-checkout-enabled .woocommerce-info:before,
body.kih-checkout-enabled .woocommerce-message:before,
body.kih-checkout-enabled .woocommerce-error:before {
    top: 50% !important;
    left: 17px !important;
    color: var(--kih-checkout-accent) !important;
    transform: translateY(-50%);
}

body.kih-checkout-enabled .woocommerce-error:before {
    color: var(--kih-checkout-danger) !important;
}

body.kih-checkout-enabled .woocommerce-info a,
body.kih-checkout-enabled .woocommerce-message a {
    color: var(--kih-checkout-accent);
    font-weight: 800;
}

body.kih-checkout-enabled .woocommerce-form-login,
body.kih-checkout-enabled form.checkout_coupon {
    margin: -5px 0 18px !important;
    padding: 18px !important;
    border: 1px solid var(--kih-checkout-line) !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(34, 55, 42, .04);
}

body.kih-checkout-enabled form.checkout_coupon {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

body.kih-checkout-enabled form.checkout_coupon p {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

body.kih-checkout-enabled form.checkout_coupon .button,
body.kih-checkout-enabled .woocommerce-form-login .button {
    min-height: 48px;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--kih-checkout-ink) !important;
    color: #fff !important;
    font-weight: 800 !important;
}


/* --------------------------------------------------------------------------
   Classic WooCommerce layout
   -------------------------------------------------------------------------- */

body.kih-checkout-enabled form.checkout.woocommerce-checkout {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: minmax(0, 1.42fr) minmax(390px, .92fr);
    grid-template-areas:
        "customer heading"
        "customer review";
    align-items: start;
    gap: 0 26px;
    margin-top: 4px;
}

/*
 * Avanam/WooCommerce themes often give #order_review and its heading
 * their own percentage width + float. Inside our CSS Grid that percentage
 * is calculated again from the grid track and collapses the summary to a
 * narrow strip. Reset those legacy two-column rules explicitly.
 */
body.kih-checkout-enabled form.checkout.woocommerce-checkout #customer_details,
body.kih-checkout-enabled form.checkout.woocommerce-checkout #order_review_heading,
body.kih-checkout-enabled form.checkout.woocommerce-checkout #order_review {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

body.kih-checkout-enabled form.checkout #customer_details {
    grid-area: customer;
    display: block;
    width: auto;
    min-width: 0;
}

body.kih-checkout-enabled form.checkout #customer_details:before,
body.kih-checkout-enabled form.checkout #customer_details:after {
    content: none;
}

body.kih-checkout-enabled form.checkout #customer_details > .col-1,
body.kih-checkout-enabled form.checkout #customer_details > .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 18px !important;
    padding: 24px !important;
    border: 1px solid var(--kih-checkout-line);
    border-radius: var(--kih-checkout-radius);
    background: var(--kih-checkout-card);
    box-shadow: var(--kih-checkout-shadow);
}

body.kih-checkout-enabled form.checkout #order_review_heading {
    grid-area: heading;
    margin: 0 !important;
    padding: 22px 22px 12px;
    border: 1px solid var(--kih-checkout-line);
    border-bottom: 0;
    border-radius: var(--kih-checkout-radius) var(--kih-checkout-radius) 0 0;
    background: var(--kih-checkout-card);
    color: var(--kih-checkout-ink);
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

body.kih-checkout-enabled form.checkout #order_review_heading:before {
    content: "03";
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-right: 9px;
    border-radius: 10px;
    background: var(--kih-checkout-soft-green);
    color: var(--kih-checkout-accent);
    font-size: 11px;
    font-weight: 900;
    vertical-align: middle;
}

body.kih-checkout-enabled form.checkout #order_review {
    grid-area: review;
    min-width: 0;
    margin: 0 !important;
    padding: 0 22px 22px;
    border: 1px solid var(--kih-checkout-line);
    border-top: 0;
    border-radius: 0 0 var(--kih-checkout-radius) var(--kih-checkout-radius);
    background: var(--kih-checkout-card);
    box-shadow: var(--kih-checkout-shadow);
}

body.kih-checkout-enabled.kih-checkout-sticky-summary form.checkout #order_review_heading {
    position: sticky;
    top: calc(var(--kih-sticky-top, 0px) + 18px);
    z-index: 10;
}

body.kih-checkout-enabled.kih-checkout-sticky-summary form.checkout #order_review {
    position: sticky;
    top: calc(var(--kih-sticky-top, 0px) + 82px);
    z-index: 9;
}


/* --------------------------------------------------------------------------
   Field section headings
   -------------------------------------------------------------------------- */

body.kih-checkout-enabled .woocommerce-billing-fields > h3,
body.kih-checkout-enabled .woocommerce-shipping-fields > h3,
body.kih-checkout-enabled .woocommerce-additional-fields > h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px !important;
    color: var(--kih-checkout-ink);
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

body.kih-checkout-enabled .woocommerce-billing-fields > h3:before {
    content: "01";
}

body.kih-checkout-enabled .woocommerce-shipping-fields > h3:before,
body.kih-checkout-enabled .woocommerce-additional-fields > h3:before {
    content: "02";
}

body.kih-checkout-enabled .woocommerce-billing-fields > h3:before,
body.kih-checkout-enabled .woocommerce-shipping-fields > h3:before,
body.kih-checkout-enabled .woocommerce-additional-fields > h3:before {
    display: inline-grid;
    flex: 0 0 32px;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--kih-checkout-soft-green);
    color: var(--kih-checkout-accent);
    font-size: 11px;
    font-weight: 900;
}

body.kih-checkout-enabled .woocommerce-shipping-fields #ship-to-different-address {
    font-size: 15px;
}

body.kih-checkout-enabled .woocommerce-shipping-fields #ship-to-different-address label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


/* --------------------------------------------------------------------------
   Fields
   -------------------------------------------------------------------------- */

body.kih-checkout-enabled .woocommerce-billing-fields__field-wrapper,
body.kih-checkout-enabled .woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

body.kih-checkout-enabled .woocommerce-billing-fields__field-wrapper .form-row,
body.kih-checkout-enabled .woocommerce-shipping-fields__field-wrapper .form-row {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

body.kih-checkout-enabled .woocommerce-billing-fields__field-wrapper .form-row-wide,
body.kih-checkout-enabled .woocommerce-shipping-fields__field-wrapper .form-row-wide,
body.kih-checkout-enabled .woocommerce-billing-fields__field-wrapper .address-field,
body.kih-checkout-enabled .woocommerce-shipping-fields__field-wrapper .address-field {
    grid-column: 1 / -1;
}

body.kih-checkout-enabled .form-row label {
    margin: 0 0 6px !important;
    color: #4c5750;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
}

body.kih-checkout-enabled .form-row label .required {
    color: var(--kih-checkout-accent) !important;
}

body.kih-checkout-enabled .form-row.is-kih-focused > label,
body.kih-checkout-enabled .form-row.is-kih-focused label:first-child {
    color: var(--kih-checkout-accent);
}

body.kih-checkout-enabled .input-text,
body.kih-checkout-enabled input[type="text"],
body.kih-checkout-enabled input[type="email"],
body.kih-checkout-enabled input[type="tel"],
body.kih-checkout-enabled input[type="number"],
body.kih-checkout-enabled textarea,
body.kih-checkout-enabled select,
body.kih-checkout-enabled .select2-container .select2-selection--single {
    width: 100%;
    min-height: 50px;
    padding: 11px 13px !important;
    border: 1px solid #dbe2dc !important;
    border-radius: 11px !important;
    outline: none !important;
    background: #fbfcfb !important;
    color: var(--kih-checkout-ink) !important;
    box-shadow: none !important;
    font-size: 14px !important;
    line-height: 1.35;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

body.kih-checkout-enabled textarea {
    min-height: 102px;
    resize: vertical;
}

body.kih-checkout-enabled .input-text:focus,
body.kih-checkout-enabled input:focus,
body.kih-checkout-enabled textarea:focus,
body.kih-checkout-enabled select:focus,
body.kih-checkout-enabled .select2-container--focus .select2-selection--single,
body.kih-checkout-enabled .select2-container--open .select2-selection--single {
    border-color: var(--kih-checkout-accent) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--kih-checkout-accent) 12%, transparent) !important;
}

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

body.kih-checkout-enabled .select2-container .select2-selection__rendered {
    padding: 0 !important;
    color: var(--kih-checkout-ink) !important;
    line-height: 1.35 !important;
}

body.kih-checkout-enabled .select2-container .select2-selection__arrow {
    top: 50% !important;
    right: 9px !important;
    transform: translateY(-50%);
}

body.kih-checkout-enabled .woocommerce-invalid .input-text,
body.kih-checkout-enabled .woocommerce-invalid select,
body.kih-checkout-enabled .woocommerce-invalid .select2-selection {
    border-color: #e3a49d !important;
    background: #fffafa !important;
}

body.kih-checkout-enabled .woocommerce-validated .input-text {
    border-color: #bad7c2 !important;
}


/* --------------------------------------------------------------------------
   Order review
   -------------------------------------------------------------------------- */

body.kih-checkout-enabled .woocommerce-checkout-review-order-table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    background: transparent !important;
}

body.kih-checkout-enabled .woocommerce-checkout-review-order-table thead {
    display: none;
}

body.kih-checkout-enabled .woocommerce-checkout-review-order-table tr,
body.kih-checkout-enabled .woocommerce-checkout-review-order-table th,
body.kih-checkout-enabled .woocommerce-checkout-review-order-table td {
    border-color: #e9ede9 !important;
}

body.kih-checkout-enabled .woocommerce-checkout-review-order-table tbody td {
    padding: 14px 0 !important;
    border-width: 0 0 1px !important;
    background: transparent !important;
    vertical-align: middle;
}

body.kih-checkout-enabled .woocommerce-checkout-review-order-table tbody .product-name {
    padding-right: 12px !important;
    color: var(--kih-checkout-ink);
    font-size: 13px;
    font-weight: 700;
}

body.kih-checkout-enabled .woocommerce-checkout-review-order-table tbody .product-total {
    width: 94px;
    color: var(--kih-checkout-ink);
    font-size: 13px;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.kih-checkout-product {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.kih-checkout-product__image {
    display: block;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid #edf0ed;
    border-radius: 10px;
    background: #f7f8f7;
}

.kih-checkout-product__image img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
}

.kih-checkout-product__name {
    display: block;
    min-width: 0;
}

body.kih-checkout-enabled .woocommerce-checkout-review-order-table .product-quantity {
    color: var(--kih-checkout-muted);
    font-size: 11px;
    font-weight: 700;
}

body.kih-checkout-enabled .woocommerce-checkout-review-order-table .variation {
    margin: 4px 0 0 !important;
    color: var(--kih-checkout-muted);
    font-size: 11px;
    line-height: 1.4;
}

body.kih-checkout-enabled .woocommerce-checkout-review-order-table .variation dt,
body.kih-checkout-enabled .woocommerce-checkout-review-order-table .variation dd {
    float: none !important;
    display: inline;
    margin: 0 3px 0 0 !important;
    padding: 0 !important;
}

body.kih-checkout-enabled .woocommerce-checkout-review-order-table tfoot th,
body.kih-checkout-enabled .woocommerce-checkout-review-order-table tfoot td {
    padding: 11px 0 !important;
    border-width: 0 0 1px !important;
    background: transparent !important;
    color: #4c5750;
    font-size: 13px;
}

body.kih-checkout-enabled .woocommerce-checkout-review-order-table tfoot td {
    text-align: right;
}

body.kih-checkout-enabled .woocommerce-checkout-review-order-table .order-total th,
body.kih-checkout-enabled .woocommerce-checkout-review-order-table .order-total td {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    border-bottom: 0 !important;
    color: var(--kih-checkout-ink);
    font-size: 16px;
    font-weight: 900;
}

body.kih-checkout-enabled .woocommerce-checkout-review-order-table .order-total .amount {
    color: var(--kih-checkout-accent);
    font-size: 20px;
}


/* --------------------------------------------------------------------------
   Shipping / payment
   -------------------------------------------------------------------------- */

body.kih-checkout-enabled #shipping_method {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.kih-checkout-enabled #shipping_method li {
    margin: 7px 0 !important;
    padding: 8px 9px !important;
    border: 1px solid transparent;
    border-radius: 9px;
    transition: border-color .15s ease, background .15s ease;
}

body.kih-checkout-enabled #shipping_method li.is-selected {
    border-color: #cfe1d3;
    background: var(--kih-checkout-soft-green);
}

body.kih-checkout-enabled #shipping_method label {
    color: var(--kih-checkout-ink);
    font-size: 12px;
    font-weight: 700;
}

body.kih-checkout-enabled #payment {
    margin-top: 15px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #f7f9f7 !important;
}

body.kih-checkout-enabled #payment ul.payment_methods {
    margin: 0 !important;
    padding: 10px !important;
    border: 0 !important;
}

body.kih-checkout-enabled #payment ul.payment_methods li {
    margin: 0 0 8px !important;
    padding: 11px 12px !important;
    border: 1px solid #e1e7e2;
    border-radius: 11px;
    background: #fff;
}

body.kih-checkout-enabled #payment ul.payment_methods li:last-child {
    margin-bottom: 0 !important;
}

body.kih-checkout-enabled #payment ul.payment_methods li,
body.kih-checkout-enabled #payment ul.payment_methods li > label,
body.kih-checkout-enabled #payment div.payment_box,
body.kih-checkout-enabled #shipping_method li,
body.kih-checkout-enabled #shipping_method label {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none;
}

body.kih-checkout-enabled #payment ul.payment_methods li > label {
    width: calc(100% - 28px);
    vertical-align: middle;
}

body.kih-checkout-enabled #payment ul.payment_methods li > label img {
    float: none !important;
    width: auto !important;
    max-width: 120px !important;
    max-height: 28px !important;
    margin: 0 0 0 auto !important;
    object-fit: contain;
}

body.kih-checkout-enabled #payment ul.payment_methods li.is-selected {
    border-color: color-mix(in srgb, var(--kih-checkout-accent) 38%, #e1e7e2);
    background: color-mix(in srgb, var(--kih-checkout-accent) 5%, #fff);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--kih-checkout-accent) 6%, transparent);
}

body.kih-checkout-enabled #payment ul.payment_methods li > label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--kih-checkout-ink);
    font-size: 13px;
    font-weight: 800;
}

body.kih-checkout-enabled input[type="radio"],
body.kih-checkout-enabled input[type="checkbox"] {
    accent-color: var(--kih-checkout-accent);
}

body.kih-checkout-enabled #payment div.payment_box {
    margin: 10px 0 0 !important;
    padding: 11px 12px !important;
    border-radius: 9px !important;
    background: var(--kih-checkout-soft-green) !important;
    color: #59635c !important;
    font-size: 12px !important;
    line-height: 1.55;
}

body.kih-checkout-enabled #payment div.payment_box:before {
    border-bottom-color: var(--kih-checkout-soft-green) !important;
}

body.kih-checkout-enabled #payment .place-order {
    margin: 0 !important;
    padding: 10px !important;
}

body.kih-checkout-enabled #payment .woocommerce-privacy-policy-text,
body.kih-checkout-enabled #payment .woocommerce-terms-and-conditions-wrapper {
    color: var(--kih-checkout-muted);
    font-size: 11px;
    line-height: 1.55;
}

body.kih-checkout-enabled #payment .woocommerce-privacy-policy-text a,
body.kih-checkout-enabled #payment .woocommerce-terms-and-conditions-wrapper a {
    color: var(--kih-checkout-accent);
    font-weight: 800;
}

body.kih-checkout-enabled #place_order {
    float: none !important;
    width: 100% !important;
    min-height: 55px;
    margin: 8px 0 0 !important;
    padding: 13px 18px !important;
    border: 1px solid var(--kih-checkout-accent) !important;
    border-radius: 13px !important;
    background: var(--kih-checkout-accent) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--kih-checkout-accent) 25%, transparent) !important;
    font-size: 14px !important;
    line-height: 1.2;
    font-weight: 900 !important;
    letter-spacing: .01em;
    text-transform: none !important;
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

body.kih-checkout-enabled #place_order:hover {
    filter: brightness(.94);
    transform: translateY(-1px);
}

body.kih-checkout-enabled #place_order:active {
    transform: translateY(0);
}

body.kih-checkout-enabled #place_order:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--kih-checkout-accent) 22%, transparent);
    outline-offset: 2px;
}


/* --------------------------------------------------------------------------
   Loading
   -------------------------------------------------------------------------- */

body.kih-checkout-enabled .blockUI.blockOverlay {
    border-radius: var(--kih-checkout-radius);
    background: rgba(255, 255, 255, .68) !important;
    opacity: 1 !important;
    backdrop-filter: blur(2px);
}

body.kih-checkout-enabled form.checkout.processing #order_review {
    pointer-events: none;
}


/* --------------------------------------------------------------------------
   Bottom note
   -------------------------------------------------------------------------- */

.kih-checkout-bottom-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 34px;
    padding: 13px 16px;
    border: 1px solid #dbe9de;
    border-radius: 13px;
    background: var(--kih-checkout-soft-green);
    color: #56635a;
    font-size: 12px;
    line-height: 1.5;
}

.kih-checkout-bottom-note > span {
    display: grid;
    flex: 0 0 26px;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--kih-checkout-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.kih-checkout-bottom-note p {
    margin: 0 !important;
}


/* --------------------------------------------------------------------------
   Order received
   -------------------------------------------------------------------------- */

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order {
    margin: 32px 0 42px;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-thankyou-order-received {
    margin: 0 0 20px !important;
    padding: 22px 24px !important;
    border: 1px solid #cfe4d4;
    border-radius: var(--kih-checkout-radius);
    background: var(--kih-checkout-soft-green);
    color: var(--kih-checkout-ink);
    font-size: 20px;
    line-height: 1.4;
    font-weight: 900;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview,
body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-details,
body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-customer-details {
    padding: 20px !important;
    border: 1px solid var(--kih-checkout-line);
    border-radius: var(--kih-checkout-radius);
    background: #fff;
    box-shadow: var(--kih-checkout-shadow);
}


/* --------------------------------------------------------------------------
   WooCommerce Checkout Block — базовый визуальный слой
   -------------------------------------------------------------------------- */

body.kih-checkout-enabled .wc-block-checkout {
    color: var(--kih-checkout-ink);
}

body.kih-checkout-enabled .wc-block-checkout__main,
body.kih-checkout-enabled .wc-block-checkout__sidebar {
    min-width: 0;
}

body.kih-checkout-enabled .wc-block-components-checkout-step,
body.kih-checkout-enabled .wc-block-components-order-summary,
body.kih-checkout-enabled .wc-block-components-totals-wrapper {
    border-color: var(--kih-checkout-line) !important;
}

body.kih-checkout-enabled .wc-block-components-checkout-step {
    margin-bottom: 14px;
    padding: 20px !important;
    border: 1px solid var(--kih-checkout-line);
    border-radius: var(--kih-checkout-radius);
    background: #fff;
}

body.kih-checkout-enabled .wc-block-components-text-input input,
body.kih-checkout-enabled .wc-block-components-combobox .wc-block-components-combobox-control input {
    border-color: #dbe2dc !important;
    border-radius: 11px !important;
    background: #fbfcfb !important;
}

body.kih-checkout-enabled .wc-block-components-button.wc-block-components-checkout-place-order-button {
    min-height: 55px;
    border-radius: 13px;
    background: var(--kih-checkout-accent);
    color: #fff;
    font-weight: 900;
}


/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {

    .kih-checkout-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .kih-checkout-progress {
        width: 100%;
        justify-content: space-between;
    }

    body.kih-checkout-enabled form.checkout.woocommerce-checkout {
        grid-template-columns: minmax(0, 1fr) minmax(330px, .82fr);
        gap: 0 18px;
    }

    body.kih-checkout-enabled form.checkout #customer_details > .col-1,
    body.kih-checkout-enabled form.checkout #customer_details > .col-2 {
        padding: 20px !important;
    }

    body.kih-checkout-enabled form.checkout #order_review_heading {
        padding: 18px 18px 10px;
    }

    body.kih-checkout-enabled form.checkout #order_review {
        padding: 0 18px 18px;
    }

}


/* --------------------------------------------------------------------------
   Narrow tablet
   -------------------------------------------------------------------------- */

@media (max-width: 860px) and (min-width: 761px) {

    body.kih-checkout-enabled form.checkout.woocommerce-checkout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
        gap: 0 14px;
    }

    body.kih-checkout-enabled form.checkout #order_review_heading {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.kih-checkout-enabled form.checkout #order_review {
        padding-left: 16px;
        padding-right: 16px;
    }

}


/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {

    body.kih-checkout-enabled .entry-content > .woocommerce,
    body.kih-checkout-enabled main .woocommerce {
        width: min(100% - 20px, 1180px);
    }

    .kih-checkout-intro {
        margin-top: 18px;
        margin-bottom: 16px;
    }

    .kih-checkout-intro h1 {
        font-size: 30px;
    }

    .kih-checkout-intro p {
        font-size: 13px;
        line-height: 1.55;
    }

    .kih-checkout-progress {
        gap: 4px;
        padding: 5px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .kih-checkout-progress::-webkit-scrollbar {
        display: none;
    }

    .kih-checkout-progress span {
        flex: 1 0 auto;
        justify-content: center;
        padding: 6px 8px;
        font-size: 10px;
    }

    .kih-checkout-progress i {
        width: 21px;
        height: 21px;
        font-size: 10px;
    }

    .kih-checkout-trust {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        margin-left: -10px;
        margin-right: -10px;
        padding: 0 10px 4px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .kih-checkout-trust::-webkit-scrollbar {
        display: none;
    }

    .kih-checkout-trust__item {
        flex: 0 0 235px;
        padding: 12px 13px;
        scroll-snap-align: start;
    }

    body.kih-checkout-enabled form.checkout.woocommerce-checkout {
        display: block !important;
        margin-top: 0;
    }

    body.kih-checkout-enabled form.checkout #customer_details > .col-1,
    body.kih-checkout-enabled form.checkout #customer_details > .col-2 {
        margin-bottom: 12px !important;
        padding: 17px !important;
        border-radius: 15px;
        box-shadow: 0 9px 28px rgba(34, 55, 42, .06);
    }

    body.kih-checkout-enabled form.checkout #order_review_heading,
    body.kih-checkout-enabled.kih-checkout-sticky-summary form.checkout #order_review_heading {
        position: static;
        margin-top: 12px !important;
        padding: 17px 17px 10px;
        border-radius: 15px 15px 0 0;
    }

    body.kih-checkout-enabled form.checkout #order_review,
    body.kih-checkout-enabled.kih-checkout-sticky-summary form.checkout #order_review {
        position: static;
        padding: 0 17px 17px;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 9px 28px rgba(34, 55, 42, .06);
    }

    body.kih-checkout-enabled .woocommerce-billing-fields__field-wrapper,
    body.kih-checkout-enabled .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body.kih-checkout-enabled .woocommerce-billing-fields__field-wrapper .form-row,
    body.kih-checkout-enabled .woocommerce-shipping-fields__field-wrapper .form-row {
        grid-column: 1 !important;
    }

    body.kih-checkout-enabled .woocommerce-billing-fields > h3,
    body.kih-checkout-enabled .woocommerce-shipping-fields > h3,
    body.kih-checkout-enabled .woocommerce-additional-fields > h3,
    body.kih-checkout-enabled form.checkout #order_review_heading {
        font-size: 17px;
    }

    body.kih-checkout-enabled form.checkout_coupon {
        grid-template-columns: 1fr;
    }

    body.kih-checkout-enabled form.checkout_coupon .button {
        width: 100%;
    }

    .kih-checkout-product__image {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    body.kih-checkout-enabled .woocommerce-checkout-review-order-table tbody .product-total {
        width: 82px;
        font-size: 12px;
    }

    body.kih-checkout-enabled #place_order {
        min-height: 57px;
        font-size: 15px !important;
    }

    .kih-checkout-bottom-note {
        margin-bottom: 24px;
    }

}


/* --------------------------------------------------------------------------
   Very small devices
   -------------------------------------------------------------------------- */

@media (max-width: 380px) {

    .kih-checkout-progress span {
        padding-left: 6px;
        padding-right: 6px;
    }

    .kih-checkout-progress span {
        font-size: 0;
    }

    .kih-checkout-progress i {
        font-size: 10px;
    }

    .kih-checkout-product__image {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }

}


/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    body.kih-checkout-enabled .input-text,
    body.kih-checkout-enabled input,
    body.kih-checkout-enabled textarea,
    body.kih-checkout-enabled select,
    body.kih-checkout-enabled #place_order {
        transition: none !important;
    }

}


/* ==========================================================================
   Checkout v1.2 — stable desktop summary + mobile fulfillment flow
   ========================================================================== */

/*
 * The summary heading and order review are wrapped by checkout.js into one
 * stable grid item. This avoids theme percentage/floating rules collapsing
 * the right column.
 */
body.kih-checkout-enabled form.checkout.woocommerce-checkout {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 440px) !important;
    grid-template-areas: "customer summary" !important;
    column-gap: 28px !important;
    row-gap: 0 !important;
}

body.kih-checkout-enabled form.checkout.woocommerce-checkout > #customer_details {
    grid-area: customer !important;
    min-width: 0 !important;
}

body.kih-checkout-enabled form.checkout.woocommerce-checkout > .kih-checkout-summary-column {
    grid-area: summary !important;
    display: block !important;
    justify-self: stretch !important;
    align-self: start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 440px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.kih-checkout-enabled form.checkout .kih-checkout-summary-column #order_review_heading,
body.kih-checkout-enabled form.checkout .kih-checkout-summary-column #order_review {
    position: static !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

body.kih-checkout-enabled.kih-checkout-sticky-summary form.checkout > .kih-checkout-summary-column {
    position: sticky !important;
    top: calc(var(--kih-sticky-top, 0px) + 18px);
    z-index: 9;
}

body.kih-checkout-enabled .kih-checkout-summary-column .woocommerce-checkout-review-order-table {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
}

body.kih-checkout-enabled .kih-checkout-summary-column #payment,
body.kih-checkout-enabled .kih-checkout-summary-column #payment ul.payment_methods,
body.kih-checkout-enabled .kih-checkout-summary-column #payment ul.payment_methods li {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

body.kih-checkout-enabled .kih-checkout-summary-column #payment ul.payment_methods li > label {
    width: calc(100% - 30px) !important;
    min-width: 0 !important;
    white-space: normal !important;
}

body.kih-checkout-enabled .kih-checkout-summary-column #payment div.payment_box {
    width: 100% !important;
    max-width: none !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}


/* Mobile proxy steps are generated only on small screens. */
.kih-mobile-checkout-step {
    display: none;
}


@media (max-width: 1100px) and (min-width: 901px) {

    body.kih-checkout-enabled form.checkout.woocommerce-checkout {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 410px) !important;
        column-gap: 20px !important;
    }

    body.kih-checkout-enabled form.checkout.woocommerce-checkout > .kih-checkout-summary-column {
        max-width: 410px !important;
    }

}


@media (max-width: 900px) {

    body.kih-checkout-enabled form.checkout.woocommerce-checkout {
        display: block !important;
    }

    body.kih-checkout-enabled form.checkout.woocommerce-checkout > .kih-checkout-summary-column {
        width: 100% !important;
        max-width: none !important;
        margin-top: 14px !important;
    }

    body.kih-checkout-enabled.kih-checkout-sticky-summary form.checkout > .kih-checkout-summary-column {
        position: static !important;
        top: auto !important;
    }

}


@media (max-width: 760px) {

    /*
     * On mobile the real WooCommerce radios stay in the DOM and remain the
     * source of truth. We hide their original location and render convenient
     * proxy controls between customer-data blocks. Proxy clicks trigger the
     * original inputs, so shipping/payment integrations continue to receive
     * the normal WooCommerce change events.
     */
    body.kih-checkout-enabled #customer_details > .kih-mobile-checkout-step {
        display: block;
        width: 100%;
        margin: 0 0 12px !important;
        padding: 17px !important;
        border: 1px solid var(--kih-checkout-line);
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 9px 28px rgba(34, 55, 42, .06);
        box-sizing: border-box;
    }

    .kih-mobile-checkout-step__heading {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 14px;
    }

    .kih-mobile-checkout-step__heading h3 {
        margin: 0 !important;
        color: var(--kih-checkout-ink);
        font-size: 17px;
        line-height: 1.3;
        font-weight: 800;
    }

    .kih-mobile-checkout-step__badge {
        display: inline-grid;
        flex: 0 0 32px;
        place-items: center;
        width: 32px;
        height: 32px;
        border-radius: 10px;
        background: var(--kih-checkout-soft-green);
        color: var(--kih-checkout-accent);
        font-size: 11px;
        font-weight: 900;
    }

    .kih-mobile-choice-list {
        display: grid;
        gap: 8px;
    }

    .kih-mobile-choice {
        display: flex;
        align-items: flex-start;
        gap: 11px;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 12px 13px;
        border: 1px solid #e1e7e2;
        border-radius: 12px;
        background: #fff;
        color: var(--kih-checkout-ink);
        box-shadow: none;
        text-align: left;
        font: inherit;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
    }

    .kih-mobile-choice.is-selected {
        border-color: #bfd7c5;
        background: var(--kih-checkout-soft-green);
        box-shadow: 0 0 0 2px color-mix(in srgb, var(--kih-checkout-accent) 6%, transparent);
    }

    .kih-mobile-choice.is-disabled {
        opacity: .52;
        cursor: not-allowed;
    }

    .kih-mobile-choice__radio {
        position: relative;
        flex: 0 0 18px;
        width: 18px;
        height: 18px;
        margin-top: 1px;
        border: 1.5px solid #cfd7d1;
        border-radius: 50%;
        background: #fff;
        box-sizing: border-box;
    }

    .kih-mobile-choice.is-selected .kih-mobile-choice__radio {
        border: 5px solid var(--kih-checkout-accent);
    }

    .kih-mobile-choice__body {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
    }

    .kih-mobile-choice__label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-width: 0;
        color: var(--kih-checkout-ink);
        font-size: 13px;
        line-height: 1.45;
        font-weight: 750;
    }

    .kih-mobile-choice__label img {
        flex: 0 0 auto;
        width: auto !important;
        max-width: 95px !important;
        max-height: 25px !important;
        margin: 0 0 0 auto !important;
        object-fit: contain;
    }

    .kih-mobile-choice__body small {
        display: block;
        margin-top: 6px;
        color: var(--kih-checkout-muted);
        font-size: 11px;
        line-height: 1.5;
        font-weight: 500;
    }

    /*
     * Hide the original shipping/payment selectors only visually on mobile.
     * Inputs remain live and are controlled by the proxy cards above.
     */
    body.kih-checkout-enabled #order_review
        .woocommerce-checkout-review-order-table
        tr.woocommerce-shipping-totals,
    body.kih-checkout-enabled #order_review
        .woocommerce-checkout-review-order-table
        tr.shipping {
        display: none !important;
    }

    body.kih-checkout-enabled #order_review #payment ul.payment_methods {
        display: none !important;
    }

    body.kih-checkout-enabled #order_review #payment {
        margin-top: 10px !important;
        padding-top: 0 !important;
        background: transparent !important;
    }

    body.kih-checkout-enabled #order_review #payment .place-order {
        padding: 0 !important;
    }

    body.kih-checkout-enabled form.checkout #order_review_heading,
    body.kih-checkout-enabled form.checkout .kih-checkout-summary-column #order_review_heading {
        margin-top: 0 !important;
    }

    body.kih-checkout-enabled .woocommerce-checkout-review-order-table tbody td {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    body.kih-checkout-enabled .woocommerce-checkout-review-order-table tfoot th,
    body.kih-checkout-enabled .woocommerce-checkout-review-order-table tfoot td {
        padding-top: 9px !important;
        padding-bottom: 9px !important;
    }

}


/* --------------------------------------------------------------------------
   Checkout v1.3 — временное отображение отрезных дорожек
   -------------------------------------------------------------------------- */

body.kih-checkout-enabled
.woocommerce-checkout-review-order-table
tr.kih-runner-cut-item
.product-total {
    display: none !important;
}

body.kih-checkout-enabled
.woocommerce-checkout-review-order-table
tr.kih-runner-cut-item
.product-name {
    width: 100% !important;
    padding-right: 0 !important;
}

body.kih-checkout-enabled
.woocommerce-checkout-review-order-table
tr.kih-runner-cut-item
.variation,
body.kih-checkout-enabled
.woocommerce-checkout-review-order-table
tr.kih-runner-cut-item
.product-quantity {
    display: none !important;
}

.kih-runner-cut {
    display: grid;
    gap: 3px;
    margin-top: 7px;
    color: var(--kih-checkout-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.kih-runner-cut__item {
    display: block;
}

.kih-runner-cut__label {
    color: var(--kih-checkout-muted);
    font-weight: 600;
}

.kih-runner-cut__item strong {
    color: var(--kih-checkout-ink);
    font-weight: 800;
}

.kih-runner-cut__price strong,
.kih-runner-cut__price .amount {
    color: var(--kih-checkout-accent) !important;
    font-weight: 900 !important;
}

.kih-runner-cut__price .woocommerce-Price-currencySymbol {
    color: inherit !important;
}

@media (max-width: 767px) {

    .kih-runner-cut {
        gap: 2px;
        margin-top: 6px;
        font-size: 11px;
    }

    body.kih-checkout-enabled
    .woocommerce-checkout-review-order-table
    tr.kih-runner-cut-item
    .kih-checkout-product {
        align-items: flex-start;
    }
}

/* --------------------------------------------------------------------------
   Checkout v1.5 — guest email + overlock inside runner card
   -------------------------------------------------------------------------- */

/* Guest email is technical only and must never be shown as a customer field. */
body.kih-checkout-enabled.kih-checkout-email-hidden #billing_email_field,
body.kih-checkout-enabled.kih-checkout-email-hidden .kih-guest-email-field,
body.kih-checkout-enabled.kih-checkout-email-hidden
.woocommerce-billing-fields
.form-row:has(input[name="billing_email"]) {
    display: none !important;
}

body.kih-checkout-enabled.kih-checkout-email-hidden
input[name="billing_email"]:not([type="hidden"]) {
    visibility: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* Overlock remains in WooCommerce totals mathematically, but its separate
   visual fee row is replaced by the item-level line inside the runner card. */
.kih-overlock-fee-marker {
    display: none !important;
}

body.kih-checkout-enabled
.woocommerce-checkout-review-order-table
tfoot
tr.kih-overlock-fee-row,
body.kih-checkout-enabled
.woocommerce-checkout-review-order-table
tfoot
tr.fee:has(.kih-overlock-fee-marker) {
    display: none !important;
}

.kih-runner-cut__overlock strong,
.kih-runner-cut__overlock-price,
.kih-runner-cut__overlock-price .amount {
    color: var(--kih-checkout-accent) !important;
    font-weight: 800;
}



/* ==========================================================================
   Checkout v1.7 — Order received / Thank you
   ========================================================================== */

body.kih-checkout-enabled.kih-checkout-order-received {
    background:
        radial-gradient(circle at 18% 0%, rgba(47, 125, 74, .06), transparent 34rem),
        var(--kih-checkout-surface);
}

body.kih-checkout-enabled.kih-checkout-order-received .entry-content > .woocommerce,
body.kih-checkout-enabled.kih-checkout-order-received main .woocommerce {
    width: min(1180px, calc(100% - 32px));
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order {
    display: grid;
    gap: 18px;
    margin: 28px 0 48px;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-thankyou-order-received {
    display: none !important;
}


/* Hero */

.kih-order-success {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    position: relative;
    padding: 28px 30px;
    border: 1px solid #cfe4d4;
    border-radius: 22px;
    background:
        linear-gradient(
            135deg,
            #f3faf5 0%,
            #ffffff 70%
        );
    box-shadow: 0 18px 48px rgba(34, 55, 42, .08);
}

.kih-order-success:after {
    content: "";
    position: absolute;
    right: -85px;
    bottom: -105px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(47, 125, 74, .055);
    pointer-events: none;
}

.kih-order-success__icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: var(--kih-checkout-accent);
    color: #fff;
    box-shadow: 0 12px 28px rgba(47, 125, 74, .23);
}

.kih-order-success__icon svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.kih-order-success__content {
    min-width: 0;
}

.kih-order-success__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin: 0 0 7px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e6f4e9;
    color: var(--kih-checkout-accent);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.kih-order-success h1 {
    margin: 0 !important;
    color: var(--kih-checkout-ink);
    font-size: clamp(25px, 3vw, 37px);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.kih-order-success p {
    max-width: 690px;
    margin: 9px 0 0 !important;
    color: var(--kih-checkout-muted);
    font-size: 14px;
    line-height: 1.6;
}

.kih-order-success__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.kih-order-success__callback,
.kih-order-success__shop {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 18px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 850 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.kih-order-success__callback {
    border: 1px solid var(--kih-checkout-accent) !important;
    background: var(--kih-checkout-accent) !important;
    color: #fff !important;
    box-shadow: 0 9px 20px rgba(47, 125, 74, .18);
}

.kih-order-success__callback svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.kih-order-success__shop {
    border: 1px solid var(--kih-checkout-line) !important;
    background: #fff !important;
    color: var(--kih-checkout-ink) !important;
}

.kih-order-success__callback:hover,
.kih-order-success__shop:hover {
    transform: translateY(-1px);
}

.kih-order-success__side {
    display: flex;
    min-width: 190px;
    min-height: 112px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    position: relative;
    z-index: 1;
    padding: 17px 20px;
    border: 1px solid var(--kih-checkout-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .88);
}

.kih-order-success__side > span {
    color: var(--kih-checkout-muted);
    font-size: 11px;
    line-height: 1.25;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.kih-order-success__side > strong {
    margin: 6px 0 4px;
    color: var(--kih-checkout-accent);
    font-size: 23px;
    line-height: 1.1;
    font-weight: 900;
}

.kih-order-success__side > small {
    color: var(--kih-checkout-ink);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}


/* Order meta overview */

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--kih-checkout-line) !important;
    border-radius: 18px !important;
    background: #fff;
    box-shadow: 0 12px 36px rgba(34, 55, 42, .05);
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview li {
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 18px 20px !important;
    border: 0 !important;
    border-right: 1px solid var(--kih-checkout-line) !important;
    color: var(--kih-checkout-muted);
    font-size: 10px !important;
    line-height: 1.35;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .055em;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview li:last-child {
    border-right: 0 !important;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview li strong {
    display: block;
    overflow-wrap: anywhere;
    margin-top: 6px;
    color: var(--kih-checkout-ink);
    font-size: 14px !important;
    line-height: 1.35;
    font-weight: 900;
    text-transform: none;
    letter-spacing: 0;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview .woocommerce-Price-amount {
    color: var(--kih-checkout-accent);
    font-size: 18px;
}


/* Gateway / bank transfer content */

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-bacs-bank-details,
body.kih-checkout-enabled.kih-checkout-order-received .wc-bacs-bank-details {
    margin: 0 !important;
    padding: 24px !important;
    border: 1px solid var(--kih-checkout-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(34, 55, 42, .05);
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-bacs-bank-details > h2,
body.kih-checkout-enabled.kih-checkout-order-received .wc-bacs-bank-details-heading {
    margin: 0 0 8px !important;
    color: var(--kih-checkout-ink);
    font-size: 18px !important;
    line-height: 1.3;
    font-weight: 900;
}

body.kih-checkout-enabled.kih-checkout-order-received .wc-bacs-bank-details-account-name {
    margin: 0 0 18px !important;
    color: var(--kih-checkout-ink);
    font-size: 16px !important;
    line-height: 1.4;
    font-weight: 850;
}

body.kih-checkout-enabled.kih-checkout-order-received ul.wc-bacs-bank-details {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.kih-checkout-enabled.kih-checkout-order-received ul.wc-bacs-bank-details li {
    float: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 13px 14px !important;
    border: 1px solid var(--kih-checkout-line) !important;
    border-radius: 12px;
    background: #fafcfb;
    color: var(--kih-checkout-muted);
    font-size: 10px !important;
    line-height: 1.35;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

body.kih-checkout-enabled.kih-checkout-order-received ul.wc-bacs-bank-details li strong {
    display: block;
    overflow-wrap: anywhere;
    margin-top: 5px;
    color: var(--kih-checkout-ink);
    font-size: 12px !important;
    line-height: 1.4;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}


/* Order details */

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-details,
body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-customer-details {
    margin: 0 !important;
    padding: 24px !important;
    border: 1px solid var(--kih-checkout-line) !important;
    border-radius: 18px !important;
    background: #fff;
    box-shadow: 0 12px 36px rgba(34, 55, 42, .05);
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-details__title,
body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-column__title {
    margin: 0 0 18px !important;
    color: var(--kih-checkout-ink);
    font-size: 20px !important;
    line-height: 1.25;
    font-weight: 900;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-table--order-details {
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-table--order-details th,
body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-table--order-details td {
    padding: 13px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--kih-checkout-line) !important;
    background: transparent !important;
    color: var(--kih-checkout-ink);
    font-size: 12px;
    line-height: 1.45;
    vertical-align: middle;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-table--order-details thead th {
    color: var(--kih-checkout-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .055em;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-table--order-details tfoot tr:last-child th,
body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-table--order-details tfoot tr:last-child td {
    border-bottom: 0 !important;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-table--order-details a {
    color: var(--kih-checkout-ink) !important;
    font-weight: 800;
    text-decoration-color: rgba(47, 125, 74, .3);
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-table--order-details .woocommerce-Price-amount {
    color: var(--kih-checkout-accent);
    font-size: 15px;
    font-weight: 900;
}


/* Next steps */

.kih-order-next {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    padding: 24px;
    border: 1px solid #d5e7d9;
    border-radius: 18px;
    background: #f3faf5;
}

.kih-order-next__head {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.kih-order-next__head > span {
    color: var(--kih-checkout-accent);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.kih-order-next__head > strong {
    margin-top: 5px;
    color: var(--kih-checkout-ink);
    font-size: 19px;
    line-height: 1.25;
    font-weight: 900;
}

.kih-order-next__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.kih-order-next__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(47, 125, 74, .12);
    border-radius: 13px;
    background: rgba(255, 255, 255, .8);
}

.kih-order-next__item i {
    display: grid;
    flex: 0 0 28px;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--kih-checkout-accent);
    color: #fff;
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
}

.kih-order-next__item > span {
    min-width: 0;
}

.kih-order-next__item strong,
.kih-order-next__item small {
    display: block;
}

.kih-order-next__item strong {
    margin-bottom: 4px;
    color: var(--kih-checkout-ink);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 850;
}

.kih-order-next__item small {
    color: var(--kih-checkout-muted);
    font-size: 11px;
    line-height: 1.45;
}


/* Misc gateway text between cards */

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order > p:not(.woocommerce-thankyou-order-received) {
    margin: 0 !important;
    padding: 0 2px;
    color: var(--kih-checkout-muted);
    font-size: 12px;
    line-height: 1.55;
}


/* Responsive thank-you page */

@media (max-width: 900px) {
    .kih-order-success {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .kih-order-success__side {
        grid-column: 1 / -1;
        min-height: 0;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
    }

    .kih-order-success__side > strong {
        margin: 0;
    }

    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview,
    body.kih-checkout-enabled.kih-checkout-order-received ul.wc-bacs-bank-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview li:nth-child(2),
    body.kih-checkout-enabled.kih-checkout-order-received ul.wc-bacs-bank-details li:nth-child(2n) {
        border-right: 0 !important;
    }

    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview li:nth-child(-n+2) {
        border-bottom: 1px solid var(--kih-checkout-line) !important;
    }

    .kih-order-next {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body.kih-checkout-enabled.kih-checkout-order-received .entry-content > .woocommerce,
    body.kih-checkout-enabled.kih-checkout-order-received main .woocommerce {
        width: min(100% - 20px, 1180px);
    }

    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order {
        gap: 12px;
        margin-top: 16px;
    }

    .kih-order-success {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px;
        border-radius: 18px;
    }

    .kih-order-success__icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .kih-order-success__icon svg {
        width: 28px;
        height: 28px;
    }

    .kih-order-success h1 {
        font-size: 26px;
    }

    .kih-order-success p {
        font-size: 13px;
    }

    .kih-order-success__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .kih-order-success__callback,
    .kih-order-success__shop {
        width: 100%;
        min-height: 48px;
    }

    .kih-order-success__side {
        grid-column: auto;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 4px 12px;
        padding: 14px 16px;
    }

    .kih-order-success__side > span {
        align-self: end;
    }

    .kih-order-success__side > strong {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
        text-align: right;
        font-size: 20px;
    }

    .kih-order-success__side > small {
        grid-column: 1;
    }

    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview {
        grid-template-columns: 1fr 1fr;
    }

    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview li {
        padding: 14px !important;
    }

    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-bacs-bank-details,
    body.kih-checkout-enabled.kih-checkout-order-received .wc-bacs-bank-details,
    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-details,
    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-customer-details {
        padding: 18px !important;
        border-radius: 16px !important;
    }

    body.kih-checkout-enabled.kih-checkout-order-received ul.wc-bacs-bank-details {
        grid-template-columns: 1fr;
    }

    body.kih-checkout-enabled.kih-checkout-order-received ul.wc-bacs-bank-details li {
        border-right: 1px solid var(--kih-checkout-line) !important;
    }

    .kih-order-next {
        gap: 16px;
        padding: 18px;
        border-radius: 16px;
    }

    .kih-order-next__grid {
        grid-template-columns: 1fr;
    }

    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-table--order-details {
        table-layout: fixed;
    }

    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-table--order-details th:first-child,
    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-table--order-details td:first-child {
        width: 65%;
        overflow-wrap: anywhere;
    }

    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-table--order-details th:last-child,
    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-table--order-details td:last-child {
        width: 35%;
        text-align: right;
    }
}


/* ==========================================================================
   Checkout v1.8 — Thank-you page polish
   ========================================================================== */

/* Order overview: four independent cards, no legacy float wrapping. */
body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview::before,
body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview::after {
    content: none !important;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview li {
    display: flex !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 82px;
    justify-content: center;
    flex-direction: column;
    margin: 0 !important;
    padding: 16px 18px !important;
    border: 1px solid var(--kih-checkout-line) !important;
    border-radius: 14px !important;
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fafcfb 100%
        ) !important;
    box-shadow: 0 8px 24px rgba(34, 55, 42, .04);
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview li strong {
    margin-top: 5px !important;
    font-size: 14px !important;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview .woocommerce-Price-amount {
    font-size: 19px !important;
    font-weight: 900 !important;
}


/* Bank details: balanced cards, clearer hierarchy. */
body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-bacs-bank-details,
body.kih-checkout-enabled.kih-checkout-order-received .wc-bacs-bank-details {
    position: relative;
    overflow: hidden;
    padding: 26px !important;
    border-color: #d8e7dc !important;
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f7fbf8 100%
        ) !important;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-bacs-bank-details::before,
body.kih-checkout-enabled.kih-checkout-order-received .wc-bacs-bank-details::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--kih-checkout-accent);
    opacity: .9;
}

body.kih-checkout-enabled.kih-checkout-order-received .wc-bacs-bank-details-account-name {
    display: inline-flex;
    margin: 2px 0 20px !important;
    padding: 8px 12px;
    border: 1px solid #d9e9dd;
    border-radius: 10px;
    background: #edf7f0;
    color: var(--kih-checkout-ink);
    font-size: 14px !important;
    line-height: 1.35;
}

body.kih-checkout-enabled.kih-checkout-order-received ul.wc-bacs-bank-details {
    grid-template-columns:
        minmax(150px, .9fr)
        minmax(220px, 1.35fr)
        minmax(290px, 1.75fr)
        minmax(130px, .75fr) !important;
    gap: 12px !important;
}

body.kih-checkout-enabled.kih-checkout-order-received ul.wc-bacs-bank-details li {
    position: relative;
    min-height: 82px;
    justify-content: center;
    padding: 15px 16px 14px !important;
    border-color: #dfe8e1 !important;
    background: #fff !important;
    box-shadow: 0 7px 18px rgba(34, 55, 42, .035);
}

body.kih-checkout-enabled.kih-checkout-order-received ul.wc-bacs-bank-details li::after {
    content: "";
    position: absolute;
    left: 14px;
    bottom: 0;
    width: 30px;
    height: 3px;
    border-radius: 99px 99px 0 0;
    background: var(--kih-checkout-accent);
    opacity: .55;
}


/* Order details: cleaner product card and compact totals. */
body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-details {
    padding: 26px !important;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-table--order-details thead th {
    padding-bottom: 11px !important;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-table--order-details tbody td {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

body.kih-checkout-enabled.kih-checkout-order-received
.woocommerce-table--order-details
tbody tr:has(.kih-order-product--runner)
.product-quantity,
body.kih-checkout-enabled.kih-checkout-order-received
.woocommerce-table--order-details
tbody tr:has(.kih-order-product--runner)
.wc-item-meta {
    display: none !important;
}

.kih-order-product {
    display: grid;
    gap: 9px;
}

.kih-order-product__title {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    color: var(--kih-checkout-ink) !important;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.kih-order-product__title:hover {
    color: var(--kih-checkout-accent) !important;
}

.kih-order-product__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.kih-order-product__meta > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 5px 8px;
    border: 1px solid #e1e8e2;
    border-radius: 9px;
    background: #f9fbf9;
    line-height: 1.15;
}

.kih-order-product__meta small {
    color: var(--kih-checkout-muted);
    font-size: 10px;
    font-weight: 700;
}

.kih-order-product__meta strong {
    color: var(--kih-checkout-ink);
    font-size: 11px;
    font-weight: 850;
}

.kih-order-product__overlock {
    border-color: #cee4d3 !important;
    background: #edf7f0 !important;
}

.kih-order-product__overlock strong {
    color: var(--kih-checkout-accent) !important;
}

body.kih-checkout-enabled.kih-checkout-order-received
.woocommerce-table--order-details tfoot {
    display: table-row-group;
}

body.kih-checkout-enabled.kih-checkout-order-received
.woocommerce-table--order-details tfoot tr th,
body.kih-checkout-enabled.kih-checkout-order-received
.woocommerce-table--order-details tfoot tr td {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
    font-size: 12px;
}

body.kih-checkout-enabled.kih-checkout-order-received
.woocommerce-table--order-details tfoot tr th {
    color: var(--kih-checkout-muted);
    font-weight: 750;
}

body.kih-checkout-enabled.kih-checkout-order-received
.woocommerce-table--order-details tfoot tr td {
    font-weight: 800;
}

.kih-order-shipping-method {
    display: block;
    color: var(--kih-checkout-ink);
    font-weight: 800;
}

.kih-order-delivery-address {
    display: block;
    max-width: 520px;
    margin-top: 4px;
    color: var(--kih-checkout-muted);
    font-size: 11px;
    line-height: 1.45;
    font-weight: 600;
}

body.kih-checkout-enabled.kih-checkout-order-received
.woocommerce-table--order-details tfoot tr:last-of-type {
    border-bottom: 0;
}

body.kih-checkout-enabled.kih-checkout-order-received
.woocommerce-table--order-details tfoot tr:has(.woocommerce-Price-amount) th,
body.kih-checkout-enabled.kih-checkout-order-received
.woocommerce-table--order-details tfoot tr:has(.woocommerce-Price-amount) td {
    background: #fbfdfb !important;
}

body.kih-checkout-enabled.kih-checkout-order-received
.woocommerce-table--order-details tfoot tr:has(strong .woocommerce-Price-amount) th,
body.kih-checkout-enabled.kih-checkout-order-received
.woocommerce-table--order-details tfoot tr:has(strong .woocommerce-Price-amount) td {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    border-top: 1px solid #cfe3d4 !important;
    background: #eef8f1 !important;
    font-size: 14px;
}


/* Customer / billing address: bright info panel instead of grey box. */
body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-customer-details {
    position: relative;
    overflow: hidden;
    padding: 26px !important;
    border-color: #d9e6dc !important;
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fafdfb 100%
        ) !important;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-customer-details::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--kih-checkout-accent);
    opacity: .82;
}

body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-customer-details address {
    position: relative;
    margin: 0 !important;
    padding: 20px 22px 20px 24px !important;
    border: 1px solid #dfe9e1 !important;
    border-radius: 14px !important;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f2f8f4 100%
        ) !important;
    color: var(--kih-checkout-ink) !important;
    font-style: normal !important;
    font-size: 13px;
    line-height: 1.75;
    box-shadow: inset 4px 0 0 rgba(47, 125, 74, .13);
}

body.kih-checkout-enabled.kih-checkout-order-received
.woocommerce-customer-details address::before {
    content: "Дані отримувача";
    display: block;
    width: fit-content;
    margin: 0 0 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e9f5ec;
    color: var(--kih-checkout-accent);
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

body.kih-checkout-enabled.kih-checkout-order-received
.woocommerce-customer-details--phone {
    display: inline-flex !important;
    align-items: center;
    margin: 12px 8px 0 0 !important;
    padding: 6px 9px;
    border-radius: 8px;
    background: #fff;
    color: var(--kih-checkout-ink);
    font-weight: 800;
}

body.kih-checkout-enabled.kih-checkout-order-received
.woocommerce-customer-details--email {
    display: none !important;
}


/* Gateway instruction duplicated by the custom success hero. JS marks it. */
body.kih-checkout-enabled.kih-checkout-order-received
.kih-order-duplicate-gateway-note {
    display: none !important;
}


@media (max-width: 980px) {
    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.kih-checkout-enabled.kih-checkout-order-received ul.wc-bacs-bank-details {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview {
        gap: 8px !important;
    }

    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-overview li {
        min-height: 76px;
        padding: 13px 14px !important;
    }

    body.kih-checkout-enabled.kih-checkout-order-received ul.wc-bacs-bank-details {
        grid-template-columns: 1fr !important;
    }

    body.kih-checkout-enabled.kih-checkout-order-received ul.wc-bacs-bank-details li {
        min-height: 72px;
    }

    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-order-details,
    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-customer-details,
    body.kih-checkout-enabled.kih-checkout-order-received .woocommerce-bacs-bank-details,
    body.kih-checkout-enabled.kih-checkout-order-received .wc-bacs-bank-details {
        padding: 18px !important;
    }

    .kih-order-product__meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kih-order-product__meta > span {
        width: 100%;
        justify-content: space-between;
    }

    body.kih-checkout-enabled.kih-checkout-order-received
    .woocommerce-customer-details address {
        padding: 17px !important;
    }

    .kih-order-delivery-address {
        margin-top: 5px;
        font-size: 10px;
    }
}


/* --------------------------------------------------------------------------
   Checkout v1.9 — customer details card polish
   -------------------------------------------------------------------------- */

body.kih-checkout-enabled.kih-checkout-order-received
.woocommerce-customer-details address.kih-customer-address-polished {
    padding: 16px !important;
    background:
        linear-gradient(
            135deg,
            #f8fcf9 0%,
            #f1f8f3 100%
        ) !important;
    box-shadow:
        inset 4px 0 0 rgba(47, 125, 74, .13),
        0 8px 24px rgba(25, 73, 40, .035);
}

body.kih-checkout-enabled.kih-checkout-order-received
.woocommerce-customer-details address.kih-customer-address-polished::before {
    display: none !important;
}

body.kih-checkout-enabled.kih-checkout-order-received
.kih-customer-profile {
    display: grid;
    grid-template-columns:
        minmax(170px, .78fr)
        minmax(260px, 1.45fr)
        minmax(170px, .72fr);
    gap: 12px;
}

body.kih-checkout-enabled.kih-checkout-order-received
.kih-customer-profile__item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid #dbe8de;
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 5px 16px rgba(20, 65, 35, .035);
}

body.kih-checkout-enabled.kih-checkout-order-received
.kih-customer-profile__icon {
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #e9f5ec;
    color: var(--kih-checkout-accent);
}

body.kih-checkout-enabled.kih-checkout-order-received
.kih-customer-profile__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.kih-checkout-enabled.kih-checkout-order-received
.kih-customer-profile__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

body.kih-checkout-enabled.kih-checkout-order-received
.kih-customer-profile__label {
    color: #728077;
    font-size: 9px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: .055em;
    text-transform: uppercase;
}

body.kih-checkout-enabled.kih-checkout-order-received
.kih-customer-profile__value {
    display: block;
    min-width: 0;
    color: #17231a !important;
    font-size: 13px;
    line-height: 1.48;
    font-weight: 800;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

body.kih-checkout-enabled.kih-checkout-order-received
.kih-customer-profile__line {
    display: block;
}

body.kih-checkout-enabled.kih-checkout-order-received
.kih-customer-profile__line + .kih-customer-profile__line {
    margin-top: 2px;
    color: #546159;
    font-weight: 700;
}

body.kih-checkout-enabled.kih-checkout-order-received
.kih-customer-profile__item--phone .kih-customer-profile__value {
    color: var(--kih-checkout-accent) !important;
    font-size: 14px;
    font-weight: 900;
}

@media (max-width: 980px) {
    body.kih-checkout-enabled.kih-checkout-order-received
    .kih-customer-profile {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.kih-checkout-enabled.kih-checkout-order-received
    .kih-customer-profile__item--address {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    body.kih-checkout-enabled.kih-checkout-order-received
    .woocommerce-customer-details address.kih-customer-address-polished {
        padding: 11px !important;
    }

    body.kih-checkout-enabled.kih-checkout-order-received
    .kih-customer-profile {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    body.kih-checkout-enabled.kih-checkout-order-received
    .kih-customer-profile__item--address {
        grid-column: auto;
    }

    body.kih-checkout-enabled.kih-checkout-order-received
    .kih-customer-profile__item {
        padding: 13px 14px;
    }
}


/* ==========================================================================
   Checkout v1.10 — remove item action
   ========================================================================== */

body.kih-checkout-enabled .kih-checkout-product {
    position: relative;
    width: 100%;
    padding-right: 31px;
}

body.kih-checkout-enabled .kih-checkout-product__remove {
    position: absolute;
    top: -3px;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    min-width: 27px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #efd7d4 !important;
    border-radius: 9px !important;
    background: #fff8f7 !important;
    color: #b83b35 !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 19px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

body.kih-checkout-enabled .kih-checkout-product__remove:hover,
body.kih-checkout-enabled .kih-checkout-product__remove:focus-visible {
    color: #fff !important;
    background: #c9443d !important;
    border-color: #c9443d !important;
    transform: translateY(-1px);
}

body.kih-checkout-enabled .kih-checkout-product__remove:disabled {
    opacity: .45;
    cursor: wait;
}

body.kih-checkout-enabled
.woocommerce-checkout-review-order-table
tr.cart_item.kih-checkout-item-removing {
    opacity: .48;
    pointer-events: none;
}

body.kih-checkout-enabled
.woocommerce-checkout-review-order-table
tr.cart_item.kih-checkout-item-removing
.kih-checkout-product {
    filter: grayscale(.2);
}

@media (max-width: 760px) {
    body.kih-checkout-enabled .kih-checkout-product {
        padding-right: 29px;
    }

    body.kih-checkout-enabled .kih-checkout-product__remove {
        top: -2px;
        width: 25px;
        height: 25px;
        min-width: 25px;
        border-radius: 8px !important;
        font-size: 18px !important;
    }
}
