/* TableTurn — shared calendar widget styling (General Booking + Events forms) */

.tt-cal-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

.tt-cal-input {
    cursor: pointer;
    background: #fff;
}

.tt-cal-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 100;
    width: 280px;
    max-width: 90vw;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    padding: 12px;
    color: #fff;
    font-size: 13px;
}

.tt-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tt-cal-label {
    font-weight: 600;
    font-size: 14px;
}

.tt-cal-nav {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    line-height: 1;
    cursor: pointer;
    font-size: 16px;
}
.tt-cal-nav:hover:not(:disabled) { background: #555; }
.tt-cal-nav:disabled { opacity: 0.35; cursor: not-allowed; }

.tt-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    color: #999;
    font-size: 11px;
    margin-bottom: 4px;
}

.tt-cal-loading {
    text-align: center;
    color: #999;
    padding: 20px 0;
    margin: 0;
}

.tt-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.tt-cal-day {
    background: transparent;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    aspect-ratio: 1;
    min-height: 30px;
    cursor: pointer;
    font-size: 12px;
}
.tt-cal-day:hover:not(:disabled) {
    border-color: #5ab85a;
    background: #333;
}
.tt-cal-day--selected {
    background: #5ab85a;
    color: #1a1a1a;
    font-weight: 700;
}
.tt-cal-day--disabled {
    color: #555;
    cursor: not-allowed;
}
.tt-cal-day--blank {
    cursor: default;
}
