.date-field-helper {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
}

.date-field-helper__native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    margin: 0;
    z-index: 0;
}

.date-field-helper__display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background: #ffffff;
    color: #0F0F0F;
    text-align: left;
}

.date-field-helper__display:focus {
    outline: 0;
    border-color: #2D6479;
    box-shadow: 0 0 0 0.2rem rgba(45, 100, 121, 0.18);
}

.date-field-helper__display:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.date-field-helper__display-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.date-field-helper__display-text--placeholder {
    color: #6c757d;
}

.date-field-helper__display-icon {
    flex: 0 0 auto;
    color: #2D6479;
}

.web-calendar-popup-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 15, 15, 0.45);
    z-index: 2200;
}

.web-calendar-popup-backdrop.is-open {
    display: flex;
}

.web-calendar-popup {
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    padding: 18px;
}

.web-calendar-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.web-calendar-popup__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0F0F0F;
    text-transform: capitalize;
}

.web-calendar-popup__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #ced4da;
    border-radius: 999px;
    background: #ffffff;
    color: #2D6479;
    font-size: 1rem;
    line-height: 1;
}

.web-calendar-popup__nav:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(45, 100, 121, 0.18);
}

.web-calendar-popup__weekdays,
.web-calendar-popup__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.web-calendar-popup__weekdays {
    margin-bottom: 8px;
}

.web-calendar-popup__weekday {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #5a6773;
    text-transform: lowercase;
}

.web-calendar-popup__day {
    min-height: 42px;
    border: 1px solid #d7e0e6;
    border-radius: 10px;
    background: #ffffff;
    color: #0F0F0F;
    font-weight: 600;
}

.web-calendar-popup__day:hover,
.web-calendar-popup__day:focus {
    outline: 0;
    border-color: #2D6479;
    box-shadow: 0 0 0 0.15rem rgba(45, 100, 121, 0.14);
}

.web-calendar-popup__day--outside {
    color: #95a1aa;
    background: #f6f8fa;
}

.web-calendar-popup__day--today {
    border-color: #2D6479;
}

.web-calendar-popup__day--selected {
    background: #2D6479;
    border-color: #2D6479;
    color: #ffffff;
}

.web-calendar-popup__time {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.web-calendar-popup__time[hidden] {
    display: none;
}

.web-calendar-popup__time-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.web-calendar-popup__time-label {
    margin: 0;
    color: #5a6773;
    font-size: 0.82rem;
    font-weight: 700;
}

.web-calendar-popup__time-input {
    width: 100%;
}

.web-calendar-popup__preview {
    margin-top: 14px;
    text-align: center;
    color: #0F0F0F;
    font-weight: 600;
}

.web-calendar-popup__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.web-calendar-popup__actions-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

@media (max-width: 575.98px) {
    .web-calendar-popup {
        padding: 14px;
    }

    .web-calendar-popup__day {
        min-height: 38px;
        font-size: 0.92rem;
    }

    .web-calendar-popup__actions {
        flex-wrap: wrap;
    }

    .web-calendar-popup__actions-right {
        width: 100%;
    }
}
