/* Floating Chat Widget Styles for Lashed By Zuks */
.chat-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    width: auto !important;
    z-index: 9999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff7eb3, #ff758c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s;
    animation: pulse 2s infinite;
    z-index: 9999;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 126, 179, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 126, 179, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 126, 179, 0);
    }
}

.chat-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 400px;
    height: 550px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10001;
}

.chat-container.open {
    display: flex !important;
}

.chat-header {
    background: linear-gradient(135deg, #ff7eb3, #ff758c);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.assistant-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.assistant-info h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.status {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    display: inline-block;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    z-index: 10000;
}

.close-chat:hover {
    transform: scale(1.1);
}

/* Booking Options Container (Hair By Belz Style) */
.booking-options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    width: 100%;
}

.booking-option-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    cursor: pointer !important;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    pointer-events: auto !important;
    z-index: 10;
}

/* Only disable pointer events on non-interactive elements */
.booking-option-card .booking-option-icon,
.booking-option-card .booking-option-content,
.booking-option-card h5,
.booking-option-card p {
    pointer-events: none;
}

/* Ensure button and its contents are clickable */
.booking-option-btn,
.booking-option-btn * {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Make the entire card clickable */
.booking-option-card {
    cursor: pointer !important;
}

.booking-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff7eb3, #ff758c);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.booking-option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 126, 179, 0.2);
    border-color: #ff7eb3;
}

.booking-option-card:hover::before {
    opacity: 1;
}

.booking-option-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 126, 179, 0.1), rgba(255, 117, 140, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ff7eb3;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.booking-option-card:hover .booking-option-icon {
    background: linear-gradient(135deg, #ff7eb3, #ff758c);
    color: white;
    transform: rotate(5deg);
}

.booking-option-content {
    flex: 1;
    min-width: 0;
}

.booking-option-content h5 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.booking-option-content p {
    margin: 0;
    font-size: 0.82rem;
    color: #666;
    line-height: 1.4;
}

.booking-option-btn {
    background: linear-gradient(135deg, #C0A16B, #a88b5a);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    align-self: center;
    box-shadow: 0 2px 8px rgba(192, 161, 107, 0.3);
}

.booking-option-btn:hover {
    background: linear-gradient(135deg, #a88b5a, #91784d);
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(192, 161, 107, 0.4);
}

/* Welcome Message Styles */
.welcome-message {
    width: 100%;
    max-width: 100%;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 10px 0 !important;
}

.welcome-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 126, 179, 0.05), rgba(255, 117, 140, 0.05));
    border-radius: 12px;
}

.welcome-header h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff7eb3;
}

.welcome-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.option-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #eaeaea;
}

.option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #ff7eb3;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.option-icon {
    font-size: 1.5rem;
    color: #ff7eb3;
}

.option-title {
    font-weight: 600;
    color: #ff758c;
    font-size: 1rem;
}

.option-description {
    font-size: 0.85rem;
    color: #666;
    text-align: left;
    margin-bottom: 10px;
}

