        /* Widget Base Styles - No External Dependencies */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: var(--font-family);
            font-size: var(--font-size);
            background-color: var(--background-color);
            color: var(--text-color);
            line-height: 1.5;
            padding: var(--spacing);
        }

        .widget-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .widget-header {
            text-align: center;
            margin-bottom: calc(var(--spacing) * 1.5);
        }

        .widget-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--text-color);
            margin-bottom: 0.5rem;
        }

        .widget-subtitle {
            font-size: 0.9rem;
            color: var(--text-color-dim);
        }

        .widget-logo {
            max-width: 120px;
            max-height: 60px;
            margin-bottom: 1rem;
        }

        /* Navigation */
        .widget-nav {
            display: flex;
            gap: 0.5rem;
            margin-bottom: var(--spacing);
            padding-bottom: var(--spacing);
            border-bottom: 1px solid var(--border-color);
        }

        .widget-nav-btn {
            padding: 0.5rem 1rem;
            border: 1px solid var(--primary-color);
            background: transparent;
            color: var(--primary-color);
            border-radius: var(--border-radius);
            cursor: pointer;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.2s;
        }

        .widget-nav-btn:hover,
        .widget-nav-btn.active {
            background: var(--primary-color);
            color: white;
        }

        /* Calendar Grid */
        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 0.5rem;
            margin-bottom: var(--spacing);
        }

        .calendar-day {
            text-align: center;
            padding: 0.5rem;
            font-weight: 600;
            font-size: 0.85rem;
            color: var(--text-color);
            border-bottom: 2px solid var(--border-color);
        }

        .calendar-cell {
            min-height: 80px;
            min-width: 0;
            padding: 0.5rem;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: all 0.2s;
        }

        .calendar-cell:hover {
            border-color: var(--primary-color);
        }

        .calendar-cell.empty {
            background: var(--card-background-color);
            cursor: default;
        }

        .calendar-cell.has-slots {
            background: #f0fdf4;
            border-color: #86efac;
        }

        .calendar-cell-date {
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 0.25rem;
        }

        .calendar-cell-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--primary-color);
            margin: 0 auto;
        }

        /* Therapist List */
        .therapist-list {
            display: grid;
            gap: 0.75rem;
            margin-bottom: var(--spacing);
        }

        .therapist-card {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            cursor: pointer;
            text-decoration: none;
            color: var(--text-color);
            transition: all 0.2s;
        }

        .therapist-card:hover {
            border-color: var(--primary-color);
        }

        .therapist-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: white;
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        .therapist-info {
            flex: 1;
        }

        .therapist-name {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }

        .therapist-slots {
            font-size: 0.85rem;
            color: var(--text-color-dim);
        }

        .therapist-arrow {
            color: var(--text-color-muted);
        }

        /* Time Slots */
        .time-slots {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.75rem;
            margin-bottom: var(--spacing);
        }

        .time-slot {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0.75rem 0.5rem;
            min-height: 60px;
            text-align: center;
            border: 2px solid var(--primary-color);
            border-radius: var(--border-radius);
            cursor: pointer;
            text-decoration: none;
            color: var(--primary-color);
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.2s;
            background: var(--card-background-color);
        }

        .time-slot:hover {
            background: var(--primary-color);
            color: white;
        }

        .time-slot.booked {
            border-color: var(--border-color);
            color: var(--text-color-muted);
            cursor: not-allowed;
            opacity: 0.6;
        }

        /* Forms */
        .widget-form {
            max-width: 400px;
            margin: 0 auto;
        }

        .form-group {
            margin-bottom: 1rem;
        }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .form-input {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            font-family: inherit;
            font-size: inherit;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        .btn {
            display: inline-block;
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: var(--border-radius);
            font-family: inherit;
            font-size: inherit;
            cursor: pointer;
            text-decoration: none;
            text-align: center;
            transition: all 0.2s;
        }

        .btn-primary {
            background: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            opacity: 0.9;
        }

        .btn-secondary {
            background: var(--secondary-color);
            color: white;
        }

        .btn-secondary:hover {
            opacity: 0.9;
        }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--primary-color);
            color: var(--primary-color);
        }

        .btn-outline:hover {
            background: var(--primary-color);
            color: white;
        }

        .btn-block {
            width: 100%;
        }

        /* Messages */
        .message {
            padding: 1rem;
            border-radius: var(--border-radius);
            margin-bottom: var(--spacing);
        }

        .message-success {
            background: #f0fdf4;
            border: 1px solid #86efac;
            color: #166534;
        }

        .message-error {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #991b1b;
        }

        /* Footer */
        .widget-footer {
            text-align: center;
            margin-top: calc(var(--spacing) * 2);
            padding-top: var(--spacing);
            border-top: 1px solid var(--border-color);
            font-size: 0.85rem;
            color: var(--text-color-muted);
        }

        /* Waitlist Link */
        .waitlist-link {
            text-align: center;
            margin-top: var(--spacing);
            padding: 1rem;
            background: var(--card-background-color);;
            border-radius: var(--border-radius);
        }

        .waitlist-link a {
            color: var(--primary-color);
            text-decoration: none;
        }

        .waitlist-link a:hover {
            text-decoration: underline;
        }

        /* Calendar Header */
        .calendar-header {
            text-align: center;
            margin-bottom: 0.5rem;
        }

        .calendar-header h3 {
            margin: 0;
            color: var(--text-color);
            font-size: 1.1rem;
        }

        /* Calendar List (14-day view) */
        .calendar-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            margin-bottom: 2rem;
        }

        .calendar-list-item {
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 1rem;
            background: var(--card-background-color);
        }

        .calendar-list-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
        }

        .calendar-list-header .date-label {
            font-weight: 600;
            color: var(--text-color);
        }

        .calendar-list-header .slot-count {
            font-size: 0.875rem;
            color: var(--availability-high);
            font-weight: 500;
        }

        .calendar-list-slots {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        /* Slot link with therapist color via CSS custom property */
        .slot-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.75rem;
            width: 100%;
            overflow: hidden;
            background: color-mix(in srgb, var(--t-color, #3b82f6) 8%, transparent);
            border: 1px solid var(--t-color, #3b82f6);
            border-radius: 6px;
            text-decoration: none;
            color: var(--text-color);
            font-size: 0.875rem;
            transition: all 0.2s;
        }

        .slot-link:hover {
            background: color-mix(in srgb, var(--t-color, #3b82f6) 19%, transparent);
            transform: translateY(-2px);
        }

        .slot-link .slot-time {
            font-weight: 600;
        }

        .slot-meta {
            color: var(--text-color-muted);
            font-size: 0.75rem;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .slot-link .slot-meta {
            color: var(--text-color-muted);
            font-size: 0.75rem;
        }

        /* Slot link compact variant (for time-slot grid) */
        .time-slot-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0.5rem;
            width: 100%;
            overflow: hidden;
            border: 2px solid var(--t-color, #3b82f6);
            border-radius: 8px;
            text-decoration: none;
            color: var(--text-color);
            background: var(--card-background-color);
            transition: all 0.2s;
            font-weight: 500;
        }

        .time-slot-link .slot-hour {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--t-color, #3b82f6);
        }

        .time-slot-link .slot-action {
            font-size: 0.75rem;
            color: var(--text-color-dim);
            margin-top: 0.25rem;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .time-slot-link .slot-meta {
            font-size: 0.65rem;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .time-slot-link:hover {
            background: color-mix(in srgb, var(--t-color, #3b82f6) 8%, transparent);
            transform: translateY(-2px);
        }

        /* Day Details Panel */
        .day-details {
            display: none;
            margin-top: 1rem;
            padding: 1rem;
            background: var(--card-background-color);;
            border-radius: 12px;
            border: 1px solid var(--border-color);
        }

        .day-details-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .day-details-header h4 {
            margin: 0;
            color: var(--text-color);
        }

        .day-details-close {
            background: none;
            border: none;
            font-size: 1.25rem;
            cursor: pointer;
            color: var(--text-color-dim);
        }

        /* Availability Summary Badge */
        .availability-summary {
            text-align: center;
            margin-bottom: 1rem;
        }

        .availability-summary span {
            display: inline-block;
            padding: 0.5rem 1rem;
            background: color-mix(in srgb, var(--availability-high) 8%, transparent);
            color: var(--availability-high);
            border-radius: 20px;
            font-size: 0.875rem;
            font-weight: 500;
        }

        .availability-summary.empty span {
            background: color-mix(in srgb, var(--secondary-color) 8%, transparent);
            color: var(--secondary-color);
        }

        /* Calendar Cell (Grid view) */
        .calendar-cell-inner {
            position: relative;
            overflow: hidden;
        }

        .calendar-cell .availability-bar {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--cell-color, var(--card-border-color));
        }

        .calendar-cell .cell-date {
            font-size: 1rem;
            font-weight: bold;
            margin-bottom: 0.25rem;
        }

        .calendar-cell .cell-date.active {
            color: var(--text-color);
        }

        .calendar-cell .cell-date.inactive {
            color: var(--text-color-muted);
        }

        .calendar-cell .cell-slots-preview {
            font-size: 0.65rem;
            color: var(--text-color-dim);
            line-height: 1.3;
        }

        .calendar-cell .cell-more {
            color: var(--text-color-muted);
        }

        .calendar-cell .cell-empty {
            font-size: 0.65rem;
            color: var(--text-color-muted);
            margin-top: 0.5rem;
        }

        .calendar-cell .cell-badge {
            position: absolute;
            bottom: 4px;
            right: 4px;
            width: 18px;
            height: 18px;
            background: var(--cell-color, var(--card-border-color));
            color: white;
            border-radius: 50%;
            font-size: 0.65rem;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .calendar-cell .cell-free-count {
            font-size: 0.65rem;
            font-weight: 600;
            color: var(--cell-color, var(--card-border-color));
            background: var(--card-background-color);
            padding: 1px 4px;
            border-radius: 8px;
            border: 1px solid var(--cell-color, var(--card-border-color));
        }

        .availability-dots {
            display: flex;
            gap: 2px;
            justify-content: center;
            margin-bottom: 0.25rem;
        }

        .availability-dot {
            width: 6px;
            height: 6px;
            background: var(--cell-color, var(--card-border-color));
            border-radius: 50%;
            display: inline-block;
        }

        /* Utility Text Colors */
        .text-strong {
            color: var(--text-color);
        }

        .text-dim {
            color: var(--text-color-dim);
        }

        .text-muted {
            color: var(--text-color-muted);
        }

        .text-success {
            color: #22c55e;
        }

        .text-white {
            color: white;
        }

        .text-center {
            text-align: center;
        }

        .text-sm {
            font-size: 0.85rem;
        }

        .text-lg {
            font-size: 1.1rem;
        }

        .mt-4 {
            margin-top: 1rem;
        }

        .mt-8 {
            margin-top: 2rem;
        }

        .mb-4 {
            margin-bottom: 1rem;
        }

        .mb-6 {
            margin-bottom: 1.5rem;
        }

        .mb-8 {
            margin-bottom: 2rem;
        }

        .bg-light {
            background: var(--card-background-color);;
        }

        .p-6 {
            padding: 1.5rem;
        }

        /* Therapist group header in day details */
        .therapist-group {
            margin-bottom: 1rem;
        }

        .therapist-group-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            padding: 0.5rem;
            background: color-mix(in srgb, var(--secondary-color) 8%, transparent);
            border-radius: 8px;
        }

        .therapist-group-header .therapist-avatar-sm {
            min-width: 32px;
            min-height: 32px;
            border-radius: 50%;
            background: var(--t-color, var(--secondary-color));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 0.875rem;
        }

        .therapist-group-header .therapist-label {
            font-weight: 600;
            color: var(--text-color);
        }

        .therapist-group-slots {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        /* Booking form extras */
        .booking-terms {
            margin-top: 2rem;
            text-align: center;
            font-size: 0.85rem;
            color: var(--text-color-dim);
        }

        /* Back button spacer */
        .back-nav {
            margin-bottom: 1.5rem;
        }

        .mt-8 {
            margin-top: 2rem;
        }

        /* Mobile-first Responsive */
        @media (max-width: 640px) {
            body {
                padding: 0.75rem;
            }

            .widget-title {
                font-size: 1.25rem;
            }

            .widget-subtitle {
                font-size: 0.8rem;
            }

            .widget-nav {
                flex-wrap: wrap;
                gap: 0.4rem;
            }

            .widget-nav-btn {
                padding: 0.4rem 0.75rem;
                font-size: 0.8rem;
            }

            /* Calendar - show as 7 columns but smaller */
            .calendar-grid {
                grid-template-columns: repeat(7, minmax(0, 1fr));
                gap: 0.25rem;
            }

            .calendar-day {
                font-size: 0.7rem;
                padding: 0.25rem;
            }

            .calendar-cell {
                min-height: 45px;
                padding: 0.25rem;
            }

            .calendar-cell-date {
                font-size: 0.65rem;
            }

            .calendar-cell-indicator {
                width: 6px;
                height: 6px;
            }

            /* Calendar list view - full width items */
            .calendar-list {
                gap: 0.5rem;
            }

            .calendar-list-item {
                padding: 0.75rem;
            }

            .calendar-list-item>div:first-child {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.25rem;
            }

            .calendar-list-item>div:last-child {
                gap: 0.4rem;
            }

            .calendar-list-item a {
                padding: 0.625rem 0.75rem;
                font-size: 0.9rem;
                min-height: 44px;
            }

            /* Time slots - larger touch targets */
            .time-slots {
                grid-template-columns: repeat(3, 1fr);
                gap: 0.5rem;
            }

            .time-slot {
                padding: 0.75rem 0.25rem;
                font-size: 0.9rem;
                min-height: 52px;
            }

            /* Therapist cards */
            .therapist-card {
                padding: 0.75rem;
                gap: 0.75rem;
            }

            .therapist-avatar {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }

            .therapist-name {
                font-size: 0.9rem;
            }

            .therapist-slots {
                font-size: 0.8rem;
            }

            /* Form inputs - larger touch targets */
            .form-input {
                padding: 0.875rem;
                font-size: 16px;
                /* Prevents zoom on iOS */
                min-height: 44px;
            }

            .btn {
                padding: 0.875rem 1.25rem;
                min-height: 44px;
            }

            .form-label {
                font-size: 0.9rem;
            }

            /* Messages */
            .message {
                padding: 0.875rem;
            }

            /* Availability legend */
            .availability-legend {
                flex-wrap: wrap;
                gap: 0.5rem;
                font-size: 0.7rem;
            }

            /* Waitlist link */
            .waitlist-link {
                padding: 0.75rem;
                font-size: 0.85rem;
            }
        }
