/*
 * Kondura: logo size, cart and single-page checkout (the short GCC flow) with the country picker beside their titles.
 * Loaded after the theme css (Head.cshtml), in both directions: spacing uses logical properties,
 * so the same rules work for Arabic (RTL).
 */

:root {
    --kc-ink: #141414;
    --kc-muted: #6f6a64;
    --kc-line: #e3ddd5;
    --kc-line-strong: #c9c1b7;
    --kc-panel: #f6f0e8;
    --kc-brand: #9b6631;
    --kc-brand-dark: #7a4f24;
    --kc-ok: #2e7d32;
    --kc-error: #c62828;
    --kc-radius: 10px;
    --kc-field-height: 50px;
}

/* ---------------------------------------------------------------- header: the theme's own navigation bar, one logo size */

/* the phone logo size, on every page and screen */
.header .header-logo img {
    height: 24px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
}

@media all and (min-width: 1024px) {
    .header .container-box {
        position: relative;
    }
    /* centered between the menu (start) and the icons (end), as on phones */
    .header #main-logo .header-logo {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        float: none;
        width: auto;
        max-width: none; /* 1366.css caps it at 110px, narrower than the logo */
        margin: 0;
        padding: 0;
        z-index: 2;
    }
}

/* the closed flyout cart is only transparent (opacity 0); on tablets it lies over the header icons and took their taps */
.flyout-cart:not(.activeState) {
    pointer-events: none;
}

/* the mobile logo box is much wider than the logo; only the logo itself takes taps, not the icons beside it */
.menu-logo-mobile .header-logo {
    pointer-events: none;
}

.menu-logo-mobile .header-logo a {
    pointer-events: auto;
}

/* ---------------------------------------------------------------- title row: page title + country picker (cart, checkout) */

.kc-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 36px 0 12px;
}

.kc-page .kc-title-row h1,
.kc-flyout .kc-title-row .kc-cart-title {
    margin: 0;
    padding: 0;
    color: var(--kc-ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-align: start;
}

.country-switch {
    flex: none;
    min-width: 0;
}

.country-switch-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    max-width: 100%;
    padding: 0 14px;
    border: 1px solid var(--kc-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(20, 20, 20, .08);
    color: var(--kc-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.country-switch-button:hover {
    border-color: var(--kc-line-strong);
}

.country-switch-button:focus-visible {
    outline: 2px solid var(--kc-ink);
    outline-offset: 2px;
}

.country-switch-flag {
    flex: none;
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.country-switch-caret {
    flex: none;
    width: 7px;
    height: 7px;
    margin: -4px 2px 0;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

@media all and (max-width: 400px) {
    .kc-page .kc-title-row h1,
    .kc-flyout .kc-title-row .kc-cart-title {
        font-size: 20px;
    }
    .country-switch-button {
        height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }
}

/* the sheet that lists the countries: bottom sheet on phones, dialog on wider screens */
.country-sheet[hidden] {
    display: none !important;
}

.country-sheet {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.country-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, .45);
}

.country-sheet-panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 4px 0 calc(16px + env(safe-area-inset-bottom));
    color: var(--kc-ink);
}

@media all and (min-width: 768px) {
    .country-sheet {
        align-items: center;
    }
    .country-sheet-panel {
        border-radius: 16px;
    }
}

.country-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 8px;
    padding-inline-start: 20px;
}

.country-sheet-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: none;
    color: var(--kc-ink);
}

.country-sheet-close {
    position: relative;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    cursor: pointer;
}

.country-sheet-close::before,
.country-sheet-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: var(--kc-ink);
}

.country-sheet-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.country-sheet-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.country-sheet-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.country-sheet-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 0 20px;
    color: var(--kc-ink);
    font-size: 16px;
    text-decoration: none;
}

.country-sheet-item:hover,
.country-sheet-item:focus-visible {
    background: var(--kc-panel);
    outline: none;
}

.country-sheet-item.is-current {
    font-weight: 700;
}

.country-sheet-flag {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.country-sheet-name {
    flex: 1;
}

.country-sheet-currency {
    color: var(--kc-muted);
    font-size: 13px;
}

.country-sheet-item.is-current::after {
    content: "";
    width: 6px;
    height: 11px;
    border: solid var(--kc-ink);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-inline-start: 4px;
}

body.country-sheet-open {
    overflow: hidden;
}

/* ---------------------------------------------------------------- shared page parts */

.kc-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px 48px;
    color: var(--kc-ink);
    text-align: start;
}

