/**=====================
     Reset scss
==========================**/

/* Section Space Scss */
section,
.section-t-space {
    padding-top: calc(30px + (70 - 30) * ((100vw - 320px) / (1920 - 320)));
}

.section-b-space {
    padding-bottom: calc(30px + (70 - 30) * ((100vw - 320px) / (1920 - 320)));
}

.section-big-space {
    padding-top: calc(30px + (150 - 30) * ((100vw - 320px) / (1920 - 320)));
}

.content-t-space {
    padding-top: calc(20px + (50 - 20) * ((100vw - 320px) / (1920 - 320)));
}

.content-t-space2 {
    padding-top: calc(15px + (30 - 15) * ((100vw - 320px) / (1920 - 320)));
}

.content-b-space {
    padding-bottom: calc(20px + (50 - 20) * ((100vw - 320px) / (1920 - 320)));
}

.content-b-space2 {
    padding-bottom: calc(20px + (30 - 20) * ((100vw - 320px) / (1920 - 320)));
}

.container-fluid-xl {
    padding: 0 calc(15px + (100 - 15) * ((100vw - 320px) / (1920 - 320)));
}

.container-fluid-lg {
    padding-inline: calc(15px + (148 - 15) * ((100vw - 320px) / (1920 - 320)));
}

.container-fluid-md {
    padding: 0 calc(15px + (245 - 15) * ((100vw - 320px) / (1920 - 320)));
}

.container-fluid-sm {
    padding: 0 calc(15px + (385 - 15) * ((100vw - 320px) / (1920 - 320)));
}

.container-fluid-xs {
    padding: 0 calc(15px + (450 - 15) * ((100vw - 320px) / (1920 - 320)));
}

.section-bg {
    background-color: $section-bg;

    body.dark & {
        background-color: #252934;
    }
}

.sticky {
    position: sticky !important;
    top: 100px !important;
}

/* Number Spin Button Scss */
input {

    ::-webkit-outer-spin-button,
    &::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
}

/* Firefox */
input[type=number] {
    appearance: textfield;
}


/* Rating Scss */
.rate {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;

    small {
        font-size: 14px;
        font-weight: 500;
        line-height: 1;
        color: $light-color;
        letter-spacing: calc(0.2px + (0.4 - 0.2) * ((100vw - 320px) / (1920 - 320)));

        body.dark & {
            color: rgba($white, 0.6);
        }
    }

    img {
        &.star {
            @include pseudowh($width: 13px, $height: 13px);
        }
    }
}

/* Title Scss */
.title {
    @include flex_common ($dis: flex, $align: center, $justify: space-between);
    padding-bottom: 5px;
    position: relative;
    margin-bottom: calc(16px + (30 - 16) * ((100vw - 320px) / (1920 - 320)));
    gap: 4px;

    body.dark & {
        border-bottom: 1px solid rgba($white, 0.10);

        h3 {
            color: $white;
        }
    }

    &:before {
        @include pos;
        background-color: var(--theme-color);
        @include pseudowh($width: 93px, $height: 4px);
        bottom: -2.5px;
        left: 0;
        border-radius: 100px;

        [dir="rtl"] & {
            left: unset;
            right: 0;
        }
    }

    h2 {
        font-weight: 700;
        line-height: calc(30px + (41 - 30) * ((100vw - 320px) / (1920 - 320)));

        @media (max-width: 575.98px) {
            width: 100%;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            text-overflow: ellipsis;
        }
    }

    .view-all {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
        font-weight: 500;
        position: relative;
        white-space: nowrap;

        i {
            --Iconsax-Size: calc(16px + (18 - 16) * ((100vw - 320px) / (1920 - 320)));
            --Iconsax-Color: var(--theme-color);
            transform: translateX(0px);
            transition: all 0.2s ease;
        }

        &:hover {
            text-decoration: underline;

            i {
                transform: translateX(5px);
                transition: all 0.2s ease;
            }
        }
    }
}