.option-btn {
    background: #C0A16B;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.option-btn:hover {
    background: #a81452;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

/* Enhanced Service Selection Styles */
.service-selection-container {
    width: 100%;
    margin-top: 10px;
}

.service-intro {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.services-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.service-card-enhanced {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.service-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #ff7eb3, #ff758c);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card-enhanced:hover {
    border-color: #ff7eb3;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 126, 179, 0.2);
}

.service-card-enhanced:hover::before {
    transform: scaleX(1);
}

.service-card-enhanced:active {
    transform: translateY(-1px);
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 8px;
}

.service-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.service-card-duration {
    font-size: 0.7rem;
    color: #666;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
}

.service-card-duration i {
    font-size: 0.65rem;
}

.service-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #C0A16B;
    background: linear-gradient(135deg, rgba(192, 161, 107, 0.1), rgba(192, 161, 107, 0.05));
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* Enhanced Time Slot Styles */
.time-slots-enhanced {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.time-slot-enhanced {
    background: white;
    border: 2px solid #e8e8e8;
    padding: 10px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.time-slot-enhanced:hover {
    border-color: #ff7eb3;
    background: linear-gradient(135deg, rgba(255, 126, 179, 0.05), rgba(255, 117, 140, 0.05));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 126, 179, 0.2);
}

.time-slot-enhanced:active {
    transform: translateY(0);
}

.time-slot-enhanced.selected {
    background: linear-gradient(135deg, #ff7eb3, #ff758c);
    color: white;
    border-color: #ff7eb3;
    box-shadow: 0 4px 15px rgba(255, 126, 179, 0.3);
}

.time-slot.disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.5;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #f5f5f8;
}

.message {
    max-width: 85%;
    padding: 12px 15px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-message {
    background-color: white;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.user-message {
    background: linear-gradient(135deg, #ff7eb3, #ff758c);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply {
    background: #f0f0f0;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s;
}

.quick-reply:hover {
    background: #e0e0e0;
}

.chat-input {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid #eaeaea;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
}

.chat-input input:focus {
    border-color: #ff7eb3;
}

.chat-input button {
    background: linear-gradient(135deg, #ff7eb3, #ff758c);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.chat-input button:hover {
    opacity: 0.9;
}

.booking-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

/* Enhanced Booking Summary Styles */
.booking-summary-enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 18px;
    margin-top: 12px;
    border: 2px solid #e8e8e8;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.booking-summary-header {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #ff7eb3;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.booking-summary-header i {
    margin-right: 8px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-label i {
    color: #ff7eb3;
    font-size: 0.85rem;
    width: 16px;
}

.summary-value {
    font-weight: 600;
    color: #333;
    text-align: right;
    max-width: 60%;
}

.summary-total {
    padding-top: 12px;
    border-top: 2px solid #e0e0e0;
    margin-top: 12px;
}

.summary-total .summary-label {
    font-weight: 700;
    color: #333;
}

.summary-total .summary-value {
    font-weight: 700;
    color: #C0A16B;
    font-size: 1.1rem;
}

.summary-item:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
    font-weight: bold;
}

.confirmation-message {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Success and Error Message Styles */
.success-message {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border-left: 4px solid #4CAF50;
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.success-message strong {
    color: #2e7d32;
    font-weight: 600;
}

.error-message {
    background: linear-gradient(135deg, #ffebee 0%, #fff5f5 100%);
    border-left: 4px solid #f44336;
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.error-message strong {
    color: #c62828;
    font-weight: 600;
}

/* Policy Container Styles */
.policy-container {
    width: 100%;
    margin-top: 10px;
}

.policy-container h4 {
    text-align: center;
    color: #ff7eb3;
    margin-bottom: 15px;
    font-size: 1rem;
}

.policy-container h4 i {
    margin-right: 8px;
}

.policy-section {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e8e8e8;
}

.policy-section h5 {
    color: #ff758c;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.policy-section p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Calendar Styles */
.calendar {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 10px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #ff7eb3;
    padding: 5px;
}

.calendar-month {
    font-weight: 600;
    color: #a81452;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    text-align: center;
    padding: 8px 5px;
    font-weight: bold;
    font-size: 0.7rem;
    color: #666;
}

.calendar-date {
    text-align: center;
    padding: 8px 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.8rem;
}

.calendar-date:hover {
    background: #f0f0f0;
}

.calendar-date.selected {
    background: #ff7eb3;
    color: white;
}

.calendar-date.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-date.disabled:hover {
    background: transparent;
}

.calendar-date.today {
    background: #C0A16B;
    color: white;
}

/* Enhanced Date Selection Styles */
.date-selection-container {
    width: 100%;
    margin-top: 10px;
}

.date-intro {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.date-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.date-option-enhanced {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 500;
    color: #333;
}

.date-option-enhanced:hover {
    border-color: #ff7eb3;
    background: linear-gradient(135deg, rgba(255, 126, 179, 0.05), rgba(255, 117, 140, 0.05));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 126, 179, 0.15);
}

.date-option-enhanced:active {
    transform: translateY(0);
}

.date-options-more {
    text-align: center;
    margin-top: 8px;
}

.more-dates-btn {
    background: linear-gradient(135deg, #C0A16B, #a88b5a);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(192, 161, 107, 0.3);
}

.more-dates-btn:hover {
    background: linear-gradient(135deg, #a88b5a, #91784d);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(192, 161, 107, 0.4);
}

.calendar-date.fully-booked {
    background-color: #ff4757 !important;
    color: white !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.calendar-date.fully-booked:hover {
    background-color: #ff4757 !important;
    transform: none;
}

/* Responsive Styles */
@media (max-width: 480px) {
    .chat-container {
        width: calc(100vw - 40px);
        right: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile View Fixes for Floating Widget */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 85px !important; /* Raised to be above mobile bottom nav (70px + 15px) */
        right: 15px !important;
        left: auto !important; /* Don't stretch across the bottom, keep to side */
        width: auto !important;
    }

    .chat-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        margin-left: auto; /* Push to right side */
    }

    .chat-container {
        width: 350px;
        max-width: calc(100vw - 30px);
        height: 70vh;
        max-height: 500px;
        bottom: 70px;
        right: 0;
        left: auto;
        border-radius: 15px;
    }

    .chat-messages {
        height: calc(100% - 120px);
        padding: 12px;
    }

    .message {
        max-width: 90%;
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .options-container {
        gap: 8px;
    }

    .option-card {
        padding: 12px;
    }

    .option-header {
        gap: 8px;
    }

    .option-icon {
        font-size: 1.3rem;
    }

    .option-title {
        font-size: 0.9rem;
    }

    .option-description {
        font-size: 0.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .service-option {
        padding: 12px 8px;
        font-size: 0.8rem;
    }

    .services-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .service-card-enhanced {
        padding: 12px;
    }

    .service-card-title {
        font-size: 0.8rem;
    }

    .service-card-price {
        font-size: 1rem;
        padding: 6px 10px;
    }

    .time-slots {
        gap: 6px;
    }

    .time-slot {
        padding: 8px 10px;
        font-size: 0.75rem;
        flex: 1;
        min-width: calc(33% - 6px);
        text-align: center;
    }

    .quick-replies {
        gap: 6px;
        padding: 12px 12px 6px;
    }

    .quick-reply {
        padding: 6px 10px;
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .calendar {
        padding: 10px;
    }

    .calendar-date {
        padding: 6px 3px;
        font-size: 0.75rem;
    }

    .booking-summary {
        padding: 12px;
    }

    .booking-summary-enhanced {
        padding: 14px;
    }

    .booking-summary-header {
        font-size: 0.9rem;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .summary-item {
        font-size: 0.8rem;
        margin-bottom: 5px;
        padding: 6px 0;
    }

    .summary-label {
        font-size: 0.75rem;
        gap: 6px;
    }

    .summary-label i {
        font-size: 0.7rem;
    }

    .summary-value {
        font-size: 0.8rem;
        max-width: 55%;
    }

    .summary-total .summary-value {
        font-size: 1rem;
    }

    .confirmation-message {
        padding: 12px;
        font-size: 0.8rem;
    }

    .chat-input {
        padding: 12px;
    }

    .chat-input input {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .chat-input button {
        width: 38px;
        height: 38px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .chat-widget {
        bottom: 85px !important;
        right: 10px !important;
        left: auto !important;
    }

    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .chat-container {
        height: 75vh;
        bottom: 65px;
    }

    .chat-header {
        padding: 12px;
    }

    .chat-header h3 {
        font-size: 1rem;
    }

    .status {
        font-size: 0.65rem;
    }

    .calendar-grid {
        gap: 3px;
    }

    .calendar-date {
        padding: 5px 2px;
        font-size: 0.7rem;
    }

    .time-slot {
        min-width: calc(50% - 3px);
    }
}

/* Fix for very tall screens */
@media (max-height: 700px) and (max-width: 768px) {
    .chat-container {
        height: 80vh;
        max-height: none;
    }
}

/* Landscape mode fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .chat-container {
        height: 85vh;
        max-height: none;
    }

    .chat-messages {
        height: calc(100% - 100px);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Prevent body scrolling when widget is open on mobile */
.chat-container[style*="display: flex"] ~ body {
    overflow: hidden;
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .chat-toggle:hover {
        transform: none;
    }

    .option-card:hover {
        transform: none;
    }

    .service-option:hover,
    .time-slot:hover,
    .quick-reply:hover {
        background-color: initial;
    }

    .service-option:active,
    .time-slot:active,
    .quick-reply:active,
    .option-card:active {
        background-color: #ff7eb3;
        color: white;
        border-color: #ff7eb3;
    }
}

/* Safe area insets for notched phones */
@supports (padding: max(0px)) {
    .chat-widget {
        bottom: max(15px, env(safe-area-inset-bottom));
        right: max(15px, env(safe-area-inset-right));
        left: max(15px, env(safe-area-inset-left));
    }
}