.kc-page h1,
.kc-page h2,
.kc-page button,
.kc-page .button-1,
.kc-page .button-2 {
    text-transform: none;
    letter-spacing: 0;
}

.kc-primary-button,
.kc-page .button-1.kc-primary-button,
.kc-page .checkout-buttons .button-1.kc-primary-button,
.flyout-cart.kc-flyout .buttons .button-1.kc-primary-button {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 52px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--kc-ink);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.kc-primary-button:hover {
    background: #000;
}

.kc-primary-button:disabled {
    opacity: .6;
    cursor: default;
}

.kc-primary-button:focus-visible,
.kc-link-button:focus-visible {
    outline: 2px solid var(--kc-ink);
    outline-offset: 2px;
}

.kc-link-button {
    display: inline-block;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--kc-brand-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* the total beside the checkout button (cart page and flyout cart) */
.kc-total-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    color: var(--kc-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.kc-total-line .kc-total-value {
    font-weight: 700;
    white-space: nowrap;
}

.kc-cart .kc-checkout-bar {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--kc-line);
}

/* phones and tablets: the total and the checkout button stay at the bottom of the screen while the cart scrolls.
   Over the site footer (z-index 999), under the header with its flyout cart (9999) and the country sheet (100000) */
@media all and (max-width: 1023px) {
    .kc-cart .kc-checkout-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        margin: 0;
        padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
        background: #fff;
        box-shadow: 0 -6px 18px rgba(20, 20, 20, .08);
    }
    .kc-cart .kc-checkout-bar .kc-total-line {
        margin-bottom: 10px;
    }
    /* the theme's content wrapper is a z-index 0 layer, which would keep the bar under the footer */
    .master-wrapper-content:has(.kc-cart .kc-checkout-bar) {
        z-index: 1000;
    }
    /* room at the end of the page, so nothing stays behind the bar */
    body:has(.kc-cart .kc-checkout-bar) {
        padding-bottom: calc(130px + env(safe-area-inset-bottom));
    }
}

.kc-reassurance,
.kc-payments-accepted {
    margin: 12px 0 0;
    color: var(--kc-muted);
    font-size: 13px;
    text-align: center;
}

.kc-reassurance::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 7px;
    margin-inline-end: 6px;
    border-radius: 1px;
    background: currentColor;
    box-shadow: 0 -3px 0 -1px var(--kc-muted);
    vertical-align: 0;
}

/* ---------------------------------------------------------------- items (cart and checkout review) */

.kc-order-summary,
.kc-order-summary .cart-colums,
.kc-order-summary .cart-frames {
    float: none;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border: 0;
}

.kc-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* picture | name, size, quantity | remove (top) and price (bottom) */
.kc-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: stretch;
    padding: 16px 0;
    border-bottom: 1px solid var(--kc-line);
}

.kc-item-picture img {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--kc-panel);
}

.kc-item-name,
.kc-page .kc-item-name {
    display: block;
    color: var(--kc-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.kc-item-attributes,
.kc-item .recurring-info,
.kc-item .rental-info {
    margin-top: 2px;
    color: var(--kc-muted);
    font-size: 13px;
    line-height: 1.4;
}

.kc-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 2px;
    text-align: end;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.kc-item-price .old-product-subtotal {
    display: block;
    color: var(--kc-muted);
    font-weight: 400;
    font-size: 12px;
    text-decoration: line-through;
}

.kc-item-price .discount,
.kc-item-price .discount-additional-info {
    color: var(--kc-ok);
    font-weight: 400;
    font-size: 12px;
    white-space: normal;
}

/* the bin sits at the top of the price column, the price at its bottom */
.kc-item-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -6px -6px auto 0;
    margin-inline: 0 -6px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--kc-muted);
    cursor: pointer;
}

.kc-item-remove:hover,
.kc-item-remove:focus-visible {
    color: var(--kc-ink);
    background: var(--kc-panel);
    outline: none;
}