.title-1 {
    position: relative;
    margin: 0 auto 36px;
    text-align: center;
    width: 40%;

    @media (max-width: 1400.98px) {
        width: 61%;
    }

    @media (max-width: 1020.98px) {
        width: 84%;
    }

    @media (max-width: 760.98px) {
        width: 100%;
    }

    h6 {
        color: var(--theme-color);
        font-size: calc(16px + (18 - 16) * ((100vw - 320px) / (1920 - 320)));
        letter-spacing: 1px;
        position: relative;
        z-index: 0;
        overflow: hidden;
        width: 33%;
        margin-inline: auto;

        @media (max-width: 760.98px) {
            width: 72%;
        }

        &::before {
            @include pos;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            @include pseudowh($width: 100%, $height: 1px);
            z-index: -1;
            background: var(--theme-color);
            background: linear-gradient(90deg, rgba($title-color, 0) 1%, var(--theme-color) 15%, var(--theme-color) 85%, rgba($title-color, 0) 100%);
        }

        span {
            padding-inline: 5px;
            background-color: $white;

            body.dark & {
                background-color: #171B27;
            }
        }
    }

    h2 {
        font-weight: 700;
        line-height: 1.2;
        font-size: calc(26px + (35 - 26) * ((100vw - 320px) / (1920 - 320)));
        text-transform: none;
        background: var(--text-gradient-color);
        background-size: 200% auto;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: gradientMove 3s linear infinite
    }

    p {
        color: rgba($title-color, 0.6);
        font-size: calc(15px + (18 - 15) * ((100vw - 320px) / (1920 - 320)));
        line-height: 1.3;
        margin-top: 8px;

        body.dark & {
            color: rgba($white, 0.6);
        }
    }

    .view-all {
        @include flex_common;
        gap: 4px;
        font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
        font-weight: 500;
        position: relative;
        margin-top: 12px;
        white-space: nowrap;

        i {
            --Iconsax-Size: calc(16px + (18 - 16) * ((100vw - 320px) / (1920 - 320)));
            --Iconsax-Color: var(--theme-color);
            transform: translateX(0px);
            transition: all 0.2s ease;
        }

        &:hover {
            text-decoration: underline;

            i {
                transform: translateX(5px);
                transition: all 0.2s ease;
            }
        }
    }

    &.dark-title {
        span {
            background-color: var(--secondary-color);
        }

        h2 {
            background: $white;
            background-size: 200% auto;
            background-clip: text;
            -webkit-background-clip: text;
        }

        p {
            color: rgba($white, 0.8);
        }
    }

    &.light-gray-title {
        span {
            background-color: $section-bg;

            body.dark & {
                background-color: #252934;
            }
        }
    }
}


/* Discount Tag Scss */
.discount-tag {
    position: absolute;
    top: calc(8px + (10 - 8) * ((100vw - 320px) / (1920 - 320)));
    right: calc(8px + (10 - 8) * ((100vw - 320px) / (1920 - 320)));
    background-color: #fb6a5c;
    color: $white;
    border-radius: calc(3px + (5 - 3) * ((100vw - 320px) / (1920 - 320)));
    z-index: 1;
    padding: 3px calc(7px + (9 - 7) * ((100vw - 320px) / (1920 - 320)));
    font-size: calc(13px + (14 - 13) * ((100vw - 320px) / (1920 - 320)));
    font-weight: 500;
    line-height: 1.3;

    [dir="rtl"] & {
        right: unset;
        left: 10px;
    }
}

.like-icon {
    position: absolute;
    top: calc(8px + (10 - 8) * ((100vw - 320px) / (1920 - 320)));
    left: calc(8px + (10 - 8) * ((100vw - 320px) / (1920 - 320)));
    @include pseudowh($width: calc(32px + (36 - 32) * ((100vw - 320px) / (1920 - 320))), $height: calc(32px + (36 - 32) * ((100vw - 320px) / (1920 - 320))));
    @include flex_common;
    background-color: $white;
    border-radius: 100%;
    z-index: 1;
    cursor: pointer;

    body.dark & {
        background-color: #171B27;
    }

    [dir="rtl"] & {
        left: unset;
        right: 10px;
    }

    .icon {
        @include pseudowh($width: calc(16px + (20 - 16) * ((100vw - 320px) / (1920 - 320))), $height: calc(16px + (20 - 16) * ((100vw - 320px) / (1920 - 320))));
        @include flex_common;
    }

    .fill-icon {
        display: none;
    }

    &.active {
        .outline-icon {
            display: none;
        }

        .fill-icon {
            display: block;
            color: rgba(var(--error-color), 1);
        }
    }
}

/* Custom Scroll Scss */
.custom-scroll {
    body.dark & {
        &::-webkit-scrollbar-track {
            background-color: #323640;
        }
    }

    &::-webkit-scrollbar {
        width: 5px;
    }

    &::-webkit-scrollbar-track {
        background: $border-color;
    }

    &::-webkit-scrollbar-thumb {
        background: rgba($primary-color, 0.20);
        border-radius: 4px;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: var(--theme-color);
    }
}

