.custom-datepicker {
    position: relative;
    width: 100%;
    font-family: Pretendard, sans-serif;
}

.custom-datepicker__select-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 2px 5px 8px;
    border: 1px solid var(--color-input-border);
    border-radius: 4px;
    background-color: var(--color-input-surface);
}

.custom-datepicker__input {
    border: none;
    width: 100%;
    height: auto;
    font-family: Pretendard, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: -0.2px;
}

.custom-datepicker__input::placeholder {
    color: var(--color-input-text-placeholder);
}

.custom-datepicker__calendar-icon {
    width: 24px;
    height: 24px;
}

.custom-datepicker__calendar-icon::after {
    content: "";
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 16px 18px;
    mask-image: url("../../img/svg/ic_cmm_calendar.svg");
    background-color: var(--color-icon);
    width: 100%;
    height: 100%;
    display: block;
}

.custom-datepicker__calendar-wrap {
    //position: absolute;
    padding-top: 4px;
    z-index: 1;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.custom-datepicker__calendar-wrap.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    max-width: 260px;
}

.custom-datepicker__calendar {
    background-color: var(--color-bg-default);
    box-shadow: 3px 3px 10px 0 #1F1F1F26;
    outline: 1px solid var(--color-border);
    border-radius: 8px;
}

.custom-datepicker__calendar-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 20px 15px 0 15px;
}

.custom-datepicker__calendar-label-wrap {
    display: flex;
    align-items: center;
}

.custom-datepicker__calendar-label {
    font-family: Pretendard, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 150%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    color: var(--color-text);
}

.custom-datepicker__calendar-arrow-icon {
    width: 24px;
    height: 24px;
    aspect-ratio: 1;
    flex-shrink: 0;
    border: none;
    background: none;
}

.custom-datepicker__calendar-arrow-icon.prev {
    transform: rotate(90deg);
}

.custom-datepicker__calendar-arrow-icon.next {
    transform: rotate(-90deg);
}

.custom-datepicker__calendar-arrow-icon::after {
    content: "";
    mask-image: url("../../img/svg/ic_cmm_arrow_down.svg");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 12px 6px;
    background-color: var(--color-icon);
    display: block;
    width: 100%;
    height: 100%;
}

.custom-datepicker__calendar-arrow-icon:disabled::after {
    background-color: var(--color-icon-disabled);
}

.custom-datepicker__date-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.custom-datepicker__month-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.custom-datepicker__date-panel .custom-datepicker__calendar-body-wrap {
    padding: 10px 15px;
    width: 100%;
}

.custom-datepicker__month-panel .custom-datepicker__calendar-body-wrap{
    padding: 34px 18px;
    width: 100%;
}

.custom-datepicker__year-panel .custom-datepicker__calendar-body-wrap{
    padding: 34px 18px;
    width: 100%;
}

.custom-datepicker__date-panel .custom-datepicker__calendar-body {
    table-layout: fixed;
    text-align: center;
}

.custom-datepicker__month-panel .custom-datepicker__calendar-body {
    table-layout: fixed;
    text-align: center;
    height: calc(44px * 3);
}

.custom-datepicker__year-panel .custom-datepicker__calendar-body {
    table-layout: fixed;
    text-align: center;
    height: calc(44px * 3);
}

.custom-datepicker__date-panel .custom-datepicker__calendar-body thead{
    height: 32px;
    min-width: 32px;
    color: var(--color-text);
}

.custom-datepicker__cell {
    cursor: pointer;
    position: relative;
    min-width: 32px;
}


.custom-datepicker__date-panel .custom-datepicker__cell {

}

.custom-datepicker__month-panel .custom-datepicker__cell {
    padding: 6px 0;
}

.custom-datepicker__year-panel .custom-datepicker__cell {
    padding: 6px 0;
}

.custom-datepicker__date-panel .custom-datepicker__cell-inner {
    position: relative;
    display: inline-block;
    height: 32px;
    min-width: 32px;
    line-height: 32px;
    transition: background 0.2s;
    border-radius: 8px;
    color: var(--color-text-disabled);
}

.custom-datepicker__month-panel .custom-datepicker__cell-inner {
    position: relative;
    display: inline-block;
    height: 32px;
    min-width: 56px;
    transition: background 0.2s;
    line-height: 32px;
    border-radius: 8px;
    color: var(--color-text-disabled);
}

.custom-datepicker__year-panel .custom-datepicker__cell-inner {
    position: relative;
    display: inline-block;
    height: 32px;
    max-height: 32px;
    min-width: 56px;
    transition: background 0.2s;
    line-height: 32px;
    border-radius: 8px;
    color: var(--color-text-disabled);
}

.custom-datepicker__cell.custom-datepicker__cell-disabled .custom-datepicker__cell-inner{
    color: var(--color-text-disabled);
    pointer-events: none;
    cursor: default;
}

.custom-datepicker__cell-inner.custom-datepicker__cell-in-view {
    color: var(--color-text);
}

.custom-datepicker__cell-inner.custom-datepicker__cell-in-view.today {
    background-color: var(--color-bg-subtle);
}

.custom-datepicker__cell-inner.custom-datepicker__cell-in-view.selected {
    color: var(--color-text-inverse);
    background-color: var(--color-button-bg-primary-fill);
}

