/*
 * OE_SHARED_MENU_KIOSK_V1
 *
 * Presentation-only kiosk mode.
 * Activated only when body receives .oe-shared-kiosk-mode.
 *
 * Normal website is unaffected.
 */

html.oe-shared-kiosk-mode,
body.oe-shared-kiosk-mode {
    overscroll-behavior: none;
}

body.oe-shared-kiosk-mode {
    padding-top: 54px !important;
    background: #f6f7f9;
}


/* ---------------------------------------------------------
   Fixed kiosk identity bar
   --------------------------------------------------------- */

#oe-shared-kiosk-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: 54px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 22px;

    background: #111827;
    color: #fff;

    z-index: 999999;

    box-shadow:
        0 2px 12px
        rgba(0,0,0,.18);

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

#oe-shared-kiosk-bar .oe-kiosk-title {
    font-size: 18px;
    font-weight: 700;
}

#oe-shared-kiosk-bar .oe-kiosk-mode {
    display: inline-flex;
    align-items: center;

    padding: 6px 12px;

    border-radius: 999px;

    background: #fff;
    color: #111827;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}


/* ---------------------------------------------------------
   Remove website/account actions inappropriate for kiosk
   --------------------------------------------------------- */

body.oe-shared-kiosk-mode .btn-open-login,
body.oe-shared-kiosk-mode .btn-open-signup,
body.oe-shared-kiosk-mode .btn-tech-support {
    display: none !important;
}


/*
 * Hide only options explicitly marked by the kiosk adapter.
 * We don't globally hide all Pickup/Delivery content because
 * that could interfere with product/category content.
 */
body.oe-shared-kiosk-mode .oe-kiosk-hidden-option {
    display: none !important;
}


/* ---------------------------------------------------------
   Dine-in enforcement
   --------------------------------------------------------- */

body.oe-shared-kiosk-mode .delivery_section {
    display: none !important;
}

body.oe-shared-kiosk-mode .dinein_section {
    display: block !important;
}


/* ---------------------------------------------------------
   Touch-friendly controls
   --------------------------------------------------------- */

body.oe-shared-kiosk-mode button,
body.oe-shared-kiosk-mode .btn,
body.oe-shared-kiosk-mode input[type="button"],
body.oe-shared-kiosk-mode input[type="submit"] {
    min-height: 48px;
}

body.oe-shared-kiosk-mode input,
body.oe-shared-kiosk-mode select,
body.oe-shared-kiosk-mode textarea {
    font-size: 16px;
}

body.oe-shared-kiosk-mode .view-cart,
body.oe-shared-kiosk-mode .view-cart-scroll,
body.oe-shared-kiosk-mode .cart_mobile_handle {
    transform: scale(1.04);
    transform-origin: center;
}


/* ---------------------------------------------------------
   Payment gate
   --------------------------------------------------------- */

#oe-kiosk-payment-gate {
    position: fixed;

    inset: 0;

    z-index: 1000000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        rgba(17,24,39,.72);

    backdrop-filter:
        blur(5px);
}

#oe-kiosk-payment-gate.is-open {
    display: flex;
}

#oe-kiosk-payment-gate .oe-kiosk-payment-card {
    width: min(520px, 94vw);

    padding: 34px;

    border-radius: 22px;

    background: #fff;

    box-shadow:
        0 24px 80px
        rgba(0,0,0,.28);

    text-align: center;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

#oe-kiosk-payment-gate h2 {
    margin: 0 0 12px;

    font-size: 30px;
    font-weight: 800;

    color: #111827;
}

#oe-kiosk-payment-gate .oe-kiosk-total-label {
    margin-top: 24px;

    font-size: 14px;
    color: #667085;

    text-transform: uppercase;
    letter-spacing: .06em;
}

#oe-kiosk-payment-gate .oe-kiosk-total {
    margin: 6px 0 24px;

    font-size: 40px;
    line-height: 1;

    font-weight: 800;
    color: #111827;
}

#oe-kiosk-payment-gate .oe-kiosk-pay-button {
    width: 100%;

    min-height: 64px;

    border: 0;
    border-radius: 14px;

    background: #111827;
    color: #fff;

    font-size: 20px;
    font-weight: 800;

    cursor: default;
}

#oe-kiosk-payment-gate .oe-kiosk-pay-note {
    margin: 16px 0 0;

    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}

#oe-kiosk-payment-gate .oe-kiosk-back {
    margin-top: 18px;

    border: 0;
    background: transparent;

    color: #344054;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}


