/* --- ?????????? ??????? ?????? ????? ? ??? --- */

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* ??????? ???? */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: #fff;
    width: 95%;
    max-width: 850px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background: #52adc8;
    color: #fff;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    text-align: center;
}

.header-title-main {
    font-size: 18px;
    font-weight: bold;
}

.days-grid {
    display: grid;
    gap: 10px;
    padding: 15px;
    background: #f9f9f9;
}

/* ??????????? ??????? */
@media (min-width: 768px) {
    .days-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 767px) {
    .days-grid { grid-template-columns: repeat(3, 1fr); }
    .header-title-main { font-size: 14px; }
    .modal-header { padding: 10px; grid-template-columns: 1fr 1.8fr 1fr; }
}

.day-box {
    background: #fff;
    border: 1px solid #dfe5e9;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: 0.2s;
}

.day-box:hover {
    border-color: #4fa3e3;
    background: #f0f8ff;
}

.box-top {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #888;
}

.box-price {
    text-align: center;
    color: #4fa3e3;
    font-weight: bold;
    font-size: 13px;
    margin: 8px 0;
}