/* The site's own time picker (js/timepicker.js), drawn as the date picker:
   the same 280-wide card, the chosen value filled in #9F553E. */
.tp-wrapper { position: relative; width: 100%; }

.tp-panel {
    position: fixed;
    z-index: 100000;
    width: 280px;
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 14px;
    font-family: inherit;
    display: none;
}

.tp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.tp-value {
    font-weight: 700;
    font-size: 16px;
    color: #1f2421;
    font-variant-numeric: tabular-nums;
}

.tp-now-btn, .tp-clear-btn {
    background: none;
    border: none;
    color: #8a8f8a;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}
.tp-now-btn:hover, .tp-clear-btn:hover { color: #555; }

.tp-label {
    font-size: 12px;
    color: #9aa09a;
    padding: 6px 0 4px;
}

.tp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.tp-item {
    background: none;
    border: 1px solid transparent;
    font-size: 14px;
    color: #1f2421;
    padding: 6px 0;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
}
.tp-item:hover:not(.tp-item-selected) { background: #f2f1ec; }
.tp-item-selected { color: #fff; font-weight: 600; }

.tp-ampm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    background: #f2f1ec;
    border-radius: 9px;
    padding: 3px;
    margin-top: 10px;
}
.tp-ampm button {
    border: 0;
    background: none;
    border-radius: 7px;
    padding: 7px 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #8a8f8a;
    cursor: pointer;
}
.tp-ampm button.tp-on { background: #fff; color: #1f2421; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }

.tp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.tp-done-btn {
    background: #1f2421;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 18px;
    cursor: pointer;
    font-family: inherit;
}
.tp-done-btn:hover { opacity: 0.85; }

.tp-panel button:focus-visible { outline: 2px solid #3B5948; outline-offset: 1px; }
