.time-picker {
    position: relative;
    width: 100%;
}

.time-picker__input-wrapper {
    position: relative;
}

.time-picker__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #858796;
    pointer-events: none;
}

.time-picker__input {
    width: 100%;
    cursor: pointer;
    padding-left: 2.5rem;
    background-color: #fff;
    border-radius: 14px;
}

.time-picker__dropdown {
    position: absolute;
    display: none;
    left: 0;
    top: calc(100% - 1px);
    width: 270px !important;
    padding: 1rem 1.25rem;
    background-color: #ffffff;
    border: 1px solid rgba(9, 34, 68, 0.08);
    border-radius: 16px;
    margin-top: 12px;
    z-index: 9999999;
    box-shadow: 0 20px 55px rgba(8, 15, 30, 0.18);
}

.time-picker__dropdown::before,
.time-picker__dropdown::after {
    content: "";
    position: absolute;
    left: 34px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
}

    .time-picker__dropdown::before {
        top: -13px;
        border-bottom: 13px solid rgba(9, 34, 68, 0.08);
    }

    .time-picker__dropdown::after {
        top: -11px;
        border-bottom: 11px solid #ffffff;
    }

.time-picker--open .time-picker__dropdown {
    display: block;
}

.time-picker__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.time-picker__dropdown-label {
    width: 100%;
    font-weight: 600;
    color: #0f2238;
    padding-left: 0.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.time-picker__column {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 0;
}

.time-picker__select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #dce4f0;
    padding: 0.4rem 0.75rem;
    font-size: 0.95rem;
    background-color: rgba(6, 22, 41, 0.04);
}

.time-picker__select option {
    color: #061629;
}

.time-picker__actions {
    width: 100%;
    text-align: right;
}

.time-picker__actions .btn {
    min-width: auto;
    padding: 0.35rem 1rem;
    border-radius: 12px;
}

@media (max-width: 575.98px) {
    .time-picker__dropdown {
        width: 220px;
    }
}
