html,
body {
    height: 100%;
    margin: 0;
    color: #212529;
    background: #f5f6f8;
    font-family: Arial, Helvetica, sans-serif;
}

button,
input,
textarea {
    font-family: inherit;
}

#app,
.page {
    min-height: 100vh;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    padding: 0.6rem 1.25rem 0.7rem;
    background: #fff3cd;
    border-top: 1px solid #ffeeba;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    cursor: pointer;
}

.web-order-touch {
    height: 100vh;
    overflow: hidden;
}

.web-order-body {
    min-height: 0;
    display: grid;
    overflow: hidden;
}

.web-order-body > .rz-alert {
    margin: 8px;
}

.web-order-site-picker {
    overflow: auto;
    padding: 18px;
}

.web-order-server-unavailable {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
}

.web-order-server-unavailable .rz-text-h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
}

.web-order-server-unavailable .rz-text-body1 {
    margin: 0;
    color: #5f6873;
}

.web-order-site-heading .rz-text-h1 {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 800;
}

.web-order-site-heading,
.web-order-site-heading .rz-text-h1 {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.site-card {
    min-height: 118px;
    justify-content: center !important;
    gap: 10px;
    border: 1px solid #d7dbe0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(33, 37, 41, 0.08);
}

.site-card:hover {
    background: #eef0f2 !important;
}

.site-card .rz-icon {
    color: #e24a4a;
    font-size: 28px;
}

.site-card .rz-button-text {
    font-size: 18px;
    font-weight: 800;
    color: #212529;
}

.web-order-main {
    min-height: 0;
    height: 100%;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 430px;
    overflow: hidden;
}

.web-order-products {
    min-width: 0;
    min-height: 0;
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr);
    padding: 8px;
    overflow: hidden;
}

.web-order-product-toolbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 4px;
}

.web-order-loader {
    display: grid !important;
    align-items: center;
    min-height: 120px;
}

.web-order-load-card {
    min-height: 250px;
    display: grid !important;
    place-items: center;
    align-content: center;
    gap: 6px;
    border: 1px solid #d7dbe0;
    border-radius: 4px;
    background: #fff;
    color: #212529;
    font-weight: 800;
    cursor: pointer;
}

.web-order-load-card:hover:not(:disabled) {
    background: #eef0f2;
}

.web-order-customer-fields {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.tyro-pay-form {
    min-height: 0;
    width: 100%;
    margin-top: 10px;
}

.barqix-tyro-3ds-host {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    display: grid !important;
    place-items: center !important;
    background: rgba(0, 0, 0, 0.42) !important;
}

.barqix-tyro-3ds-frame {
    position: relative !important;
    z-index: 2147483647 !important;
    width: min(440px, calc(100vw - 32px)) !important;
    height: min(600px, calc(100vh - 32px)) !important;
    border: 0 !important;
    background: #fff !important;
    display: block !important;
}

.configure-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: rgba(33, 37, 41, 0.42);
    padding: 16px;
}

.configure-panel {
    width: min(560px, 100%);
    max-height: min(760px, calc(100vh - 32px));
    overflow: auto;
    display: grid;
    gap: 14px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #d7dbe0;
    padding: 16px;
    box-shadow: 0 18px 48px rgba(33, 37, 41, 0.24);
}

.configure-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.configure-header .rz-text-h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
}

.configure-price {
    font-weight: 800;
}

.configure-field,
.topping-group {
    display: grid;
    gap: 8px;
}

.configure-field .rz-text-body2,
.topping-heading__name {
    font-weight: 800;
}

.topping-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.topping-heading__rule {
    color: #6c757d;
}

.topping-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e5e8;
    border-radius: 4px;
    padding: 8px;
}

.topping-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #212529;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.topping-name .rz-text-caption {
    font-weight: 800;
}

@media (max-width: 1199px) {
    .web-order-touch {
        height: 100vh;
        overflow: hidden;
    }

    .web-order-body {
        overflow: hidden;
    }

    .web-order-main {
        grid-template-columns: 1fr !important;
        overflow: hidden;
    }

    .web-order-products {
        overflow: hidden;
        padding: 4px;
    }

    .bq-cart-panel {
        border-left: 0;
        border-top: 1px solid #d7dbe0;
    }

    .configure-backdrop {
        align-items: end;
        padding: 0;
    }

    .configure-panel {
        width: 100%;
        max-height: 86vh;
        border-radius: 4px 4px 0 0;
    }
}

@media (max-width: 480px) {
    .web-order-site-heading .rz-text-h1 {
        font-size: 22px !important;
    }

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

    .site-card {
        min-height: 90px;
    }

    .site-card .rz-button-text {
        font-size: 16px;
    }

    .configure-header .rz-text-h2 {
        font-size: 18px;
    }

    .configure-panel {
        padding: 10px;
        gap: 8px;
    }

    .web-order-load-card {
        min-height: 180px;
    }

    .web-order-load-card .rz-text-h3 {
        font-size: 18px;
    }
}
