/* Hide scrollbar for all browsers */
.scrollbar-hide {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Restaurant cover photo transparent shape code start */
.mask-image {
    -webkit-mask-image: url("/images/required/shape.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

/* Restaurant cover photo transparent shape code close */

/* pointer event code start */
.pointer-events-disable {
    pointer-events: none;
}

/* pointer event code end */

/* Select code start */
.vue-select.no-radius {
    border-radius: 0 !important;
}

.vue-select {
    width: auto !important;
    border: 1px solid #D9DBE9 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    flex-direction: column !important;
    color: rgb(var(--heading) / 0.8) !important;
}

.vue-select.is-invalid {
    border: 1px solid rgb(252, 165, 165) !important;
}

.vue-input {
    padding: 0.1rem 0rem !important;
    color: rgb(var(--heading) / 0.8) !important;
}

.vue-input input {
    font-size: 0.9375rem !important;
    color: #1f1f39cc !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
}

.vue-input input::placeholder {
    color: #1f1f39cc !important;
}

.vue-dropdown {
    border: 1px solid rgba(243, 104, 5, 0.2) !important;
    box-shadow: 0 0.25rem 1rem rgb(229 231 235 / 45%) !important;
    max-height: 175px !important;
}

.vue-select.direction-top .vue-dropdown {
    border-top-left-radius: 0.375rem !important;
    border-top-right-radius: 0.375rem !important;
    z-index: 100000;
}

.vue-select.direction-bottom .vue-dropdown {
    border-bottom-left-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
    z-index: 100000;
}

.vue-select[aria-expanded="true"].direction-top {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.vue-select[aria-expanded="true"].direction-bottom {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.vue-select[aria-expanded="true"] {
    border-color: rgba(243, 104, 5, 0.2) !important;
}

.vue-dropdown-item.highlighted {
    background-color: rgba(243, 104, 5, 0.04) !important;
}

.vue-dropdown-item.selected.highlighted {
    background-color: rgba(105, 108, 255, 0.08) !important;
    color: rgb(243 104 5 / var(--tw-text-opacity)) !important;
}

.vue-dropdown-item.selected {
    background-color: rgba(105, 108, 255, 0.08) !important;
    color: rgb(243 104 5 / var(--tw-text-opacity)) !important;
}

.vue-dropdown-item {
    font-size: 15px;
    padding: 0.4375rem 0.875rem !important;
}

/* Select code close */

/* Font size and color start */

.lab-font-size-12 {
    font-size: 12px !important;
}

.lab-font-size-13 {
    font-size: 13px !important;
}

.lab-font-size-14 {
    font-size: 14px !important;
}

.lab-font-size-15 {
    font-size: 15px !important;
}

.lab-font-size-16 {
    font-size: 16px !important;
}

.lab-font-size-17 {
    font-size: 17px !important;
}

.lab-font-size-20 {
    font-size: 20px !important;
}

.lab-font-size-22 {
    font-size: 22px !important;
}

.lab-font-size-24 {
    font-size: 24px !important;
}

.lab-font-size-30 {
    font-size: 30px !important;
}

.lab-font-size-32 {
    font-size: 32px !important;
}

/* Font size and color close */

.required:after {
    line-height: 1 !important;
}

/* Textarea package customize start */
.textarea-error-box-style {
    padding: 0;
    margin: 0;
    border: 1px solid;
    border-radius: 0.375rem;
}

.textarea-error-box-style.invalid::before {
    content: none !important;
}

.textarea-border-radius {
    border-radius: 0 0 0.375rem 0.375rem;
    border-color: rgb(229 231 235 / var(--tw-border-opacity)) !important;
}

.ql-toolbar.ql-snow {
    border: 1px solid rgb(229 231 235) !important;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    padding: 0.5rem 0.75rem !important;
    background: #F7F7FC !important;
}

.ql-container {
    border-radius: 0 0 0.375rem 0.375rem !important;
}

.custom-quill-editor:focus-within .ql-toolbar.ql-snow {
    border-color: #f3680533 !important;
}

.ql-container.ql-snow {
    border-left: 1px solid rgb(229 231 235) !important;
    border-right: 1px solid rgb(229 231 235) !important;
    border-bottom: 1px solid rgb(229 231 235) !important;
}

.custom-quill-editor:focus-within .ql-container.ql-snow {
    border-color: #f3680533 !important;
}

.custom-border.ql-container.ql-snow {
    border-top: 1px solid rgb(229 231 235) !important;
    border-radius: 0.375rem 0.375rem 0.375rem 0.375rem;
}

.custom-quill .ql-toolbar.ql-snow {
    display: none;
}

.custom-quill-editor :deep(.ql-toolbar) {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border: 1px solid #D9DBE9;
    border-bottom: none;
    background: #F7F7FC;
}

.ql-ul-set ul, .ql-ul-set ol {
    list-style: unset !important;
    margin: inherit !important;
    padding: inherit !important;
}

.ql-ul-set ul li span, .ql-ul-set ol span {
    display: inline !important;
}

/* Textarea package customize end */

/* Google map search dropdown css Start */
.pac-container {
    background-color: #fff;
    border-radius: 8px;
    border: 0px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

.pac-item {
    padding: 6px 10px 6px;
    border: 1px solid rgba(221, 221, 221, 0);
    border-bottom: 1px solid rgba(221, 221, 221, 0.5);
    text-align: justify;
}

.pac-item:last-child {
    border-bottom: 0 solid #ddd;
}

.pac-item:hover {
    background-color: rgb(var(--primary) / 0.1);
}

.pac-container:after {
    display: none !important;
}

/* Google map search dropdown css End */

/* Payment method code start */
.cal-btn {
    display: flex;
    width: 100%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    padding: 0.375rem 0.5rem;
    --tw-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24);
    --tw-shadow-colored: 0px 3px 8px var(--tw-shadow);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, #000000), var(--tw-shadow);
}

.method-title.active {
    border-color: rgb(var(--primary) / 0.5) !important;
    background-color: rgb(var(--primary) / 0.05) !important;
}

/* Payment method code end */

/* Date picker code start */
.dp__main:has(.foodnanny-input) .dp__input {
    font-weight: 400 !important;
}

.dp__input {
    --tw-border-opacity: 1;
    border: 1px solid rgb(229 231 235 / var(--tw-border-opacity, 1)) !important;
    color: inherit !important;
    font-size: 0.875rem !important;
    border-radius: 0.375rem !important;
    line-height: 1.25rem !important;
    height: 2.5rem !important;
    padding-left: 2.75rem !important;
    padding-right: 30px !important;
}

.dp__input:hover {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1)) !important;
    color: inherit !important;
}

.dp__input_focus {
    border-color: rgb(var(--primary) / 0.2) !important;
    color: inherit !important;
}

.dp__range_end, .dp__range_start, .dp__active_date {
    background-color: rgb(var(--primary)) !important;
}

.dp__today {
    border: 1px solid rgb(var(--primary)) !important;
}

.dp__pm_am_button {
    background: rgb(var(--primary)) !important;
}

.dp__action_select {
    background: rgb(var(--primary)) !important;
}

.dp__main.invalid::before {
    display: none !important;
}

.dp__action_cancel:hover {
    border-color: rgb(var(--primary) / 0.3) !important;
}

/* Date picker code close here */

/* Description design start */
.editor-show-design {
    line-height: 1.75 !important;
}

.editor-show-design h1,
.editor-show-design h2,
.editor-show-design h3,
.editor-show-design h4,
.editor-show-design h5,
.editor-show-design h6 {
    font-weight: bold !important;
    line-height: 1.2 !important;
}

.editor-show-design span {
    display: inline !important;
}

.editor-show-design h1 {
    font-size: 32px !important;
    line-height: 1.3 !important;
}

.editor-show-design h2 {
    font-size: 24px !important;
    line-height: 1.4 !important;
}

.editor-show-design h3 {
    font-size: 20px !important;
    line-height: 1.4 !important;
}

.editor-show-design h4 {
    font-size: 18px !important;
    line-height: 1.4 !important;
}

.editor-show-design h5 {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.editor-show-design h6 {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

@media (max-width: 767px) {
    .editor-show-design h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    .editor-show-design h2 {
        font-size: 22px !important;
        line-height: 1.4 !important;
    }

    .editor-show-design h3 {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }

    .editor-show-design h4 {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }

    .editor-show-design h5 {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    .editor-show-design h6 {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 480px) {
    .editor-show-design h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    .editor-show-design h2 {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }

    .editor-show-design h3 {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }

    .editor-show-design h4 {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }

    .editor-show-design h5 {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    .editor-show-design h6 {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
}

.editor-show-design a {
    text-decoration: underline !important;
}

.editor-show-design ol {
    list-style: auto !important;
    margin: auto !important;
    padding: revert !important;
}

.editor-show-design ul {
    list-style: unset !important;
    margin: auto !important;
    padding: revert !important;
}

/* Description design end */

/* Loading dot wave start */
.dot-wave {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dot-wave > span {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: currentColor;
    display: inline-block;
    animation: dot-wave 1s infinite ease-in-out both;
}

@keyframes dot-wave {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: .45;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Loading dot wave end */
.vue-input input::placeholder {
    color: rgb(var(--heading)) !important;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Flip-clock countdown (order summery page) start */
.flip-unit {
    position: relative;
    width: 70px;
    height: 70px;
    perspective: 320px;
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    filter: drop-shadow(0px 8px 24px rgba(23, 31, 70, 0.18));
}

.flip-half {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
}

@media (max-width: 767px) {
    .flip-unit {
        width: 50px;
        height: 50px;
        font-size: 28px;
        line-height: 1.2;
    }

    .flip-half > span {
        height: 50px !important;
    }
}

/* Each half holds a full-card-height digit, clipped to its own half. */
.flip-half > span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-top, .flip-flap-top {
    top: 0;
    background: #454545;
    border-radius: 12px 12px 0 0;
}

.flip-top > span, .flip-flap-top > span {
    top: 0;
}

.flip-bottom, .flip-flap-bottom {
    bottom: 0;
    background: #1E1E1E;
    border-radius: 0 0 12px 12px;
}

.flip-bottom > span, .flip-flap-bottom > span {
    top: -100%;
}

/* The hinge — the fold line the panes rotate around. */
.flip-hinge {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(0, 0, 0, .7);
    z-index: 4;
}

/* Animated flaps: hidden until a change; the top flap (old value) folds down to
   the hinge, then the bottom flap (new value) unfolds from it. */
.flip-flap-top, .flip-flap-bottom {
    display: none;
    z-index: 3;
    backface-visibility: hidden;
}

.flip-flap-top {
    transform-origin: bottom;
}

.flip-flap-bottom {
    transform-origin: top;
    transform: rotateX(90deg);
}

.flip-unit.flipping .flip-flap-top {
    display: block;
    animation: legacyFlipTop .25s ease-in forwards;
}

.flip-unit.flipping .flip-flap-bottom {
    display: block;
    animation: legacyFlipBottom .25s ease-out .25s forwards;
}

@keyframes legacyFlipTop {
    from {
        transform: rotateX(0);
    }
    to {
        transform: rotateX(-90deg);
    }
}

@keyframes legacyFlipBottom {
    from {
        transform: rotateX(90deg);
    }
    to {
        transform: rotateX(0);
    }
}

/* Flip-clock countdown end */

/*==================================
        MAIN SITE (BLADE) PART
===================================*/
/* scoped to .main-site (resources/views/main/layout.blade.php <body>) so it
   doesn't affect legacy/website/admin, which share this same custom.css */
.main-site {
    font-family: 'Google Sans', sans-serif;
}

/* Fullscreen loader (resources/views/main/partials/loader.blade.php) */
.main-loader-bar {
    width: 6px;
    height: 30px;
    border-radius: 2px;
    background-color: #F36805;
    animation: main-loader-bar-fade-scale 1s ease-in-out infinite;
}

.main-loader-bar:nth-child(2) {
    animation-delay: 0.15s;
}

.main-loader-bar:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes main-loader-bar-fade-scale {
    0%, 100% {
        opacity: 0.35;
        transform: scaleY(0.5);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Toast alerts (resources/views/main/partials/alert.blade.php) */
.main-alert {
    animation: main-alert-in 0.35s ease both;
}

.main-alert.main-alert-out {
    animation: main-alert-out 0.3s ease both;
}

@keyframes main-alert-in {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes main-alert-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

.main-alert-progress {
    animation: main-alert-progress linear both;
}

@keyframes main-alert-progress {
    from {
        width: 100%;
    }
    to {
        width: 0;
    }
}


/* Custom Input range type design */

.slider-track-wrap {
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
}

.slider-track-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    border-radius: 99px;
    background: #e3e1e6;
}

.slider-fill {
    position: absolute;
    left: 0;
    height: 8px;
    border-radius: 99px;
    background: #b13d14;
    pointer-events: none;
}

.slider-track-wrap input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    width: 100%;
    height: 24px;
    background: transparent;
    margin: 0;
    cursor: pointer;
    z-index: 2;
    /* Browsers disagree on whether dir="rtl" should reverse a range input's
       fill/thumb start side. Pin it to ltr so it always matches .slider-fill,
       which is anchored to the left. */
    direction: ltr;
}

.slider-track-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 46px;
    height: 28px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e6e4e9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    cursor: grab;
    background-image: linear-gradient(#c9c7cf, #c9c7cf),
    linear-gradient(#c9c7cf, #c9c7cf),
    linear-gradient(#c9c7cf, #c9c7cf),
    linear-gradient(#c9c7cf, #c9c7cf);
    background-size: 1.5px 12px, 1.5px 12px, 1.5px 12px, 1.5px 12px;
    background-position: calc(50% - 7px) center,
    calc(50% - 2.3px) center,
    calc(50% + 2.3px) center,
    calc(50% + 7px) center;
    background-repeat: no-repeat;
}

.slider-track-wrap input[type="range"]::-webkit-slider-thumb:active {
    cursor: grabbing;
}

.slider-track-wrap input[type="range"]::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e6e4e9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    cursor: grab;
    background-image: linear-gradient(#c9c7cf, #c9c7cf),
    linear-gradient(#c9c7cf, #c9c7cf),
    linear-gradient(#c9c7cf, #c9c7cf),
    linear-gradient(#c9c7cf, #c9c7cf);
    background-size: 1.5px 12px, 1.5px 12px, 1.5px 12px, 1.5px 12px;
    background-position: calc(50% - 7px) center,
    calc(50% - 2.3px) center,
    calc(50% + 2.3px) center,
    calc(50% + 7px) center;
    background-repeat: no-repeat;
}

.slider-track-wrap input[type="range"]::-moz-range-track {
    background: transparent;
    border: none;
}

.slider-track-wrap input[type="range"]:focus-visible::-webkit-slider-thumb {
    outline: 2px solid #b13d14;
    outline-offset: 2px;
}

.slider-track-wrap input[type="range"]:focus-visible::-moz-range-thumb {
    outline: 2px solid #b13d14;
    outline-offset: 2px;
}

.fade-out-up {
    animation: fadeOutUp 0.5s forwards;
}

.fade-in-down {
    animation: fadeInDown 0.5s forwards;
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
