﻿
.datepicker-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    font-family: Inter;
    font-size: 14px;
    color: #737373;
    background-color: #FAFAFA;
    border: 1px solid #D4D4D4;
    border-radius: 8px;
    padding: 0px 16px 0px 16px;
}

.datepicker-wrapper {
    position: relative;
    margin: 16px 0;
    width: 100%;
    min-height: 48px;
    font-size: 14px;
}

    .datepicker-wrapper.disabled {
        background: #FAFAFA;
        color: #737373;
        opacity: 0.5;
        border: none;
    }

form .datepicker-wrapper {
    margin: 0px 0px 32px 0px;
}

.datepicker-container.error {
    border: 1px solid #E32D51;
    box-shadow: 0px 0px 0px 4px #E32D5133;
}

    .datepicker-container.error:hover {
        border: 1px solid #E32D51;
        box-shadow: 0px 0px 0px 4px #E32D5133;
    }

    .datepicker-container.error:focus {
        background: #FFFFFF;
        border: 1px solid #E32D51;
        box-shadow: 0px 0px 0px 4px #E32D5133;
    }

.datepicker-wrapper:not(.disabled) .datepicker-container:hover {
    border: 1px solid #1A7CCA;
    background-color: #FFFFFF;
    box-shadow: 0px 0px 0px 4px #FFD10033;
}

.datepicker-container:focus {
    border: 1px solid #1A7CCA;
    box-shadow: 0px 0px 0px 4px #FFD10033;
    color: #2C2C2C;
    background-color: #FFFFFF;
}


.datepicker-content-label {
    position: absolute;
    font-weight: 400;
    color: #2C2C2C;
    top: 22px;
    font-size: 14px;
    line-height: 20px;
}

.datepicker-title-label {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    position: absolute;
    top: 13px;
    color: #737373;
    transition: all 0.1s ease;
    pointer-events: none;
}

.datepicker-title-label-small {
    position: absolute;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    top: 6px;
    color: #525252;
    background-color: transparent;
}

.calendar-image {
    position: absolute;
    right: 15px;
    top: 15px;
    pointer-events: none;
}

/**/
.calendar {
    display: none;
    position: absolute;
    overflow: hidden;
    width: 680px;
    max-width: 100%;
    border: 1px solid #E5E5E5;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0px 8px 16px 0px #0000001A;
    top: 50px;
    left: 0;
    transition: max-height 0.1s ease;
    z-index: 10;
}

@media screen and (max-width: 768px) {
	.calendar {
		max-width: calc(100vw - 32px);
		overflow-x: auto;
	}
}

.calendar-small {
    width: 336px;
}

.calendar-open {
    display: block;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
}

    .header button {
        background-color: transparent;
        border: none;
        cursor: pointer;
        font-size: 16px;
    }

.calendar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.days {
    padding: 16px;
}

.calendar-column {
    display: grid;
    grid-template-columns: repeat(7, 40px);
    gap: 4px;
}

.day {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 40px;
    height: 40px;
    color: #A3A3A3;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}

    .day:not(:empty):hover {
        background-color: #FBE64E;
        color: #1D1D1B;
        border-radius: 50%;
        cursor: pointer;
    }

    .day.selected {
        background-color: #FBE64E;
        color: #1D1D1B;
        border-radius: 50%;
    }

    .day.range {
        background-color: #F5F5F5;
        color: #1D1D1B;
    }

.days-header {
    display: flex;
    justify-content: space-around;
    background-color: #f0f0f0;
    padding: 8px 0;
}

.months-switch {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

.days-of-week {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 16px;
    margin-bottom: 4px;
}

    .days-of-week label {
        flex: 1;
        text-align: center;
        color: #525252;
        font-weight: 400;
        font-size: 14px;
        line-height: 24px;
    }

.calendar-arrow-button {
    background-color: transparent;
    border: none;
    padding: 0px;
}

.clear-date-button {
    position: absolute;
    right: 15px;
    top: 12px;
    background: none;
    border: none;
}

.datepicker-content-input {
    border: none;
    background: transparent;
    outline: none;
    position: absolute;
    font-weight: 400;
    color: #2C2C2C;
    top: 22px;
    font-size: 14px;
    line-height: 20px;
}
