﻿:root {
    --gss-theme-color: #76257a;
}

.btn-gss-primary{
    background-color: var(--gss-theme-color);
    color: white;
}

    .btn-gss-primary:hover {
        background-color: var(--gss-theme-color);
        color: white;
        opacity: 0.9;
    }

    .btn-gss-primary:active, .btn-gss-primary:focus-visible {
        background-color: #571b5a !important;
        color: white !important;
    }

.btn-gss-secondary {
    background-color: #b85abd61;
    border: 1px solid #76257a75 !important;
    color: #76257a;
}

    .btn-gss-secondary:hover {
        border: 1px solid var(--gss-theme-color);
    }

.btn-outline-gss {
    border: var(--cz-btn-border-width) solid #dabcdb !important;
}

    .btn-outline-gss:hover, .btn-outline-gss.active {
        background-color: var(--gss-theme-color);
        color: white;
    }

    .btn-outline-gss:active, .btn-outline-gss:focus-visible {
        background-color: var(--gss-theme-color);
        color: white;
    }

.img-dinein {
    width: 40px;
    height: 40px;
    background-image: url(images/dinein.png);
    background-size: cover; /* Adjust image to cover the box */
    background-position: center;
    background-repeat: no-repeat;
}

.img-takeout {
    width: 40px;
    height: 40px;
    background-image: url(images/take-away.png);
    background-size: cover; /* Adjust image to cover the box */
    background-position: center;
    background-repeat: no-repeat;
}

.grayscale-image {
    filter: grayscale(100%) !important;
    opacity:0.4;
}

.overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgb(255 255 255 / 50%); /* semi-transparent black */
    color: white;
    font-size: 20px;
    opacity: 0; /* Start hidden */
    transition: opacity 0.3s ease;
    pointer-events: none; /* So clicks go through */
    z-index: 2000;
}

    .overlay.visible {
        opacity: 1; /* Fade in */
        pointer-events: auto; /* Enable interaction if needed */
    }

/* Ref: https://10015.io/tools/css-loader-generator */
.spinner {
    width: 88px;
    height: 88px;
    display: grid;
    border: 7px solid #0000;
    border-radius: 50%;
    border-color: #d1c0ed #0000;
    animation: spinner-e04l1k 1.2s infinite linear;
}

.spinner::before,
.spinner::after {
    content: "";
    grid-area: 1/1;
    margin: 3.5px;
    border: inherit;
    border-radius: 50%;
}

.spinner::before {
    border-color: #8f36f4 #0000;
    animation: inherit;
    animation-duration: 0.6s;
    animation-direction: reverse;
}

.spinner::after {
    margin: 14px;
}

@keyframes spinner-e04l1k {
    100% {
        transform: rotate(1turn);
    }
}

.simplebar-scrollbar::before {
    background-color: #e0b4e3;
}

.simplebar-scrollbar {
    transition: background 0.3s ease;
}

.modalEditItem .modal-dialog {
    max-width: 90vw;
    min-width: 60%;
    width: fit-content;
    /*min-width: 60vw;*/
    /*width: max-content;*/
    /*max-height: 90vh;*/
    min-height: 60%;
    height: 90vh;
    /* max-height: 90vh;
    overflow-y: auto;*/
    z-index: 100;
}

.modalEditItem .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .modalEditItem .modal-content .modal-body {
        overflow: hidden;
    }

    .modalEditItem .modal-content .bg-body {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .modalEditItem .modal-content .modifier-group-wrapper {
        flex: 1 1 auto;
        overflow-y: auto;
    }

.modalEditItem .modal-footer {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    z-index: 1;
    border-top: 1px solid #dee2e6;
}

.modalEditItem .modifier {
    display: flex;
    flex-direction: column;
    height: fit-content;
    border: 1px solid #cad0d9;
    border-radius: 6px;
    padding: 5px 8px;
}

.modalEditItem .modifierGroupBtn {
    background-color: var(--gss-theme-color);
    color: white;
    padding-left: 10px !important;
}

.modalEditItem .count-input {
    border-color: #dadee5;
}

.modalEditItem .accordion-button::after {
    display: none !important;
}

.modalEditItem .modifier.active {
    background-color: #deb9f182;
    border-color: #cdabcf !important;
}

    .modalEditItem .modifier.active .count-input {
        background-color: #fdf8ff !important;
    }

.modalEditItem .selected-sub-items .sub-item{
    display: inline-flex;
    width: 15rem;
}

.total-item-count {
    color: var(--gss-theme-color);
    background: #e1d3ef;
    font-weight: 600;
    font-size: smaller;
}

.responsive-text {
    font-size: clamp(11px, 2.5vw, 20px);
}

.items-wrapper .item-img {
    object-fit: fill;
    /*object-fit: contain;*/
    image-rendering: auto;
}

@media (max-width: 500px) {
    .modalEditItem .selected-sub-items {
        padding-left: 4px !important;
    }

    .modalEditItem .selected-sub-items .sub-item {
        width: 8rem;
    }

    .modalEditItem .selected-sub-items .sub-item-wrapper{
        font-size: 14px !important;
    }

    .modalEditItem .img-wrapper {
        width: 90px !important;
    }

    .modalEditItem .modifier {
        width: 100%;
    }

    .modalEditItem .editItem-Close {
        font-size: 14px !important;
        padding-left: 10px;
        padding-right: 10px;
        margin-right: -10px !important;
    }

    .modalEditItem .btndeletesubitem {
        margin-left: 8px;
    }

    .modalEditItem .update-order-caption{
        font-size: 18px !important;
    }

    .modalEditItem .total-item-amt {
        font-size: 16px !important;
        padding-top: 3px !important;
    }

    .modalEditItem .add-to-order {
        padding-top: 7px;
        padding-bottom: 7px;
    }
}

.closePopover {
    margin-top: -8px;
    margin-right: -6px;
    font-size: 18px;
    cursor: pointer;
}

.popover-body {
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    border-radius: 5px;
}

.offer-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #e91e63; /* Blue */
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer !important;
    z-index: 99;
}

.offer-ribbon {
    position: absolute;
    top: 8px;
    right: -10px;
    transform: rotate(45deg);
    background: #ff9800; /* Orange */
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 9999;
}

.offer-circle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e91e63; /* Pink */
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 99999999 !important;
}