/* ============================================================
   Chat Booking – Inline booking flow styles inside the AI chat
   ============================================================ */

/* -----------------------------------------------------------------------
   Provider Selection
   ----------------------------------------------------------------------- */
.cb-provider-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.cb-provider-btn {
    padding: 8px 14px;
    border: 2px solid var(--optic-chat-primary, #268CCD);
    border-radius: 20px;
    background: #ffffff;
    color: var(--optic-chat-primary, #268CCD);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    line-height: 1.3;
    font-family: inherit;
}

.cb-provider-btn:hover {
    background: var(--optic-chat-primary, #268CCD);
    color: var(--optic-chat-button-text, #ffffff);
}

/* -----------------------------------------------------------------------
   Calendar (Inline)
   ----------------------------------------------------------------------- */
.cb-cal-provider-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--optic-chat-primary, #268CCD);
    margin: 0 0 8px;
    text-align: center;
}

.cb-calendar {
    width: 100%;
    max-width: 280px;
    user-select: none;
}

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

.cb-cal-month-label {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
}

.cb-cal-nav-btn {
    background: #f0f4f8;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    width: 26px;
    height: 26px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
    font-family: inherit;
}

.cb-cal-nav-btn:hover {
    background: #e2e8f0;
}

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

.cb-cal-day-name {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: #718096;
    padding: 2px 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cb-cal-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.12s;
    background: transparent;
    padding: 0;
    font-family: inherit;
}

.cb-cal-empty {
    cursor: default;
    pointer-events: none;
}

.cb-cal-unavailable {
    color: #cbd5e0;
    cursor: not-allowed;
    pointer-events: none;
}

.cb-cal-available {
    background: #ebf8f0;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.cb-cal-available:hover {
    background: #9ae6b4;
    color: #276749;
}

.cb-cal-selected {
    background: var(--optic-chat-primary, #268CCD) !important;
    color: #ffffff !important;
    border-color: var(--optic-chat-primary, #268CCD) !important;
}

/* -----------------------------------------------------------------------
   Time Slots
   ----------------------------------------------------------------------- */
.cb-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 4px;
}

.cb-slot-btn {
    padding: 7px 4px;
    border: 2px solid #e2e8f0;
    border-radius: 7px;
    background: #f8f9fb;
    color: #4a5568;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.cb-slot-btn:hover {
    border-color: var(--optic-chat-primary, #268CCD);
    color: var(--optic-chat-primary, #268CCD);
    background: #ebf5fb;
}

.cb-no-slots {
    font-size: 13px;
    color: #718096;
    margin: 4px 0 0;
}

/* -----------------------------------------------------------------------
   Service Selection
   ----------------------------------------------------------------------- */
.cb-service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.cb-service-btn {
    padding: 6px 12px;
    border: 2px solid var(--optic-chat-primary, #268CCD);
    border-radius: 16px;
    background: #ffffff;
    color: var(--optic-chat-primary, #268CCD);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}

.cb-service-btn:hover {
    background: var(--optic-chat-primary, #268CCD);
    color: var(--optic-chat-button-text, #ffffff);
}

/* -----------------------------------------------------------------------
   Booking Summary
   ----------------------------------------------------------------------- */
.cb-summary {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.6;
    color: #2d3748;
    max-width: 280px;
}

.cb-summary-title {
    font-weight: 700;
    font-size: 13px;
    color: #2d3748;
    margin: 0 0 6px;
}

.cb-summary-divider {
    border-top: 1px dashed #cbd5e0;
    margin: 6px 0;
}

.cb-summary p {
    margin: 2px 0;
}

.cb-confirm-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: linear-gradient(
        135deg,
        var(--optic-chat-primary, #268CCD) 0%,
        var(--optic-chat-secondary, #1a6ba3) 100%
    );
    color: var(--optic-chat-button-text, #ffffff);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: 0.02em;
    font-family: inherit;
}

.cb-confirm-btn:hover:not(:disabled) {
    opacity: 0.88;
    transform: translateY(-1px);
}

.cb-confirm-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* -----------------------------------------------------------------------
   Loader
   ----------------------------------------------------------------------- */
.cb-loader {
    font-size: 12px;
    color: #718096;
    padding: 8px 0;
    text-align: center;
}

/* -----------------------------------------------------------------------
   Responsive adjustments inside narrow chat widget
   ----------------------------------------------------------------------- */
@media (max-width: 400px) {
    .cb-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