.kc-stepper,
.kc-order-summary .quantity-stepper.kc-stepper {
    display: inline-flex;
    align-items: center;
    height: 36px;
    margin-top: 10px;
    padding: 0;
    border: 1px solid var(--kc-line-strong);
    border-radius: 8px;
    background: #fff;
}

.kc-stepper-button {
    width: 36px;
    height: 34px;
    border: 0;
    background: none;
    color: var(--kc-ink);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.kc-stepper-button:disabled {
    color: var(--kc-line-strong);
}

.kc-stepper .qty-label {
    min-width: 24px;
    text-align: center;
    font-size: 14px;
}

.kc-qty-select {
    height: 36px;
    margin-top: 10px;
    border: 1px solid var(--kc-line-strong);
    border-radius: 8px;
    padding: 0 8px;
}

.kc-item-qty {
    display: inline-block;
    margin-top: 4px;
    color: var(--kc-muted);
    font-size: 13px;
}

/* compact list in the checkout summary */
.kc-review .kc-item {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    padding: 10px 0;
}

.kc-review .kc-item-picture img {
    width: 56px;
    height: 56px;
}

.kc-review .kc-item-name {
    font-size: 14px;
}

/* ---------------------------------------------------------------- cart */

/* the theme pulls the cart form up by 20px, under the title row */
.kc-page #shopping-cart-form {
    margin-top: 0;
}

.kc-cart .kc-cart-frames {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.kc-cart .kc-cart-summary .cart-footer {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border: 0;
}

@media all and (min-width: 1024px) {
    /* the cart page starts higher than checkout under the taller desktop header */
    .kc-page.shopping-cart-page .kc-title-row {
        margin-top: 72px;
    }
    .kc-cart .kc-cart-frames {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 40px;
        align-items: start;
    }
    .kc-cart .kc-cart-summary {
        position: sticky;
        top: 150px;
    }
    .kc-cart .kc-cart-summary .cart-footer {
        padding: 20px;
        border: 1px solid var(--kc-line);
        border-radius: var(--kc-radius);
    }
}

.kc-order-summary .cart-collaterals,
.kc-order-summary .deals,
.kc-order-summary .totals,
.kc-order-summary .total-info {
    float: none;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

.kc-order-summary .checkout-buttons {
    margin: 16px 0 0;
    padding: 0;
    text-align: center;
}

.kc-order-summary .min-amount-warning {
    margin: 12px 0 0;
    color: var(--kc-error);
    font-size: 13px;
}

.kc-order-summary .terms-of-service {
    margin: 12px 0 0;
    font-size: 13px;
}

/* free delivery progress */
.kc-free-delivery {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: var(--kc-radius);
    background: var(--kc-panel);
    color: var(--kc-ink);
}

.kc-free-delivery-message {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.4;
}

.kc-free-delivery-message strong {
    color: var(--kc-brand-dark);
}

.kc-truck {
    flex: none;
    color: var(--kc-brand);
}

.kc-free-delivery-track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6dccf;
}

.kc-free-delivery-fill {
    height: 100%;
    min-width: 6px;
    border-radius: 999px;
    background: var(--kc-brand);
}

.kc-free-delivery-amounts {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    color: var(--kc-muted);
    font-size: 12px;
}

/* discount code and gift card */
.kc-code-box,
.kc-order-summary .coupon-box.kc-code-box,
.kc-order-summary .giftcard-box.kc-code-box {
    float: none;
    width: auto;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    text-align: start;
}

.kc-code-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--kc-ink);
}

.kc-code-row,
.kc-order-summary .kc-code-row {
    display: flex;
    gap: 8px;
    margin: 0;
}

.kc-code-row input[type="text"],
.kc-order-summary .kc-code-row input[type="text"] {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--kc-line-strong);
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    color: var(--kc-ink);
}

.kc-code-row .button-2,
.kc-order-summary .kc-code-row .button-2 {
    flex: none;
    width: auto;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--kc-ink);
    border-radius: 8px;
    background: #fff;
    color: var(--kc-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    cursor: pointer;
}

.kc-code-box .message-success,
.kc-code-box .message-failure {
    margin: 6px 0 0;
    font-size: 13px;
}

.kc-code-box .message-success {
    color: var(--kc-ok);
}

.kc-code-box .message-failure {
    color: var(--kc-error);
}

