/* Custom select. Override these variables on any .c-select wrapper. */
.c-select {
    --smb-select-accent: var(--primary);
    --smb-select-radius: 8px;
    --smb-select-icon-size: 28px;
    position: relative;
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    margin: 10px 0;
    border: 1px solid var(--border-gray);
    border-radius: var(--smb-select-radius);
    background: var(--light);
    color: var(--text-default);
    font: 400 14px/1.5 var(--default-font);
    cursor: default;
}

.c-select *,
.c-select *::before,
.c-select *::after {
    box-sizing: border-box;
}

/* Prevent browser text selection while interacting with the custom select. */
.c-select,
.c-select * {
    -webkit-user-select: none;
    user-select: none;
}

.c-select select {
    display: none !important;
}

.c-select[aria-disabled="true"] {
    cursor: not-allowed;
}

.c-select .placeholder {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 12px 40px 12px 14px;
    pointer-events: none;
    font-family: var(--default-font);
}

.c-select .arrow-down {
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: transform 150ms ease;
}

.c-select .arrow-rotate {
    transform: rotate(180deg);
}

.c-select .c-select-list {
    position: absolute;
    display: none;
    inset-inline: 0;
    top: calc(100% + 6px);
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 5px;
    border: 1px solid var(--border-gray);
    border-radius: var(--smb-select-radius);
    background: var(--light);
    color: var(--text-default);
    box-shadow: var(--box-shadow);
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: var(--border-dark) var(--light);
}

.c-select .c-select-list::-webkit-scrollbar {
    width: 6px;
}

.c-select .c-select-list::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 6px;
}

.c-select .c-select-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 10px;
    border-radius: 5px;
    cursor: default;
    font-family: var(--default-font);
    white-space: normal;
}

.c-select .c-select-list-item+.c-select-list-item {
    border-top: 1px solid var(--border-light);
}

.c-select .c-select-list-item:hover,
.c-select .smb-select-active {
    background: #fffbfb;
    color: var(--primary--text);
}

.c-select .c-select-list-item[aria-selected="true"] {
    background: #fff8f8;
    box-shadow: none;
    color: var(--primary--text);
}

.c-select .c-select-list-item[aria-disabled="true"] {
    opacity: .5;
    cursor: not-allowed;
}

.c-select .smb-select-icon {
    flex: 0 0 var(--smb-select-icon-size);
    width: var(--smb-select-icon-size);
    height: var(--smb-select-icon-size);
    object-fit: contain;
    border-radius: 6px;
}

.c-select .smb-select-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.c-select .smb-select-name {
    overflow-wrap: anywhere;
}

.c-select .smb-select-description {
    color: var(--text-muted);
    font: 400 12px/1.5 var(--default-font);
    overflow-wrap: anywhere;
}

.c-select .smb-select-prices {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    max-width: 45%;
    overflow-wrap: anywhere;
}

.c-select .smb-select-price {
    font-weight: 500;
}

.c-select .smb-select-original-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration-thickness: 1px;
}

.c-select .c-select-loading-parent {
    width: 100%;
    min-width: 0;
    flex: 1;
}

.c-select .select-loader {
    width: 100%;
    height: 14px;
    background: var(--border-light);
    border-radius: 4px;
    animation: smb-select-loading 1s ease-in-out infinite alternate;
}

.c-select .select-error-message {
    padding: 12px 14px;
    color: var(--primary);
    font-size: 13px;
}

@keyframes smb-select-loading {
    to {
        opacity: .4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c-select .select-loader {
        animation: none;
    }

    .c-select .arrow-down {
        transition: none;
    }
}

/* Pointer cursor only for mouse/trackpad interaction. */
@media (hover: hover) and (pointer: fine) {
    .c-select:not([aria-disabled="true"]),
    .c-select .c-select-list-item:not([aria-disabled="true"]) {
        cursor: pointer;
    }
}

/*datepicker style */
.c-date-picker {
    color: black;
    user-select: none;
}

.c-date-picker button {
    background-color: inherit;
    outline: none;
    border: none;
    font-size: 1rem;
    color: black;
}

.c-date-picker button:hover {
    opacity: 0.8;
}

.c-date-picker button:active {
    opacity: 1;
}

.custom-date-picker {
    position: absolute;
    background-color: white;
    box-shadow: 0px 0px 3px 0px #e9e7e7;
    width: 250px;
    top: 0%;
    bottom: 0%;
    left: 0%;
    height: fit-content;
    z-index: 3;
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 10px;
    display: none;
}

.custom-date-top-data {
    display: flex;
    padding: 10px;
    align-items: center;
    background-color: #dfdfdf;
    color: black;
    font-weight: bold;
}

.custom-date-left-arrow,
.custom-date-right-arrow {
    flex-basis: 20px;
    flex-grow: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.custom-date-month-year {
    flex: 1;
    flex-grow: 1;
    flex-shrink: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: none;
}

.custom-date-day-list {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 10px;
    align-items: center;
    justify-content: center;
    background-color: none;
}

.custom-date-day-list div {
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
}

.custom-date-days-pick {
    color: black;
    display: grid;
}

.custom-right-justify {
    justify-content: end;
}

.custom-inactive-date {
    color: #d7d7d7;
}

.custom-date-days-list-item {
    display: flex;
    padding: 0px 10px 0px 10px;
    align-items: center;
    background-color: none;
    flex-wrap: wrap;
}

.custom-date-days-list-item div {
    flex-basis: 32.8px;
    background-color: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    padding: 5px 0px;
}

.custom-date-days-list-item-div:hover {
    opacity: 0.8;
    background-color: #f1f1f1;
    border-radius: 3px;
    font-weight: bolder;
}

.custom-selected-day {
    background-color: #f1f1f1;
    border-radius: 3px;
    font-weight: bolder;
}

.custom-date-days-list-item div:active {
    opacity: 1;
}

.custom-date-apply-button {
    position: relative;
    margin-top: 10px;
    padding: 10px 10px 0px 10px;
    border-top: solid 1px #f1f1f1;

}

.custom-date-apply-button button {
    position: relative;
    background-color: #dfdfdf;
    color: black;
    padding: 3px 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}



/*loading animation*/
@keyframes select-loader {
    20% {
        opacity: 0.9;
    }

    40% {
        opacity: 0.7;
    }

    60% {
        opacity: 0.5;
    }

    80% {
        opacity: 0.7;
    }

    100% {
        opacity: 0.9;
    }
}@media (max-width: 575px) {
    .c-select {
        min-height: 54px;
    }

    .c-select .c-select-list-item {
        min-height: 56px;
    }

    .c-select .placeholder {
        padding-left: 12px;
        gap: 10px;
    }

    .c-select .smb-select-icon {
        --smb-select-icon-size: 26px;
    }

    .c-select .c-select-list {
        max-width: 100%;
    }
}