/* ============================================================
   WPForms Google Meet — Slot Picker
   ============================================================ */

.wfgm-slot-picker {
    font-family: inherit;
    max-width: 420px;
}

/* ── Calendar wrapper ── */
.wfgm-cal-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* ── Nav bar ── */
.wfgm-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1da1f2;
    padding: 12px 16px;
    color: #fff;
}
.wfgm-cal-title {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .3px;
}
.wfgm-nav-btn {
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background .15s;
}
.wfgm-nav-btn:hover  { background: rgba(255,255,255,.35); }
.wfgm-nav-btn:disabled { opacity: .3; cursor: not-allowed; }

/* ── Day-of-week header ── */
.wfgm-cal-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #eef2ff;
    padding: 6px 8px 4px;
}
.wfgm-cal-dow span {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Date grid ── */
.wfgm-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 8px;
}
.wfgm-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .15s;
    position: relative;
}
/* Empty cells at start of month */
.wfgm-day.wfgm-day-empty { pointer-events: none; }

/* Available */
.wfgm-day.wfgm-day-avail {
    background: #f0fdf4;
    color: #166534;
}
.wfgm-day.wfgm-day-avail:hover {
    background: #dcfce7;
    border-color: #16a34a;
}
/* Fully booked */
.wfgm-day.wfgm-day-full {
    background: #fef2f2;
    color: #991b1b;
    cursor: not-allowed;
}
.wfgm-day.wfgm-day-full::after {
    content: '';
    position: absolute;
    bottom: 3px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #ef4444;
}
/* Unavailable (weekend / past / outside window) */
.wfgm-day.wfgm-day-off {
    background: #000;
    color: #d1d5db;
    cursor: not-allowed;
}
/* Today */
.wfgm-day.wfgm-day-today {
    font-weight: 800;
    box-shadow: inset 0 0 0 2px #6366f1;
}
/* Selected */
.wfgm-day.wfgm-day-selected {
    background: #1da1f2 !important;
    color: #fff !important;
    border-color: #1da1f2 !important;
    box-shadow: 0 2px 8px rgba(79,70,229,.4);
}

/* ── Legend ── */
.wfgm-cal-legend {
    display: flex;
    gap: 12px;
    padding: 8px 12px 10px;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
}
.wfgm-leg {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #6b7280;
}
.wfgm-leg::before {
    content: '';
    width: 10px; height: 10px;
    border-radius: 3px;
}
.wfgm-leg-avail::before { background: #dcfce7; border: 1px solid #16a34a; }
.wfgm-leg-full::before  { background: #fef2f2; border: 1px solid #ef4444; }
.wfgm-leg-off::before   { background: #000; border: 1px solid #e5e7eb; }

/* ── Time slots panel ── */
.wfgm-slots-panel {
    margin-top: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.wfgm-slots-heading {
    background: #f8fafc;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}
.wfgm-slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
}
.wfgm-slot-btn {
    padding: 8px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    min-width: 82px;
    text-align: center;
}
.wfgm-slot-btn:hover:not(.wfgm-slot-taken):not(.wfgm-slot-selected) {
    border-color: #1da1f2;
    color: #1da1f2;
    background: #eef2ff;
}
.wfgm-slot-btn.wfgm-slot-selected {
    background: #1da1f2 !important;
    border-color: #1da1f2 !important;
    color: #fff;
    box-shadow: 0 2px 8px rgba(79,70,229,.3);
}
.wfgm-slot-btn.wfgm-slot-taken {
    background: #000;
    border-color: #f3f4f6;
    color: #d1d5db;
    cursor: not-allowed;
    text-decoration: line-through;
}
.wfgm-loading-slots {
    color: #6b7280;
    font-size: 13px;
    padding: 4px 0;
    width: 100%;
}
.wfgm-slots-panel {
    padding: 30px 0 !important;
}
button.wfgm-slot-btn {
    background: #000 !important;
}

.wfgm-slots-heading {
    color: #1da1f2 !important;
    padding: 0 0 15px 0 !important;
}
button.wfgm-slot-btn {
    background: #000 !important;
    color: #fff;
}
/* ── Confirmation badge ── */
.wfgm-confirm-badge {
    margin-top: 12px;
    padding: 11px 15px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    color: #3730a3;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}