.kc-code-box .current-code {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    font-size: 13px;
}

.kc-code-box .remove-discount-button {
    position: relative;
    width: 24px;
    height: 24px;
    border: 0;
    background: none;
    cursor: pointer;
}

.kc-code-box .remove-discount-button::before,
.kc-code-box .remove-discount-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 1.5px;
    background: var(--kc-muted);
}

.kc-code-box .remove-discount-button::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.kc-code-box .remove-discount-button::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* totals: subtotal, discounts, delivery, total. styles.css hides the delivery and total rows site-wide; the cart, checkout and flyout cart show them */
.kc-page .kc-totals .cart-total tr.shipping-cost,
.kc-flyout .kc-totals .cart-total tr.shipping-cost,
.kc-page .kc-totals .cart-total tr.order-total,
.kc-flyout .kc-totals .cart-total tr.order-total {
    display: table-row;
}

.kc-page .kc-totals .cart-total,
.kc-flyout .kc-totals .cart-total {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border: 0;
    background: none;
}

.kc-page .kc-totals .cart-total td,
.kc-flyout .kc-totals .cart-total td {
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--kc-ink);
    font-size: 14px;
    text-align: start;
    vertical-align: top;
}

/* styles.css gives both cells half the row: the amount takes what it needs and the label the rest,
   so the delivery time ("Express Delivery: 2 to 24 hours") stays on one line */
.kc-page .kc-totals .cart-total td.cart-total-left,
.kc-flyout .kc-totals .cart-total td.cart-total-left {
    width: auto;
}

.kc-page .kc-totals .cart-total td.cart-total-right,
.kc-flyout .kc-totals .cart-total td.cart-total-right {
    width: 1%;
    padding-inline-start: 12px;
    text-align: end;
    white-space: nowrap;
}

.kc-page .kc-totals .cart-total label,
.kc-flyout .kc-totals .cart-total label {
    display: inline;
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    text-transform: none;
}

.kc-page .kc-totals .value-summary,
.kc-flyout .kc-totals .value-summary,
.kc-page .kc-totals .value-summary strong,
.kc-flyout .kc-totals .value-summary strong {
    font-size: inherit;
    font-weight: 500;
}

/* truck + the delivery time */
.kc-delivery-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kc-page .kc-totals .kc-truck,
.kc-flyout .kc-totals .kc-truck {
    color: var(--kc-ink);
}

.kc-page .kc-totals .kc-discount td,
.kc-flyout .kc-totals .kc-discount td,
.kc-page .kc-totals .kc-free,
.kc-flyout .kc-totals .kc-free {
    color: var(--kc-ok);
}

.kc-page .kc-totals .kc-free,
.kc-flyout .kc-totals .kc-free {
    font-weight: 600;
}

.kc-page .kc-totals .cart-total .order-total,
.kc-flyout .kc-totals .cart-total .order-total {
    background: none;
}

.kc-page .kc-totals .cart-total .order-total td,
.kc-flyout .kc-totals .cart-total .order-total td {
    line-height: 1.4;
    padding-top: 12px;
    border-top: 1px solid var(--kc-line);
    font-size: 18px;
    font-weight: 700;
}

.kc-page .kc-totals .cart-total .order-total label,
.kc-flyout .kc-totals .cart-total .order-total label,
.kc-page .kc-totals .cart-total .order-total .value-summary,
.kc-flyout .kc-totals .cart-total .order-total .value-summary,
.kc-page .kc-totals .cart-total .order-total .value-summary strong,
.kc-flyout .kc-totals .cart-total .order-total .value-summary strong {
    font-weight: 700;
}

/* ---------------------------------------------------------------- checkout */

/* centered title, then the "Delivering to … Change" banner */
.kc-page .kc-checkout-header {
    margin: 36px 0 4px;
    text-align: center;
}

.kc-page .kc-checkout-title {
    margin: 0 0 16px;
    color: var(--kc-ink);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.kc-delivering-to {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--kc-panel);
    text-align: start;
}

.kc-delivering-to-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.kc-delivering-to-country {
    color: var(--kc-ink);
    font-size: 15px;
}

