.flight-calendar {
    width: min(100%, 680px);
    margin-block: 24px;
    color: #262626;
    font-family: Arial, sans-serif;
}

.flight-calendar [hidden] {
    display: none !important;
}

.flight-calendar__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.flight-calendar__filters,
.flight-calendar__month-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.flight-calendar__month-head {
    justify-content: space-between;
}

.flight-calendar__duration {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 4px 8px;
    border: 1px solid #dcdcdc;
}

.flight-calendar__duration input {
    width: 4em;
}

.flight-calendar__months,
.flight-calendar__days {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flight-calendar__days {
    gap: 4px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    text-align: center;
}

.flight-calendar__cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    height: 81px;
    padding: 4px;
    box-sizing: border-box;
    border: 1px solid #dcdcdc;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}

.flight-calendar__cell:is(a, button) {
    cursor: pointer;
}

.flight-calendar__cell.has-price {
    background: #eceff1;
    border-color: transparent;
}

.flight-calendar__cell:is(a, button):hover {
    background: #d9dcdf;
}

.flight-calendar__cell.is-best {
    color: #262626;
    background: #ea6667;
}

.flight-calendar__cell.is-best:hover {
    background: #ff7273;
}

.flight-calendar__months .has-price span:last-child {
    font-size: 18px;
}

.flight-calendar__days .flight-calendar__cell {
    height: 53px;
    font-size: 12px;
    overflow-wrap: anywhere;
}

@media (max-width: 420px) {
    .flight-calendar__months .flight-calendar__cell {
        height: 70px;
    }

    .flight-calendar__days .flight-calendar__cell {
        padding: 2px;
        font-size: 10px;
    }
}