@media (min-width: 900px) {

    body.oe-shared-kiosk-mode {
        font-size: 16px;
    }

    body.oe-shared-kiosk-mode .btn {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* OE_SHARED_MENU_KIOSK_V1_1 */

html.oe-shared-kiosk-preboot #global-modal,
html.oe-shared-kiosk-preboot .modal-backdrop,
body.oe-shared-kiosk-mode #global-modal.oe-kiosk-order-option-modal {
    display:none !important;
}

body.oe-shared-kiosk-mode .btn-open-login,
body.oe-shared-kiosk-mode .btn-open-signup,
body.oe-shared-kiosk-mode .btn-tech-support {
    display:none !important;
}

/*
 * The kiosk uses the normal menu/header/catalogue but does not
 * expose the customer's normal order-type switcher.
 */
body.oe-shared-kiosk-mode .oe-kiosk-order-type-control {
    display:none !important;
}

/*
 * OE_SHARED_MENU_KIOSK_V1_2
 *
 * Dine In kiosk must never show delivery ETA/fee remnants.
 */

body.oe-shared-kiosk-mode .shipday_eta_info,
body.oe-shared-kiosk-mode .delivery-fee-wrap {
    display:none !important;
}

body.oe-shared-kiosk-mode .service-option {
    cursor:default !important;
}


/* OE_SHARED_MENU_KIOSK_V1_3_2 */

/*
 * Fixed kiosk order type: no customer order-type switching.
 */
body.oe-shared-kiosk-mode .pickup-fee-wrap,
body.oe-shared-kiosk-mode .address_info.client_address {
    display:none !important;
}

/*
 * OE_SHARED_MENU_KIOSK_V1_3_3
 *
 * Do not override category display/layout here.
 * Theme-KN controls the responsive categories/items/cart grid.
 */


/* OE_SHARED_MENU_KIOSK_V1_3_6 */

/*
 * Kiosk is permanently Dine In + ASAP.
 * Do not show the normal clickable Select Time / Dine In • ASAP
 * control in the header.
 *
 * Cart/order summary can still show Dine In / ASAP for confirmation.
 */
body.oe-shared-kiosk-mode
.top-nav-bar-widget
.service-option,

body.oe-shared-kiosk-mode
.top-nav-bar-widget
.oe-time-chip {
    display:none !important;
}


/* ============================================================
   OE_SHARED_MENU_KIOSK_ORIGINAL_CUSTOMER_V1
   ============================================================ */

#oe-kiosk-original-customer-gate {
    position: fixed;
    inset: 0;
    z-index: 2147483000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 18px;

    background: rgba(15,23,42,.72);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

#oe-kiosk-original-customer-gate.is-open {
    display: flex;
}

.oe-kiosk-original-card {
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 36px);

    overflow-y: auto;

    box-sizing: border-box;

    padding: 27px;

    border-radius: 22px;

    background: #fff;

    color: #101828;

    box-shadow:
        0 24px 70px rgba(15,23,42,.32);
}

.oe-kiosk-original-head {
    margin-bottom: 19px;

    text-align: center;
}

.oe-kiosk-original-head h2 {
    margin: 0 0 7px;

    font-size: 25px;
    line-height: 1.15;
    font-weight: 900;
}

.oe-kiosk-original-head p {
    margin: 0 auto;

    max-width: 355px;

    color: #667085;

    font-size: 13px;
    line-height: 1.45;
}

.oe-kiosk-original-card label {
    display: block;

    margin: 13px 0 6px;

    color: #344054;

    font-size: 13px;
    font-weight: 800;
}

.oe-kiosk-original-card input {
    width: 100%;
    min-height: 53px;

    box-sizing: border-box;

    padding: 11px 14px;

    border: 1px solid #d0d5dd;
    border-radius: 12px;

    background: #fff;

    color: #101828;

    font-size: 17px;
    font-weight: 700;

    outline: none;
}

.oe-kiosk-original-card input:focus {
    border-color: #344054;

    box-shadow:
        0 0 0 3px rgba(52,64,84,.10);
}

.oe-kiosk-original-primary,
.oe-kiosk-original-secondary {
    position: relative;

    display: flex;

    width: 100%;
    min-height: 54px;

    box-sizing: border-box;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    margin-top: 13px;
    padding: 10px 14px;

    border-radius: 13px;

    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;

    cursor: pointer;
}

.oe-kiosk-original-primary {
    border: 0;

    background: #101828;

    color: #fff;
}

.oe-kiosk-original-secondary {
    border: 1px solid #d0d5dd;

    background: #fff;

    color: #344054;
}

.oe-kiosk-original-primary span,
.oe-kiosk-original-secondary span {
    display: block;

    margin-top: 3px;

    font-size: 11px;
    font-weight: 600;

    opacity: .75;
}

.oe-kiosk-original-primary:disabled,
.oe-kiosk-original-secondary:disabled {
    opacity: .55;

    cursor: wait;
}

.oe-kiosk-original-link {
    display: block;

    margin: 14px auto 0;
    padding: 8px 10px;

    border: 0;

    background: transparent;

    color: #475467;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
}

.oe-kiosk-original-error {
    margin: 0 0 14px;
    padding: 11px 12px;

    border-radius: 10px;

    background: #fef3f2;

    color: #b42318;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.oe-kiosk-original-code {
    text-align: center;

    font-size: 30px !important;
    letter-spacing: 9px;
}

.oe-kiosk-original-success {
    display: flex;

    flex-direction: column;
    align-items: center;

    gap: 7px;

    margin: 8px 0 12px;
    padding: 21px;

    border: 1px solid #abefc6;
    border-radius: 14px;

    background: #ecfdf3;
}

.oe-kiosk-original-success-icon {
    display: flex;

    width: 46px;
    height: 46px;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #12b76a;

    color: #fff;

    font-size: 25px;
    font-weight: 900;
}

.oe-kiosk-original-success strong {
    font-size: 19px;
}


@media (max-width:600px) {

    #oe-kiosk-original-customer-gate {
        padding: 10px;
    }

    .oe-kiosk-original-card {
        max-height: calc(100vh - 20px);

        padding: 21px 17px;

        border-radius: 18px;
    }

    .oe-kiosk-original-head h2 {
        font-size: 22px;
    }
}