.kc-delivering-to-country img {
    margin: 0 4px;
    vertical-align: -2px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.kc-delivering-to-country strong {
    font-weight: 700;
}

.kc-delivering-to-time {
    color: var(--kc-ok);
    font-size: 14px;
    font-weight: 700;
}

.kc-delivering-to .kc-link-button {
    flex: none;
    font-size: 15px;
}

/* checkoutv2.css lays the old form out as a grid of steps */
.kc-checkout-page #billing-form {
    display: block;
}

.kc-form-error {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fdecea;
    color: var(--kc-error);
    font-size: 14px;
}

.kc-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
}

@media all and (min-width: 1024px) {
    .kc-page .kc-checkout-header {
        margin-top: 52px;
    }
    .kc-checkout-grid {
        grid-template-columns: minmax(0, 1fr) 400px;
        gap: 40px;
        align-items: start;
    }
    .kc-checkout-summary {
        position: sticky;
        top: 150px;
        margin-top: 20px;
        padding: 0 20px 20px;
        border: 1px solid var(--kc-line);
        border-radius: var(--kc-radius);
    }
}

.kc-section {
    margin: 22px 0 0;
}

.kc-section-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--kc-ink);
}

.kc-sign-in {
    margin: -6px 0 10px;
    color: var(--kc-muted);
    font-size: 13px;
}

.kc-sign-in a {
    color: var(--kc-brand-dark);
    text-decoration: underline;
}

.kc-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.kc-field {
    min-width: 0;
    margin: 0 0 10px;
}

.kc-page .kc-field input[type="text"],
.kc-page .kc-field input[type="email"],
.kc-page .kc-field input[type="tel"],
.kc-page .kc-field select,
.kc-page .kc-field textarea {
    display: block;
    width: 100%;
    height: var(--kc-field-height);
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--kc-line-strong);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    color: var(--kc-ink);
    font: inherit;
    font-size: 16px;
    text-align: start;
}

.kc-page .kc-field textarea {
    height: auto;
    min-height: 76px;
    padding: 12px 14px;
    resize: vertical;
}

.kc-page .kc-field input::placeholder,
.kc-page .kc-field textarea::placeholder {
    color: #8d867e;
    opacity: 1;
}

.kc-page .kc-field input:focus,
.kc-page .kc-field select:focus,
.kc-page .kc-field textarea:focus,
.kc-phone-box:focus-within {
    border-color: var(--kc-ink);
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 20, 20, .1);
}

/* optional fields look lighter */
.kc-page .kc-optional-fields .kc-field input[type="text"],
.kc-page .kc-optional-fields .kc-field textarea {
    border-style: dashed;
}

.kc-page .kc-invalid input[type="text"],
.kc-page .kc-invalid input[type="email"],
.kc-page .kc-invalid select,
.kc-page .kc-invalid textarea,
.kc-page .kc-invalid .kc-phone-box {
    border-color: var(--kc-error);
}

.kc-field-error {
    display: block;
    margin-top: 4px;
    color: var(--kc-error);
    font-size: 12px;
}

.kc-field-error[hidden] {
    display: none;
}

/* the dialing code is fixed by the country; numbers always read left to right */
.kc-phone-box {
    display: flex;
    align-items: stretch;
    height: var(--kc-field-height);
    border: 1px solid var(--kc-line-strong);
    border-radius: 8px;
    background: #fff;
    direction: ltr;
}

.kc-phone-code {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-right: 1px solid var(--kc-line);
    color: var(--kc-ink);
    font-size: 16px;
}

.kc-page .kc-phone-box input[type="tel"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    border-radius: 0 8px 8px 0;
    box-shadow: none;
    text-align: left;
}

.kc-page .kc-phone-box input[type="tel"]:focus {
    box-shadow: none;
}

html[dir="rtl"] .kc-page .kc-phone-box input[type="tel"]::placeholder {
    text-align: right;
}

.kc-add-optional {
    margin: 0 0 10px;
}

.kc-add-optional[hidden],
.kc-optional-fields[hidden] {
    display: none;
}

.kc-options {
    margin: 0;
    padding: 0;
    border: 0;
}

.kc-options legend {
    margin-bottom: 6px;
    font-size: 14px;
}

.kc-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-end: 16px;
}

/* saved address of a registered customer */
.kc-saved-address {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--kc-line-strong);
    border-radius: 8px;
}

