/* ── Wheel Date Picker ─────────────────────────────────────────────── */
:root {
    --wdp-item-h: 44px;
    --wdp-visible: 5;
    --wdp-accent: #3b5bfd;
    --wdp-bg: #fff;
    --wdp-text: #1a1d2e;
    --wdp-muted: #9095b0;
    --wdp-sel-bg: rgba(59, 91, 253, .08);
    --wdp-radius: 24px;
}

.wdp-backdrop {
    position: fixed; inset: 0; z-index: 9998;
    background: rgba(0,0,0,.45);
    opacity: 0; transition: opacity .28s ease;
}
.wdp-backdrop.wdp-open { opacity: 1; }

.wdp-sheet {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: var(--wdp-bg);
    border-radius: var(--wdp-radius) var(--wdp-radius) 0 0;
    padding: 12px 20px 32px;
    box-shadow: 0 -8px 40px rgba(0,0,0,.18);
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.32,1,.32,1);
    user-select: none;
}
.wdp-sheet.wdp-open { transform: translateY(0); }

.wdp-handle {
    width: 40px; height: 4px; border-radius: 2px;
    background: #d0d3e0; margin: 0 auto 16px;
}

.wdp-title {
    text-align: center; font-size: 1rem; font-weight: 700;
    color: var(--wdp-text); margin-bottom: 16px;
}

.wdp-drums {
    position: relative;
    display: flex;
    align-items: stretch;
    height: calc(var(--wdp-item-h) * var(--wdp-visible));
    overflow: hidden;
    direction: ltr;
}

/* Selection band */
.wdp-drums::before {
    content: "";
    position: absolute; left: 12px; right: 12px;
    top: calc(var(--wdp-item-h) * ((var(--wdp-visible) - 1) / 2));
    height: var(--wdp-item-h);
    background: var(--wdp-sel-bg);
    border-radius: 12px;
    border-top: 1.5px solid rgba(59,91,253,.18);
    border-bottom: 1.5px solid rgba(59,91,253,.18);
    pointer-events: none; z-index: 2;
}

/* Fade edges */
.wdp-drums::after {
    content: ""; position: absolute; inset: 0;
    background:
            linear-gradient(to bottom, var(--wdp-bg) 0%, transparent 30%),
            linear-gradient(to top,    var(--wdp-bg) 0%, transparent 30%);
    pointer-events: none; z-index: 3;
}

.wdp-col {
    flex: 1; height: 100%; overflow: hidden;
    cursor: grab; touch-action: none; overscroll-behavior: contain;
}
.wdp-col:active { cursor: grabbing; }

.wdp-col-inner { will-change: transform; }

.wdp-item,
.wdp-item.wdp-ghost {
    box-sizing: border-box;
    height: var(--wdp-item-h);
    display: flex; align-items: center; justify-content: center;
    padding: 0; margin: 0;
    font-size: 1.05rem; color: var(--wdp-muted);
    white-space: nowrap;
    transition: color .15s, font-size .15s, font-weight .15s;
}
.wdp-item.wdp-ghost { visibility: hidden; }
.wdp-item.is-sel { color: var(--wdp-text); font-size: 1.18rem; font-weight: 700; }

/* Divider between date and time sections */
.wdp-divider {
    width: 1px;
    background: #e0e3ef;
    margin: 8px 4px;
    flex-shrink: 0;
}

/* Colon separator between hour:minute */
.wdp-sep {
    display: flex; align-items: center; justify-content: center;
    width: 16px; flex-shrink: 0;
    font-size: 1.2rem; font-weight: 700;
    color: var(--wdp-text);
    padding-bottom: 2px;
    z-index: 4; position: relative;
}

/* Divider above actions for visual separation */
.wdp-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px 12px;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 8px;
    background: #fff;
}

.wdp-actions button {
    flex: 1 1 0;
    max-width: 200px;
    min-height: 52px;
    padding: 14px 20px;
    font-size: clamp(15px, 2.2vw, 18px);
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.wdp-actions button:active {
    transform: scale(0.97);
}

/* Cancel button: subtle, secondary look */
.wdp-actions .wdp-cancel {
    background: transparent;
    color: #6b7280;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

/* Confirm button: primary action */
.wdp-actions .wdp-confirm {
    background: #4f46e5;
    color: #fff;
    border: none;
}

/* Force confirm on the left, cancel on the right in RTL sheets */
.wdp-actions {
    direction: ltr;
}
.wdp-actions .wdp-confirm { order: 1; } /* left */
.wdp-actions .wdp-cancel  { order: 2; } /* right */

.wdp-actions .wdp-confirm:hover { filter: brightness(1.06); }
.wdp-actions .wdp-cancel:hover  { background: rgba(0, 0, 0, 0.04); }
