﻿/*#0275d8;*/
/*#0275d8;*/
/*#0275d8;*/
/*=============================================*/
/* Inzzii definitions                          */
/*=============================================*/
/* main part of the screen where we want to keep an empty space left and right */
:root {
    color-scheme: dark;
    --main-color: var(--shop-primary,#ff7200);
    --main-color-darker: var(--shop-primary-darker,#f26d00);
    --main-color-lighter: var(--shop-primary-lighter,#ff7a0d);
    --main-color-border: var(--shop-primary-border,#e6670a);
    --warning-color: var(--shop-warning,#ff9844); /* matches the dark preset in Lib.Themes */
    /* no tenant token: the theme engine emits --shop-warning but has no error color */
    --error-color: var(--shop-error,#f07178);
    --default-font-family: "Bahnschrift", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}
.k-card {
    background-color: #2b2b2b;
}

/* Telerik's warning card ships light-theme text colors, which are unreadable
   on the dark surface. Applies to both warning cards on the checkout page. */
.k-card.k-card-warning,
.k-card.k-card-warning .k-card-title,
.k-card.k-card-warning .k-card-body {
    color: #fff;
}

.form-control,
.form-control:focus {
    color: #f1f1f1;
    background-color: #2b2b2b !important;
    border-color: #495057;
}

    .form-control::placeholder {
        color: #a8a8a8;
    }

.k-input-solid {
    background-color: #2b2b2b;
    color: #f1f1f1;
    border-color: #495057;
}

.i-main-container {
    max-width: var(--shop-webshop-max-width, 1280px);
    margin: auto;
    /*padding: 10px;*/
}

.i-color-body, .i-color-body:focus, .i-color-body:hover {
    color: var(--shop-font-color, #ffffff);
    background-color: var(--shop-surface, #1e1e1e);
}

.i-color-secondary {
    color: #ffffff;
    background-color: #444444;
}

.i-color-info {
    color: var(--main-color);
}

.i-color-info-background {
    background-color: var(--main-color);
}

.i-anchor, .i-anchor:hover {
    color: var(--main-color) !important;
    text-decoration: none;
    cursor: pointer;
}

.i-info-text {
    font-size: 1.6rem;
}

.i-dept-anchor {
    color: #ffffff;
    text-decoration: none;
}

    .i-dept-anchor > div {
        border-color: #ffffff;
    }

    .i-dept-anchor:hover {
        color: var(--main-color-darker);
        text-decoration: none;
    }

.i-gradient::after { /* Used for plu long description*/
    background: linear-gradient(to right, rgba(30, 30, 30, 0), #1e1e1e 90%);
}

.i-red-button {
    background-color: red;
}

.i-border-radius {
    border-radius: var(--shop-border-radius, 0.5rem);
}

.i-border-color {
    border-block-color: #444444;
}

.i-dialog-body-wrapper {
    padding: 10px;
}

/* new */
.i-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    padding: 10px;
}

    .i-grid-layout > div {
        width: 100%;
        aspect-ratio: 4/3;
    }

@media only screen and (max-width: 600px) {
    .i-grid-layout {
        /*grid-template-columns: auto;*/
    }
}
/* old */
.i-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

@media (min-width: 650px) {
    .i-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    }
}

.i-card {
    border-radius: var(--shop-border-radius, 0.5rem);
    /*padding: 5px;*/
    margin: 5px;
    cursor: pointer;
    border-style: solid;
    border-width: 1px;
    border-color: #444444;
}

    .i-card:hover {
        border-style: solid;
        border-color: var(--main-color-border);
    }

.i-card-selected {
    border: solid;
    border-width: 2px !important;
    border-color: var(--main-color-border) !important;
}

.i-series-a {
    color: #0275d8;
}

.i-series-b {
    color: #ffd246;
}

.i-base-bg {
    background-color: #212529;
}

.i-hr {
    width: 100%;
    border-top: 1px solid #444444;
}

/*=============================================*/
/* Styles not used on Blazor components        */
/*=============================================*/
* {
    touch-action: pan-x pan-y;
}

.noclick {
    pointer-events: none;
}

body {
    /*height: 100vh;*/
    /* Legacy order pages have no boxed frame, so the body IS the page —
       always the page background, never the gutter token (--shop-body-bg). */
    background-color: var(--shop-bg, #1e1e1e);
    color: var(--shop-font-color, #e6e8eb);
    overflow-x: hidden;
}

html, body {
    font-family: var(--shop-font-family, var(--default-font-family));
    font-size: var(--shop-font-size, 16px);
    /*font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif !important;*/
}

.validation-message {
    color: #d9534f;
}

#blazor-error-ui {
    background-color: #1e1e1e;
    color: #ffffff;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.my-reconnect-modal > div {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3000;
    overflow: hidden;
    background-color: #1e1e1e;
    color: #ffffff;
    opacity: 0.8;
    text-align: center;
    font-weight: bold;
    padding: 20px;
    padding-top: 40vh;
}

.my-reconnect-modal button {
    height: 80px;
    width: 160px;
}

.components-reconnect-hide > div {
    display: none;
}

.components-reconnect-show > div {
    display: none;
}

.components-reconnect-show > .show {
    display: block;
}

.components-reconnect-failed > div {
    display: none;
}

.components-reconnect-failed > .failed {
    display: block;
}

.components-reconnect-rejected > div {
    display: none;
}

.components-reconnect-rejected > .rejected {
    display: block;
}

/*=============================================*/
/* Remove focus from as many as possible       */
/* Telerik controls. More to add?              */
/*=============================================*/
/*
    button:focus, input[type=checkbox]:focus {
    box-shadow: none !important;
}

    [class$="-state-focused"], [class$="-state-active"], .k-input:focus-within {
    border-color: inherit !important;
    box-shadow: none !important;
}
*/
/*=============================================*/
/* Continue from here cleaning up...           */
/*=============================================*/
.order-contents {
    background-color: #1e1e1e;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    padding: 10px;
    font-size: 1.2rem;
}

    .order-contents h2 {
        color: var(--main-color-darker);
        text-align: center;
        font-size: 1.6rem;
        padding-bottom: 20px;
    }

    .order-contents .subtotal {
        position: relative;
        display: flex;
        flex-direction: row;
    }

        .order-contents .subtotal .text {
            text-align: left;
        }

        .order-contents .subtotal .amount {
            flex: 1;
            text-align: right;
        }

        .order-contents .subtotal .amount-padding {
            padding-right: 30px;
        }

    .order-contents hr {
        margin-top: 1rem;
        margin-bottom: 1rem;
        background-color: #ffffff;
    }

/*=============================================*/
/* Cart.razor                                  */
/*=============================================*/
.close-cart {
    position: fixed;
    right: 5px;
    top: 45px;
}

    .close-cart > span {
        font-size: xx-large;
    }

/*=============================================*/
/* OrderItemCard.razor                         */
/*=============================================*/
.cart-item {
    position: relative;
    display: flex;
    flex-direction: row;
}

    .cart-item .quantity {
        padding: 0 5px 0 0;
        width: 40px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .cart-item .title {
        min-height: 25px;
        overflow-wrap: anywhere;
        padding-inline-end: 5px;
    }


    .cart-item .item-price {
        height: 25px;
        flex: 1;
        flex-shrink: 0;
        white-space: nowrap;
        text-align: right;
    }

    .cart-item .delete-button {
        padding: 5px;
    }

.item-condiments {
    padding-left: 40px;
}

    .item-condiments ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }

    .item-condiments li {
        margin-left: 0rem;
    }

/*=============================================*/
/* Checkout.razor                              */
/*=============================================*/
.card {
    border: none;
    height: 100%;
    overflow-y: auto;
    padding-bottom: 80px;
    background-color: #1e1e1e;
}

.paymentmethod-cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0;
    padding: 0 0 10px 0;
}

    .paymentmethod-cards > li {
        list-style-type: none;
    }

/*=============================================*/
/* PaymentMethodCard.razor                        */
/*=============================================*/
.paymentmethod-info {
    padding: 5px;
    cursor: pointer;
    line-height: 1.25rem;
    text-align: center;
}

.paymentmethod-info-active {
    border: solid;
    border-radius: var(--shop-border-radius, 0.5rem);
    border-color: var(--main-color-border);
}

.paymentmethod-info .logo {
    clear: both;
}

    .paymentmethod-info .logo > img {
        height: 75px;
        width: auto;
        border-radius: var(--shop-border-radius, 0.5rem);
        background-color: white;
    }

.paymentmethod-info .title {
    clear: both;
    text-align: center;
}

/*=============================================*/
/* PaymentSwish.razor                          */
/*=============================================*/
.swish-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80dvh;
    width: 100%;
}

    .swish-wrapper .qr-box {
        width: 400px;
        height: 400px;
        padding: 10px;
    }

        .swish-wrapper .qr-box svg {
            margin: 10px 0 10px 0;
        }

        .swish-wrapper .qr-box div {
            font-size: 24px;
            text-align: center;
        }

        .swish-wrapper .qr-box button {
            width: 100%;
            margin-bottom: 10px;
        }

        .swish-wrapper .qr-box span {
            margin-bottom: 10px;
            width: 100%;
        }

        .swish-wrapper .qr-box input {
            width: 100%;
            font-size: 24px;
            text-align: center;
            margin-bottom: 10px;
        }

/*=============================================*/
/* ViewOrder.razor                             */
/*=============================================*/
.view-order-status {
    border-radius: var(--shop-border-radius, 0.5rem);
    /*padding: 5px;*/
    margin: 5px;
    cursor: pointer;
    border-style: solid;
    border-width: 1px;
    border-color: #444444;
    background: #444444;
    align-items: center;
    font-size: 1.4rem;
}

.view-order-number {
    border-radius: var(--shop-border-radius, 0.5rem);
    /*padding: 5px;*/
    margin: 5px;
    cursor: pointer;
    border-style: solid;
    border-width: 1px;
    border-color: #444444;
    background: #444444;
    align-items: center;
    font-size: 1.2rem;
}

    .view-order-number .view-order-ordernumber {
        font-size: 4.8rem;
    }

.button-container > button {
    margin: 10px 5px 10px 5px !important;
}

/*=============================================*/
/* Dialogs                                     */
/* ToDo: re-factor all dialogs to use this CSS  */
/*=============================================*/
.dialog-body {
    background-color: var(--shop-surface, #1e1e1e);
}

.dialog-body-message {
    text-align: center;
    font-size: 1.2rem;
    padding: 1rem;
}

/*=============================================*/
/* Center message used on several places       */
/* for example "not allowed to go back" msg.   */
/*=============================================*/
.messagebox {
    width: 100%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/*=============================================*/
/* Styles used by CSS isolated components      */
/*=============================================*/
.filter-invert {
    filter: invert(100%);
}

.color-info {
    color: var(--main-color);
}

.color-component {
    color: #ffffff;
    background-color: #111111;
}

/*=============================================*/
/* Media queries                               */
/*=============================================*/
@media (max-width: 991.98px) {
    .large-only {
        display: none;
    }

    .plu-list {
        padding-bottom: 80px; /* keep some space for order-state */
    }

        .plu-list .push {
            height: calc(100vh - 335px);
        }

    .plu-info {
        grid-template-columns: 1fr 75px;
        min-height: 75px;
    }

        .plu-info img {
            height: 75px;
            max-width: 75px;
        }

    .order-contents {
        padding-bottom: 60px; /* keep some space for order-state */
    }

    .card-body, .dialog-title, .dialog-buttons, .dialog-quantity {
        padding: 0.5rem;
    }

    .card-body {
        overflow-y: auto;
    }

    .form-group {
        margin-bottom: 0.5rem;
    }

        .form-group label {
            margin-bottom: 0.2rem;
        }

    .dialog {
        /* height:100%; */
        max-height: 100%;
        max-width: 100%;
    }

    .dialog-condiments {
        /*    padding: 1rem;*/
    }

    .inzzii-brand, .inzzii-brand:focus, .inzzii-brand:hover {
        font-size: inherit;
    }
}

@media (min-width: 992px) {
    /*.padding-container,*/
    /*.department-list,*/
    /*.plu-list,*/
    .order-history-list {
        padding-right: 400px;
    }

    .plu-list .push {
        height: calc(100vh - 310px);
    }
    /*    .checkout-card {
          padding-right: 420px
      }
  */
    .order-state {
        /*display: none;*/
    }
    /*    .dialog {
      max-height: calc(100% - 3rem);
  }*/
}

.blink {
    animation: blink-animation 1s steps(5, start) infinite;
    -webkit-animation: blink-animation 1s steps(5, start) infinite;
}

.strikethrough {
    text-decoration: line-through;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

@-webkit-keyframes blink-animation {
    to {
        visibility: hidden;
    }
}
/*====================================*/
/* Remove the vertical grid scrollbar */
/*====================================*/
.grid-no-scroll .k-grid-content {
    overflow-y: auto;
}

.grid-no-scroll .k-grid-header,
.grid-no-scroll .k-grid-footer {
    padding-right: 0; /* version 2.26 and older requires !important here */
}

.grid-no-scroll .k-grid-header-wrap,
.grid-no-scroll .k-grid-footer-wrap {
    border-right-width: 0;
}

/*========================*/
/* Remove the grid header */
/*========================*/
.grid-no-headers .k-grid-header {
    display: none;
}

/*============================================================================*/
/* Those currently do not work using css isolation so put them in common scss */
/*============================================================================*/
.k-timepicker {
    margin-right: 5px;
}

.k-notification-group {
    top: 40px !important;
    right: 10px !important;
    z-index: 5000;
}

.k-master-row:hover {
    color: #ffffff !important;
    background-color: #444444 !important;
    cursor: pointer !important;
}

.k-window {
    max-width: 1000px !important;
}

/* Override list-view (for EAN numbers) */
.k-listview {
    border-style: none !important;
}

    .k-listview .list-content {
        display: flex;
        flex-direction: row;
        padding-top: 5px;
        padding-bottom: 5px;
    }

        .k-listview .list-content button {
            margin-left: 5px;
        }

    .k-listview .k-listview-header, .k-listview .k-listview-footer {
        border-style: none !important;
    }

.k-form-horizontal .k-form-field > .k-form-label {
    width: 35%;
}

.DepartmentEntryLimit {
    display: inline-flex !important;
    width: 150px !important;
    margin-right: 10px;
}

    .DepartmentEntryLimit input {
        text-align: right;
    }

.k-tilelayout {
    background-color: inherit !important;
}

.k-switch-label-on, .k-switch-label-off {
    display: inline;
}

.k-switch-label-on {
    left: 7px;
    /*color: #ffffff;*/
}

.k-switch-label-off {
    right: 7px;
    /*color: #424242;*/
}

/* form on dialog (for example used on article edit) */
.dialog .k-form {
    padding: 0.8rem;
    overflow-y: auto;
}

.k-drawer-wrapper {
    scrollbar-color: unset !important;
}

.k-button-solid-base.k-selected {
    border-color: var(--main-color-border); /* darker orange for selected border */
    color: white;
    background-color: var(--main-color-darker); /* slightly darker orange for selected background */
}

.k-button-solid-primary {
    border-color: var(--main-color); /* your chosen orange */
    color: white;
    background-color: var(--main-color); /* your chosen orange */
}

    .k-button-solid-primary:hover, .k-button-solid-primary.k-hover {
        border-color: var(--main-color-darker); /* slightly darker for hover border */
        background-color: var(--main-color-lighter); /* slightly lighter/brighter for hover background */
    }

    .k-button-solid-primary:focus, .k-button-solid-primary.k-focus {
        box-shadow: 0 0 0px 0.25rem rgba(255, 114, 0, 0.5); /* orange with 50% opacity */
    }

    .k-button-solid-primary:active, .k-button-solid-primary.k-active {
        border-color: var(--main-color-border); /* darker orange for active border */
        background-color: var(--main-color-darker); /* darker orange for active background */
    }

    .k-button-solid-primary.k-selected {
        border-color: var(--main-color-border); /* darker orange for selected border */
        background-color: var(--main-color-darker); /* darker orange for selected background */
    }

.plu-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5625rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

    .plu-stock-badge::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: currentColor;
    }

.plu-stock-badge.out-of-stock {
    background-color: color-mix(in srgb, var(--error-color) 25%, transparent);
    border-color: color-mix(in srgb, var(--error-color) 50%, transparent);
    color: var(--error-color);
}

.plu-stock-badge.low-stock {
    background-color: color-mix(in srgb, var(--warning-color) 20%, transparent);
    border-color: color-mix(in srgb, var(--warning-color) 45%, transparent);
    color: var(--warning-color);
}

/* tint the card edge to match the strip - overrides the .i-card hover border too */
.plu-card-wrapper.stock-low,
.plu-card-wrapper.stock-low:hover {
    border-color: color-mix(in srgb, var(--warning-color) 55%, transparent);
}

.plu-card-wrapper.stock-out,
.plu-card-wrapper.stock-out:hover {
    border-color: color-mix(in srgb, var(--error-color) 55%, transparent);
}

/* Language picker popup renders at app root; lift it above the sticky
   category bar (z-index 99/120) and MenuDialog (.dialog-container 2100).
   Telerik sets z-index inline on .k-animation-container, so !important is
   required — without it the popup would sit behind the dialog. The Class
   may land on the container itself or on a child, so cover both. */
.k-animation-container.lang-ddl-popup,
.k-animation-container:has(.lang-ddl-popup) {
    z-index: 2200 !important;
}

/* Phone country dropdown popup width. Set here, not via Telerik's popup Width
   param — that renders the popup off-screen on mount to measure it, which flashes
   the page scrollbar. No z-index needed: the dropdown is inside the MenuDialog
   (z-index 2000), an ancestor, so Telerik auto-stacks the popup above it. */
.k-animation-container.pp-country-popup .k-popup,
.k-animation-container.pp-country-popup .k-list {
    width: 16rem !important;
}