/* Text Scss */
.text-underline {
    text-decoration: underline;
}

.text-dark {
    color: $title-color;
    font-weight: 500;
}

.text-white {
    color: $white;
}

.text-light {
    body.dark & {
        color: rgba($white, 0.6) !important;
    }
}

/* Border Scss */
.border {
    border: 1px solid $border-color;
}

.b-top {
    border-top: 1px solid $border-color;
}

.b-bottom {
    border-bottom: 1px solid $border-color;

    body.dark & {
        border-color: #454851;
    }
}

.b-left {
    border-left: 1px solid $border-color;
}

.b-right {
    border-right: 1px solid $border-color;
}

.border-dashed {
    border: 1px dashed $border-color;
}

.border-solid {
    border-top: 1px solid $border-color;
    margin: 16px 0;
}

.b-top-dashed {
    border-top: 1px dashed $border-color;
}

.b-bottom-dashed {
    border-bottom: 1px dashed $border-color;

    body.dark & {
        border-color: #454851;
    }
}

.b-left-dashed {
    border-left: 1px dashed $border-color;
}

.b-right-dashed {
    border-right: 1px dashed $border-color;
}

.br-12 {
    border-radius: 12px;
}

.br-15 {
    border-radius: 15px;
}

.br-10 {
    border-radius: 10px;
}

.br-8 {
    border-radius: 8px;
}

.br-6 {
    border-radius: 6px;
}

.br-tl-0 {
    border-top-left-radius: 0;
}

.br-tr-0 {
    border-top-right-radius: 0;
}

.br-bl-0 {
    border-bottom-left-radius: 0;
}

.br-br-0 {
    border-bottom-right-radius: 0;
}


/* Padding Scss */
.p-16 {
    padding: 16px;
}

.p-20 {
    padding: calc(14px + (20 - 14) * ((100vw - 320px) / (1920 - 320)));
}

.pr-45 {
    padding-right: 45px !important;

    [dir="rtl"] & {
        padding-right: calc(9px + (12 - 9) * ((100vw - 320px) / (1920 - 320))) !important;
        padding-left: 45px !important;
    }
}

.ms-auto {
    margin-left: auto !important;

    [dir="rtl"] & {
        margin-left: unset !important;
        margin-right: auto !important;
    }
}

/* Image Scss */
.img-45 {
    @include pseudowh($width: 45px !important, $height: 45px !important);
    border-radius: 100%;
}

.plus-minus,
.increment {
    background-color: $section-bg;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0;

    i {
        --Iconsax-Size: 19px;
        --Iconsax-Color: #808B97;
        cursor: pointer;
        @include flex_common;
        @include pseudowh($width: 29px, $height: 29px);
    }

    input {
        color: $title-color;
        border: none;
        background-color: $section-bg;
        text-align: center;
        @include pseudowh($width: 30px, $height: 30px);

        [dir="rtl"] & {
            text-align: center !important;
        }
    }

    .add {
        background-color: var(--theme-color);
        --Iconsax-Color: #fff;
        border-radius: 6px;
    }
}

.danger-note {
    background-color: rgba($danger-color, 0.10);
    color: $danger-color;
    padding: calc(10px + (16 - 10) * ((100vw - 320px) / (1920 - 320)));
    border-radius: calc(6px + (8 - 6) * ((100vw - 320px) / (1920 - 320)));

    p {
        line-height: 1.4;
        font-size: calc(13px + (16 - 13) * ((100vw - 320px) / (1920 - 320)));
    }

    h3 {
        color: $danger-color !important;
        margin-bottom: 4px;
    }
}

.dashed-border {
    border-top: 1px dashed $border-color;
    margin: calc(14px + (20 - 14) * ((100vw - 768px) / (1920 - 768))) 0;

    body.dark & {
        border-color: #454851;
    }
}

.note {
    margin-top: 16px;

    label {
        font-weight: 500;
        color: $title-color;

        body.dark & {
            color: $white;
        }
    }

    p {
        color: $light-color;

        body.dark & {
            color: rgba($white, 0.6);
        }
    }
}

.input-group.phone-detail> :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    margin: 0;
}