.kc-saved-address-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
}

.kc-saved-address-text span {
    color: var(--kc-muted);
}

/* payment methods as cards */
.kc-payment-methods {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kc-payment-methods > li {
    margin: 0;
    padding: 0;
}

.kc-payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--kc-line-strong);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.kc-payment-method input[type="radio"] {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--kc-ink);
}

.kc-payment-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}

.kc-payment-logo {
    flex: none;
    width: auto;
    max-width: 80px;
    height: 26px;
    object-fit: contain;
}

.kc-payment-method:has(input:checked) {
    border-color: var(--kc-ink);
    box-shadow: inset 0 0 0 1px var(--kc-ink);
}

.kc-payment-method:focus-within {
    outline: 2px solid var(--kc-ink);
    outline-offset: 2px;
}

/* order summary column */
.kc-order-review .kc-totals {
    margin-top: 12px;
}

/* checkoutv2.css sets this button to 95% with !important */
.kc-page .kc-pay-button.payment-method-next-step-button {
    width: 100% !important;
}

/* Apple Pay: the plugins hide the pay button and put theirs in its place (MyFatoorah: "Continue", then its Apple Pay
   button in #checkout; KNET: the Apple Pay button). In the flow, not on top of the line below, and sized like it */
.kc-page .checkout-buttons #checkout-two-step-apple-pay {
    position: static;
    width: 100%;
}

.kc-page .checkout-buttons #nextApplePay.payment-method-next-step-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 52px;
    margin: 0;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--kc-ink);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.kc-page .checkout-buttons #checkout,
.kc-page .checkout-buttons #checkout-nbk-apple-pay {
    width: 100%;
}

.kc-page .checkout-buttons #checkout-nbk-apple-pay .apple-pay-button {
    width: 100%;
    height: 52px;
    border-radius: 8px;
}

.kc-checkout-summary .checkout-buttons {
    margin: 16px 0 0;
    padding: 0;
    text-align: center;
}

@media all and (max-width: 1023px) {
    .kc-checkout-summary {
        margin-top: 4px;
    }
}

/* ---------------------------------------------------------------- flyout cart */

/* phones: the whole width, below the site's own header (the script sets the exact top; the cart icon opens and closes it);
   wider screens: a 440px panel with an X. Still opened and closed by .activeState */
.flyout-cart.kc-flyout {
    width: 100vw;
    right: -100vw;
    box-shadow: none;
    /* the theme animates every property; only the slide and the fade here, not the measured top */
    transition: right .3s ease, opacity .3s ease;
}

@media all and (max-width: 767px) {
    .flyout-cart.kc-flyout {
        top: 120px;
        border-top: 1px solid var(--kc-line);
    }
    .flyout-cart.kc-flyout button[type="button"].cart-close {
        display: none;
    }
}

.flyout-cart.kc-flyout.activeState {
    right: 0;
}

/* the arrow under the cart icon; on phones the panel is the whole screen, so no dimmed backdrop beside it */
.flyout-cart.kc-flyout::after,
.flyout-cart.kc-flyout .bg-opacity {
    display: none;
}

@media all and (min-width: 768px) {
    .flyout-cart.kc-flyout {
        width: 440px;
        right: -460px;
        box-shadow: -10px 0 24px rgba(20, 20, 20, .12);
    }
    .flyout-cart.kc-flyout .bg-opacity {
        display: block;
        right: 440px;
    }
}

/* title row, items (scrolling) and summary stacked */
.flyout-cart.kc-flyout .fly-cart-frame {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    color: var(--kc-ink);
    text-align: start;
}

/* "Your cart (n)", the country picker and the X, like the cart page's title row */
.flyout-cart.kc-flyout .kc-flyout-header {
    flex: none;
    margin: 0;
    padding: 18px 16px 8px;
}

.flyout-cart.kc-flyout .kc-cart-title {
    flex: 1 1 auto;
    min-width: 0;
}

.flyout-cart.kc-flyout .kc-cart-title a {
    color: inherit;
    text-decoration: none;
}

