﻿.amalya-date {
    position: relative;
    width: 100%;
}

.amalya-date > input[type="text"] {
    cursor: pointer;
}

.amalya-date-picker {
    box-sizing: border-box;
    max-width: calc(100vw - 24px);
    display: none;
    position: absolute;
    z-index: 5000;
    top: calc(100% + 8px);
    right: 0;
    width: min(330px, calc(100vw - 28px));
    padding: 14px;
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(20, 30, 45, .14);
}

.amalya-date-picker.open {
    display: block;
    animation: amalyaPickerIn .16s ease-out;
}

@keyframes amalyaPickerIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amalya-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
}

.amalya-picker-title {
    font-size: 15px;
    font-weight: 800;
    color: #1d2733;
}

.amalya-picker-nav {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 11px;
    background: #f4f6f8;
    color: #26313c;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.amalya-picker-week,
.amalya-picker-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    min-width: 0;
}

.amalya-picker-week {
    margin-bottom: 5px;
}

.amalya-picker-week > div {
    text-align: center;
    color: #89939d;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 0;
}

.amalya-picker-day,
.amalya-picker-empty {
    aspect-ratio: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.amalya-picker-day {
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #27313b;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.amalya-picker-day:hover {
    background: #f0f2ff;
}

.amalya-picker-day:active {
    transform: scale(.92);
}

.amalya-picker-day.today {
    box-shadow: inset 0 0 0 1px #6d63e8;
}

.amalya-picker-day.selected {
    background: #5147d9;
    color: #fff;
    font-weight: 800;
}

.amalya-picker-today {
    width: 100%;
    height: 40px;
    margin-top: 12px;
    border: 0;
    border-radius: 11px;
    background: #f3f2ff;
    color: #5147d9;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}


