/* Thai Buddhist-calendar datepicker widget — shared by shop and admin layouts.
   Uses the shop theme's CSS variables when present, falls back to neutral
   colors otherwise so it looks right on SB Admin 2 pages too. */
.thai-datepicker {
    position: relative;
}
.thai-datepicker-display {
    cursor: pointer;
    background: #fff;
}
.thai-datepicker-panel {
    display: none;
    position: absolute;
    z-index: 1050;
    top: calc(100% + 4px);
    left: 0;
    width: 260px;
    background: var(--paper, #fff);
    border: 1px solid var(--line, #dde1e7);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(26, 38, 56, 0.15);
    padding: 0.75rem;
}
.thai-datepicker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.thai-datepicker-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ink, #1c2534);
}
.thai-datepicker-nav {
    border: none;
    background: var(--cream, #f3f5fa);
    color: var(--cocoa, #3d7ae0);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 1.1rem;
    line-height: 1;
}
.thai-datepicker-nav:hover {
    background: var(--gold, #3d7ae0);
    color: #fff;
}
.thai-datepicker-weekdays,
.thai-datepicker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}
.thai-datepicker-weekdays span {
    font-size: 0.72rem;
    color: var(--muted, #8891a5);
    font-weight: 600;
    padding: 4px 0;
}
.thai-datepicker-day {
    font-size: 0.82rem;
    padding: 6px 0;
    border-radius: 4px;
    cursor: pointer;
    color: var(--ink, #1c2534);
}
.thai-datepicker-day:not(.empty):not(.disabled):hover {
    background: var(--cream, #f3f5fa);
}
.thai-datepicker-day.selected {
    background: var(--espresso, #1e2a4a);
    color: #fff;
    font-weight: 700;
}
.thai-datepicker-day.disabled {
    color: var(--muted, #8891a5);
    opacity: 0.4;
    cursor: not-allowed;
}
.thai-datepicker-day.empty {
    cursor: default;
}