/* the theme's 1024.css gives every flyout button the full width, no padding, 12px text and a transparent background */
@media all and (min-width: 1024px) {
    .flyout-cart.kc-flyout button[type="button"].country-switch-button {
        width: auto;
        height: 42px;
        margin: 0;
        padding: 0 14px;
        font-size: 14px;
        background-color: #fff !important;
        color: var(--kc-ink) !important;
    }
}

/* black X instead of the red image, after the picker */
.flyout-cart.kc-flyout button[type="button"].cart-close {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    flex: none;
    width: 40px;
    height: 40px;
    margin: 0;
    margin-inline-end: -8px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none !important;
    transform: none;
    cursor: pointer;
}

.flyout-cart.kc-flyout .cart-close::before,
.flyout-cart.kc-flyout .cart-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--kc-ink);
}

.flyout-cart.kc-flyout .cart-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.flyout-cart.kc-flyout .cart-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.flyout-cart.kc-flyout .mini-shopping-cart {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 16px 0;
}

.flyout-cart.kc-flyout .count {
    margin: 12px 0 0;
    color: var(--kc-muted);
    font-size: 13px;
}

.flyout-cart.kc-flyout .count a {
    color: var(--kc-ink);
    text-decoration: underline;
}

.flyout-cart.kc-flyout .kc-items {
    margin: 0;
}

/* the theme floats the picture and absolutely positions its image (over the quantity buttons) */
.flyout-cart.kc-flyout .mini-shopping-cart .item.kc-item {
    grid-template-columns: 80px minmax(0, 1fr) auto;
    overflow: visible;
    margin: 0;
    padding: 16px 0;
    line-height: normal;
}

.flyout-cart.kc-flyout .mini-shopping-cart .picture {
    float: none;
    width: auto;
}

.flyout-cart.kc-flyout .mini-shopping-cart .picture img {
    position: static;
    width: 80px;
    height: 80px;
    max-width: none;
    margin: 0;
}

.flyout-cart.kc-flyout .mini-shopping-cart .picture + .product,
.flyout-cart.kc-flyout .mini-shopping-cart .product {
    margin: 0;
}

/* the theme's flyout buttons are full-width black-on-transparent; these are the small ones */
.flyout-cart.kc-flyout button[type="button"].kc-stepper-button {
    width: 36px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none !important;
    color: var(--kc-ink) !important;
    font-size: 18px;
    line-height: 1;
}

.flyout-cart.kc-flyout button[type="button"].kc-item-remove {
    position: static;
    width: 32px;
    height: 32px;
    margin: -6px -6px auto 0;
    margin-inline: 0 -6px;
    padding: 0;
    border: 0;
    background: none !important;
    color: var(--kc-muted) !important;
}

.flyout-cart.kc-flyout button[type="button"].kc-item-remove:hover {
    color: var(--kc-ink) !important;
    background: var(--kc-panel) !important;
}

.flyout-cart.kc-flyout .kc-stepper {
    margin-top: 10px;
}

/* free delivery, the code and the totals scroll with the items, under them */
.flyout-cart.kc-flyout .kc-flyout-details {
    padding: 16px 0;
}

/* the total and the checkout button always stay at the bottom */
.flyout-cart.kc-flyout .totals.kc-flyout-summary {
    position: static;
    flex: none;
    margin: 0;
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--kc-line);
    background: #fff;
    box-shadow: 0 -6px 18px rgba(20, 20, 20, .06);
    text-align: start;
}

.flyout-cart.kc-flyout .kc-free-delivery {
    margin-bottom: 14px;
}

.flyout-cart.kc-flyout .coupon-box {
    height: auto;
}

.flyout-cart.kc-flyout .kc-code-row input[type="text"] {
    flex: 1;
    width: auto;
    height: 44px;
    margin: 0;
    font-size: 16px;
}

.flyout-cart.kc-flyout .kc-code-row input[type="submit"] {
    flex: none;
    width: auto;
    margin: 0;
}

.flyout-cart.kc-flyout .buttons {
    margin: 0;
}

.flyout-cart.kc-flyout .buttons .button-1.kc-primary-button {
    margin: 0;
    background-color: var(--kc-ink) !important;
    color: #fff !important;
    font-size: 16px;
}

/* the theme turns the checkout button white on hover */
.flyout-cart.kc-flyout button[type="button"].checkout-button:hover {
    background-color: #000 !important;
    color: #fff !important;
}