.input-group {
    &:not(.has-validation) {
        >:not(:last-child) {
            &:not(.dropdown-toggle) {
                &:not(.dropdown-menu) {
                    border-radius: calc(6px + (8 - 6) * ((100vw - 320px) / (1920 - 320))) !important;
                }
            }
        }

        >.dropdown-toggle {
            &:nth-last-child(n+3) {
                border-radius: calc(6px + (8 - 6) * ((100vw - 320px) / (1920 - 320))) !important;
            }
        }
    }
}

.row-cols-3xl-4>* {
    @media (min-width: 1660px) {
        flex: 0 0 auto;
        width: 33.33333%;
    }
}

.filter-div {
    display: flex;
    align-items: center;
    gap: 12px;

    a {
        border-radius: 6px;
        padding: 6px 12px;
    }

    @media (max-width: 767.98px) {
        width: 100%;
    }
}

.filter {
    @media (max-width: 1199.98px) {
        position: absolute;
        top: 55px;
        left: 12px;
        transition: all 0.3s ease;
        z-index: 3;
        width: 290px;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;

        &.open {
            left: 12px;
            transition: all 0.3s ease;
            transform: translateY(0px);
            opacity: 1;
            visibility: visible;
        }
    }
}

.time-slot {
    border: none;
    background: none;
    padding: 0;
    font-size: 16px;
    color: $light-color !important;
}

.error-wrapper {
    @include flex_common;
    min-height: 100vh;
    text-align: center;

    .no-data-content {
        @include flex_common;
        flex-direction: column;
        gap: 8px;
        padding: 0;

        >svg {
            @include pseudowh($width: 430px, $height: 260px);
            margin-bottom: 40px;
        }

        p {
            color: rgba($title-color, 0.8);
            line-height: 1.4;
            font-size: calc(17px + (18 - 17) * ((100vw - 320px) / (1920 - 320)));
        }

        .btn {
            margin-top: 25px;
            width: max-content;
            background-color: var(--theme-color);

            i {
                --Iconsax-Size: calc(20px + (24 - 20) * ((100vw - 320px) / (1920 - 320)));
                --Iconsax-Color: #fff;
                transform: translateX(0px);
                transition: all 0.2s ease;
            }

            &:hover {
                i {
                    transform: translateX(-5px);
                    transition: all 0.2s ease;
                }
            }
        }
    }
}

.no-data-content {
    @include flex_common;
    flex-direction: column;
    gap: 8px;
    padding: 20px;

    img {
        margin-bottom: 20px;
    }

    p {
        color: rgba($title-color, 0.8);
        font-size: calc(17px + (18 - 17) * ((100vw - 320px) / (1920 - 320)));
    }

    .btn {
        margin-top: 25px;
        width: max-content;
        background-color: var(--theme-color);

        i {
            --Iconsax-Size: calc(20px + (24 - 20) * ((100vw - 320px) / (1920 - 320)));
            --Iconsax-Color: #fff;
            transform: translateX(0px);
            transition: all 0.2s ease;
        }

        &:hover {
            i {
                transform: translateX(-5px);
                transition: all 0.2s ease;
            }
        }
    }
}

.spinner-border {
    display: inline-flex;
    align-items: center;
    opacity: 0.5;
    width: 16px !important;

    &.spinner-border-sm {
        --bs-spinner-border-width: 0.15em !important;
    }
}

.b-r-5 {
    border-radius: 5px;
}

.error {
    font-size: 13px !important;
    color: #FF4B4B !important;
}

/* Badge Booking Status Colors */
@each $booking-status-name,
$booking-status-color in (FDB448, $pending-color),
(48BFFD, $accepted-color),
(AD46FF, $assigned-color),
(FF7456, $on-the-way-color),
(FF4B4B, $decline-color),
(FF4B4B, $cancel-color),
(FF7456, $on-going-color),
(FF1D53, $on-hold-color),
(FF1D53, $start-again-color),
(FE782E, $completed-color),
(5498FF, $pending-approval-color) {
    .booking-status-#{$booking-status-name} {
        background-color: rgba($booking-status-color, 0.1);
        color: $booking-status-color;

        &:hover {
            color: $booking-status-color;
        }
    }
}

@each $booking-status-name,
$booking-status-color in (FDB448, $pending-color),
(COMPLETED, $success-color),
(PENDING, $warning-color),
(REFUNDED, $info-color),
(FAILED, $danger-color),
(5498FF, $pending-approval-color) {
    .payment-status-#{$booking-status-name} {
        background-color: rgba($booking-status-color, 0.1) !important;
        color: $booking-status-color !important;

        &:hover {
            color: $booking-status-color !important;
        }
    }
}

.badge {
    font-weight: 600;
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    text-transform: capitalize;
}

/* badge color */
@each $badge-name,
$badge-color in (primary, $primary-color),
(success, $success-color),
(warning, $warning-color),
(info, $info-color),
(danger, $danger-color),
(light, $light-color) {
    .badge-#{$badge-name} {
        background-color: $badge-color;
        color: $white;
    }
}

/* badge light color */
@each $badge-name,
$badge-color in (primary, $primary-color),
(success, $success-color),
(warning, $warning-color),
(info, $info-color),
(danger, $danger-color),
(light, $light-color) {
    .badge-#{$badge-name}-light {
        background-color: rgba($badge-color, 0.10);
        color: $badge-color;
    }
}

del {
    color: rgba($title-color, 0.3);
}

.required-span {
    color: #F2393B;
}

.service-bg-warning {
    background-color: $warning-color !important;
}

.service-bg-danger {
    background-color: $danger-color !important;

}

.favorite-icon {
    color: $danger-color;

    &.iconsax {
        svg [stroke] {
            stroke: $danger-color;
        }

        svg [fill] {
            fill: $danger-color;
        }
    }
}

input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    [dir="rtl"] & {
        text-align: end;
    }
}

.tap-to-top {
    position: fixed;
    bottom: calc(18px + (40 - 18) * ((100vw - 320px) / (1920 - 320)));
    right: -33px;
    z-index: 9;
    opacity: 0;
    visibility: visible;
    transition: all 0.3s ease-in-out;
    transform: scale(0.7);
    transform-origin: bottom right;

    @media (max-width: 600.98px) {
        bottom: calc(85px + (100 - 85) * ((100vw - 320px) / (601 - 320)));
    }

    &.show {
        opacity: 1;
        visibility: visible;
        right: calc(18px + (40 - 18) * ((100vw - 320px) / (1920 - 320)));
        transform: scale(1);
    }

    .top-btn {
        @include pseudowh($width: calc(32px + (42 - 32) * ((100vw - 320px) / (1920 - 320))), $height: calc(32px + (42 - 32) * ((100vw - 320px) / (1920 - 320))));
        border-radius: calc(4px + (6 - 4) * ((100vw - 320px) / (1920 - 320)));
        background-color: var(--theme-color);
        padding: 0;
        border: 0;
        position: relative;
        z-index: 0;

        &:active {
            background-color: var(--theme-color);
        }

        &::before {
            @include pos;
            border-radius: calc(5px + (7 - 5) * ((100vw - 320px) / (1920 - 320)));
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            @include pseudowh($width: calc(100% + calc(3px + (5 - 3) * ((100vw - 320px) / (1920 - 320)))), $height: calc(100% + calc(3px + (5 - 3) * ((100vw - 320px) / (1920 - 320)))));
            outline: 2px solid var(--theme-color);
        }

        .feather {
            color: $white;
        }
    }
}

.invalid-feedback {
    margin-top: 3px;
    font-size: 13px;
    color: $danger-color;
}

.tooltip {
    &.show {
        opacity: 1;
    }

    .tooltip-inner {
        background-color: var(--theme-color);
        border-radius: 4px;
    }
}

.bs-tooltip-top,
.bs-tooltip-auto[data-popper-placement^=top] {
    .tooltip-arrow::before {
        border-top-color: var(--theme-color);
    }
}

.bs-tooltip-bottom,
.bs-tooltip-auto[data-popper-placement^=bottom] {
    .tooltip-arrow::before {
        border-bottom-color: var(--theme-color);
    }
}

.bs-tooltip-start,
.bs-tooltip-auto[data-popper-placement^=left] {
    .tooltip-arrow::before {
        border-left-color: var(--theme-color);
    }
}

.bs-tooltip-end,
.bs-tooltip-auto[data-popper-placement^=right] {
    .tooltip-arrow::before {
        border-right-color: var(--theme-color);
    }
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    @include pseudowh($width: 100vw, $height: 100vh);
    background-color: $title-color;
    opacity: 0;
    transition: all 0.25s ease-in-out;
    visibility: hidden;
    z-index: 9;

    &.show {
        opacity: 0.4;
        visibility: visible;
    }
}