/**
 * WooServiceBookings Frontend Styles
 */

/* Error Messages */
.wsb-error {
    padding: 15px;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
    border-radius: 4px;
}

/* Notice Messages */
.wsb-notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.wsb-notice-warning {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    color: #e65100;
}

.wsb-notice-info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1565c0;
}

.wsb-notice p {
    margin: 0;
}

/* Calendar Container */
.wsb-booking-form {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.wsb-booking-form h3 {
    margin-top: 0;
    color: #333;
}

.wsb-service-info {
    margin-bottom: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.wsb-service-info span {
    display: inline-block;
}

/* Duration Options Selector */
.wsb-duration-step {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wsb-duration-step h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.wsb-duration-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.wsb-duration-option {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    padding: 20px 15px;
    background: #f7f7f7;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wsb-duration-option:hover {
    border-color: #2196F3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
    transform: translateY(-2px);
}

.wsb-duration-option.selected {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-color: #1976D2;
    color: #fff;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.wsb-duration-option .wsb-option-duration {
    font-size: 1.3em;
    font-weight: bold;
}

.wsb-duration-option .wsb-option-label {
    font-size: 0.85em;
    color: #666;
}

.wsb-duration-option.selected .wsb-option-label {
    color: rgba(255, 255, 255, 0.9);
}

.wsb-duration-option .wsb-option-price {
    font-size: 1.1em;
    font-weight: 600;
    color: #2e7d32;
}

.wsb-duration-option.selected .wsb-option-price {
    color: #fff;
}

/* Step headings */
.wsb-step h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

/* Slot priority hint */
.wsb-slot-hint {
    margin-top: 10px;
    font-size: 0.85em;
    color: #888;
    font-style: italic;
}

/* Recommended slot styling */
.wsb-slots-grid .wsb-slot.recommended,
button.wsb-slot.recommended {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-color: #4caf50;
    position: relative;
}

.wsb-slots-grid .wsb-slot.recommended::before,
button.wsb-slot.recommended::before {
    content: '★';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #4caf50;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

/* Calendar */
.wsb-calendar-container {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wsb-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wsb-calendar-header button {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.wsb-calendar-header button:hover {
    background: #f0f0f0;
}

.wsb-month-year {
    font-weight: bold;
    font-size: 1.2em;
}

.wsb-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.wsb-calendar-day {
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.wsb-calendar-day.header {
    font-weight: bold;
    color: #666;
    cursor: default;
}

.wsb-calendar-day.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.wsb-calendar-day.available:hover {
    background: #c8e6c9;
}

.wsb-calendar-day.unavailable {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.wsb-calendar-day.selected {
    background: #2196F3;
    color: #fff;
}

.wsb-calendar-day.today {
    border: 2px solid #2196F3;
}

.wsb-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    display: none;
}

/* Time Slots */
.wsb-slots-container {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wsb-slots-container h4 {
    margin-top: 0;
}

.wsb-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

/* No slots available message */
.wsb-no-slots {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Time slot buttons - defensive selectors against theme button resets */
.wsb-slots-grid .wsb-slot,
button.wsb-slot {
    padding: 10px 16px;
    margin: 4px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff;
    background-image: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    text-align: center;
}

.wsb-slots-grid .wsb-slot:hover,
button.wsb-slot:hover {
    border-color: #7b2d8e;
    background-color: #f8f0fb;
    background-image: none;
}

.wsb-slots-grid .wsb-slot.selected,
button.wsb-slot.selected {
    border-color: #7b2d8e;
    background-color: #7b2d8e;
    background-image: none;
    color: white;
}

/* Staff Selection Step */
.wsb-staff-step {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wsb-staff-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.wsb-staff-option {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 20px 15px;
    background: #f7f7f7;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.wsb-staff-option:hover {
    border-color: #2196F3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
    transform: translateY(-2px);
}

.wsb-staff-option.selected {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-color: #1976D2;
    color: #fff;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.wsb-staff-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.wsb-staff-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #90caf9, #42a5f5);
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
}

.wsb-staff-option.selected .wsb-staff-placeholder {
    background: rgba(255, 255, 255, 0.3);
}

.wsb-staff-name {
    font-weight: 600;
    font-size: 0.95em;
}

.wsb-staff-option.selected .wsb-staff-name {
    color: #fff;
}

/* Calendar step label for selected staff */
.wsb-staff-calendar-label {
    font-weight: normal;
    font-size: 0.85em;
    color: #666;
    margin-left: 10px;
}

/* Legacy staff container (for older theme compat) */
.wsb-staff-container {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wsb-staff-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Selection Summary */
.wsb-selection-summary {
    margin-top: 20px;
    padding: 15px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
}

.wsb-selection-summary p {
    margin: 5px 0;
}

/* Waiver Section */
.wsb-waiver-section {
    margin: 20px 0;
    padding: 20px;
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
}

.wsb-waiver-section h3 {
    margin-top: 0;
    color: #e65100;
}

.wsb-waiver-text-container details {
    margin-bottom: 15px;
}

.wsb-waiver-text-container summary {
    cursor: pointer;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
}

.wsb-waiver-text {
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.9em;
    line-height: 1.6;
}

.wsb-waiver-accepted {
    color: #2e7d32;
    font-weight: bold;
}

/* Deposit Option */
.wsb-deposit-section {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.wsb-deposit-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.wsb-payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wsb-payment-option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.wsb-payment-option:hover {
    border-color: #2196F3;
    background: #f5f5f5;
}

.wsb-payment-option input[type="radio"] {
    margin-right: 10px;
    margin-top: 4px;
}

.wsb-payment-option:has(input:checked) {
    border-color: #2196F3;
    background: #e3f2fd;
}

.wsb-option-content {
    display: flex;
    flex-direction: column;
}

.wsb-option-content strong {
    margin-bottom: 3px;
}

.wsb-option-content small {
    color: #666;
    margin-top: 3px;
}

.wsb-full-price,
.wsb-deposit-price {
    color: #2e7d32;
    font-weight: 600;
}

/* Waiver checkbox */
.wsb-waiver-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    font-weight: 500;
}

.wsb-waiver-checkbox input[type="checkbox"] {
    margin-top: 3px;
}

.wsb-waiver-checkbox .required {
    color: #c62828;
}

/* Add to Cart Button */
.wsb-add-to-cart-section {
    margin-top: 20px;
    text-align: center;
}

.wsb-book-now-btn {
    background: linear-gradient(135deg, #4caf50, #2e7d32) !important;
    border: none !important;
    color: #fff !important;
    padding: 15px 50px !important;
    font-size: 1.2em !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.wsb-book-now-btn:hover {
    background: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

/* Error Messages */
.wsb-error {
    padding: 15px;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
    border-radius: 4px;
}

/* Booking Details on Order Page */
.woocommerce-booking-details {
    margin: 30px 0;
}

.woocommerce-booking-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
}

.woocommerce-booking-item ul {
    margin: 10px 0;
    padding-left: 20px;
}

.woocommerce-booking-notice {
    padding: 10px 15px;
    background: #e8f5e9;
    border-radius: 4px;
    color: #2e7d32;
}

/* Add-ons Step */
.wsb-addons-step {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wsb-addons-step h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.wsb-addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.wsb-addon-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 15px;
    background: #f7f7f7;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.wsb-addon-card:hover {
    border-color: #2196F3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
    transform: translateY(-2px);
    background: #f7f7f7;
}

.wsb-addon-card.selected {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-color: #1976D2;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.wsb-addon-card input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.wsb-addon-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.wsb-addon-name {
    font-weight: 600;
    font-size: 1em;
    color: #333;
    line-height: 1.3;
}

.wsb-addon-card.selected .wsb-addon-name {
    color: #fff;
}

.wsb-addon-price {
    font-weight: 600;
    color: #2e7d32;
    font-size: 1.05em;
}

.wsb-addon-card.selected .wsb-addon-price {
    color: #fff;
}

.wsb-addon-description {
    font-size: 0.85em;
    color: #666;
    line-height: 1.5;
    margin-top: 2px;
}

.wsb-addon-card.selected .wsb-addon-description {
    color: rgba(255, 255, 255, 0.9);
}

.wsb-addons-total {
    padding: 15px 20px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.wsb-addons-total-amount {
    font-weight: 700;
    font-size: 1.1em;
}

.wsb-continue-to-time {
    display: inline-block;
    padding: 12px 40px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.wsb-continue-to-time:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

/* Summary add-ons line */
.wsb-summary-addons {
    font-size: 0.95em;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .wsb-booking-form {
        padding: 15px;
    }

    .wsb-booking-form h3 {
        font-size: 1.3em;
    }

    .wsb-step h4 {
        font-size: 1em;
    }

    /* Duration options - 2 columns on tablet */
    .wsb-duration-options {
        gap: 10px;
    }

    .wsb-duration-option {
        min-width: 100px;
        padding: 15px 10px;
    }

    .wsb-duration-option .wsb-option-duration {
        font-size: 1.1em;
    }

    /* Staff options - wrap nicely */
    .wsb-staff-options {
        gap: 10px;
    }

    .wsb-staff-option {
        min-width: 100px;
        padding: 15px 10px;
    }

    .wsb-staff-photo {
        width: 50px;
        height: 50px;
    }

    /* Calendar */
    .wsb-calendar-days {
        font-size: 0.9em;
    }

    .wsb-calendar-day {
        padding: 8px 5px;
    }

    /* Time slots - 3 columns */
    .wsb-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .wsb-slots-grid .wsb-slot,
    button.wsb-slot {
        padding: 10px 5px;
        font-size: 0.85em;
    }

    /* Add-ons grid - 2 columns on tablet */
    .wsb-addons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .wsb-addon-card {
        padding: 15px 12px;
    }

    .wsb-addon-name {
        font-size: 0.95em;
    }

    .wsb-addon-price {
        font-size: 1em;
    }

    .wsb-addons-total {
        padding: 12px 15px;
        font-size: 1em;
    }

    .wsb-continue-to-time {
        width: 100%;
        text-align: center;
        padding: 12px 30px;
    }

    /* Payment options stack */
    .wsb-payment-option {
        padding: 12px;
    }

    /* Book button */
    .wsb-book-now-btn {
        padding: 12px 30px !important;
        font-size: 1.1em !important;
        width: 100%;
    }
}

/* Tip Selection Interface */
.wsb-tip-selection {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #c8e6c9;
    margin-bottom: 20px;
}

.wsb-tip-selection h3 {
    margin: 0 0 15px 0;
    color: #2e7d32;
    font-size: 16px;
}

.wsb-tip-selection__description {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.wsb-tip-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.wsb-tip-btn {
    min-width: 80px;
    text-align: center;
}

.wsb-tip-btn small {
    display: block;
    font-size: 0.85em;
}

.wsb-tip-btn--no-tip {
    color: #666;
}

.wsb-tip-custom-input {
    display: none;
    margin-bottom: 15px;
}

.wsb-tip-custom-input__wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wsb-tip-custom-input__symbol {
    font-weight: bold;
    font-size: 16px;
}

.wsb-tip-custom-input__field {
    width: 100px;
    padding: 8px;
}

.wsb-tip-display {
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #a5d6a7;
}

.wsb-tip-display__text {
    color: #2e7d32;
    font-weight: bold;
}

/* Deposit Options */
.wsb-deposit-option {
    margin-bottom: 20px;
}

.wsb-deposit-option h3 {
    margin-bottom: 15px;
}

.wsb-deposit-option__choice {
    margin-bottom: 10px;
}

.wsb-deposit-option__choice label {
    display: block;
    cursor: pointer;
}

.wsb-deposit-option__choice input[type="radio"] {
    margin-right: 8px;
}

/* Payment type selector styles */
.wsb-payment-type-selector {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.wsb-payment-type-option {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 4px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.wsb-payment-type-option:hover {
    background: #f0e8f5;
}

.wsb-payment-type-option input[type="radio"] {
    margin-right: 10px;
}

.wsb-deposit-breakdown {
    margin-top: 12px;
    padding: 12px;
    background: #fff3cd;
    border-radius: 6px;
    font-size: 13px;
}

.wsb-deposit-amount,
.wsb-balance-amount {
    font-weight: bold;
    color: #2e7d32;
}

/* My Account Bookings Status Colors */
.order-status-completed {
    color: #4caf50;
    font-weight: bold;
}

.order-status-cancelled {
    color: #f44336;
}

.order-status-pending {
    color: #ff9800;
}

.order-status-confirmed {
    color: #2196f3;
}

.wsb-balance-due {
    color: #e2401c;
}

/* Pay Balance Button */
.wsb-pay-balance-btn {
    background-color: #007bff !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px;
    margin-top: 8px;
    display: inline-block;
    text-decoration: none !important;
    font-weight: 600;
    transition: background-color 0.2s;
}

.wsb-pay-balance-btn:hover {
    background-color: #0056b3 !important;
    color: white !important;
}

/* Deposit Status Badges in My Account */
.wsb-deposit-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wsb-deposit-status--none {
    background-color: #e0e0e0;
    color: #666;
}

.wsb-deposit-status--deposit_paid {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.wsb-deposit-status--balance_pending {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #007bff;
}

.wsb-deposit-status--fully_paid {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

.wsb-balance-action {
    margin-top: 8px;
    text-align: left;
}

/* Waiver Signing Page */
.wsb-signing-container {
    max-width: 800px;
    margin: 0 auto;
}

.wsb-success-message {
    text-align: center;
    padding: 40px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}

.wsb-success-message h1 {
    color: #16a34a;
}

.wsb-success-message p {
    font-size: 18px;
}

.wsb-waiver-document {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
    background: #fff;
}

.wsb-waiver-document h2 {
    margin-top: 0;
}

.wsb-waiver-content {
    max-height: 300px;
    overflow-y: auto;
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.wsb-waiver-agreement {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.wsb-waiver-agreement input[type="checkbox"] {
    margin: 0;
}

.wsb-signature-section {
    margin-top: 30px;
}

.wsb-signature-section h3 {
    margin-bottom: 10px;
}

.wsb-signature-pad-wrapper {
    border: 2px solid #333;
    display: inline-block;
    background: #fff;
    border-radius: 4px;
    margin-bottom: 10px;
}

#wsb-signature-pad {
    touch-action: none;
    cursor: crosshair;
    display: block;
}

.wsb-thankyou-waiver {
    margin: 20px 0;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.wsb-thankyou-waiver--warning {
    border: 2px solid #d63638;
    background-color: #fff5f5;
}

.wsb-thankyou-waiver--warning h2 {
    color: #d63638;
    margin-top: 0;
}

.wsb-thankyou-waiver--success {
    border: 1px solid #4caf50;
    background-color: #f6ffed;
}

.wsb-thankyou-waiver--success p {
    color: #4caf50;
    font-weight: bold;
    margin: 0;
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .wsb-booking-form {
        padding: 10px;
        margin: 10px -10px;
    }

    /* Duration options - full width stack */
    .wsb-duration-options {
        flex-direction: column;
    }

    .wsb-duration-option {
        max-width: none;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 15px;
    }

    .wsb-duration-option .wsb-option-duration {
        font-size: 1em;
    }

    .wsb-duration-option .wsb-option-label {
        flex: 1;
        margin: 0 10px;
    }

    .wsb-duration-option .wsb-option-price {
        font-size: 1em;
    }

    /* Staff options - horizontal scroll */
    .wsb-staff-options {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .wsb-staff-option {
        flex-shrink: 0;
        min-width: 90px;
    }

    .wsb-staff-photo {
        width: 45px;
        height: 45px;
    }

    .wsb-staff-name {
        font-size: 0.85em;
    }

    /* Calendar compact */
    .wsb-calendar-header {
        padding: 10px;
    }

    .wsb-calendar-day {
        padding: 6px 3px;
        font-size: 0.85em;
    }

    .wsb-calendar-day.header {
        font-size: 0.75em;
    }

    /* Time slots - 2 columns on very small screens */
    .wsb-slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .wsb-slots-grid .wsb-slot,
    button.wsb-slot {
        padding: 8px 4px;
        font-size: 0.8em;
    }

    .wsb-slots-grid .wsb-slot.recommended::before,
    button.wsb-slot.recommended::before {
        width: 16px;
        height: 16px;
        font-size: 10px;
        line-height: 16px;
        top: -6px;
        right: -6px;
    }

    /* Selection summary */
    .wsb-selection-summary {
        padding: 12px;
    }

    .wsb-summary-details {
        font-size: 0.9em;
    }

    /* Waiver section */
    .wsb-waiver-section {
        padding: 15px;
    }

    .wsb-waiver-text {
        max-height: 150px;
        font-size: 0.85em;
    }

    .wsb-waiver-checkbox {
        font-size: 0.9em;
    }

    /* Add-ons single column on mobile */
    .wsb-addons-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .wsb-addon-card {
        padding: 15px 12px;
        gap: 10px;
    }

    .wsb-addon-name {
        font-size: 0.95em;
    }

    .wsb-addon-price {
        font-size: 1em;
    }

    .wsb-addon-description {
        font-size: 0.85em;
    }

    .wsb-addons-step {
        padding: 15px;
    }

    .wsb-addons-total {
        padding: 12px 15px;
        font-size: 0.95em;
        margin-bottom: 15px;
    }

    .wsb-addons-total-amount {
        font-size: 1.05em;
    }

    .wsb-continue-to-time {
        width: 100%;
        text-align: center;
        padding: 12px 25px;
        font-size: 1em;
    }

    /* Deposit section */
    .wsb-deposit-section {
        padding: 15px;
    }

    .wsb-payment-option {
        padding: 10px;
    }

    /* Book button full width */
    .wsb-book-now-btn {
        width: 100%;
        padding: 15px 20px !important;
        font-size: 1em !important;
    }

    /* Service info wrap */
    .wsb-service-info {
        flex-direction: column;
        gap: 5px;
    }

    /* Tip buttons stack on mobile */
    .wsb-tip-buttons {
        flex-direction: column;
    }

    .wsb-tip-btn {
        width: 100%;
        min-width: auto;
    }

    /* Waiver signing responsive */
    .wsb-signature-pad-wrapper {
        width: 100%;
    }

    #wsb-signature-pad {
        width: 100%;
        max-width: 400px;
    }
}

/* =========================================
   CHECKOUT WAIVER SECTION
   ========================================= */

/**
 * Main Checkout Waiver Container
 * Similar to existing .wsb-waiver-section but optimized for checkout context
 * Orange accent indicates importance and required attention
 */
.wsb-checkout-waiver {
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #e65100;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wsb-checkout-waiver__header {
    margin-top: 0;
    margin-bottom: 15px;
    color: #e65100;
    font-size: 1.2em;
    font-weight: 600;
}

/**
 * Valid Waiver Notice
 * Displayed when customer already has a waiver on file
 * Green success state for positive confirmation
 */
.wsb-checkout-waiver__valid {
    padding: 15px;
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 8px;
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wsb-checkout-waiver__valid::before {
    content: '\2713';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #4caf50;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

/**
 * Scrollable Waiver Text Container
 * Contains the full waiver document text
 * Scrollable to accommodate various lengths
 */
.wsb-checkout-waiver__text {
    max-height: 250px;
    overflow-y: auto;
    padding: 15px;
    margin-bottom: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    line-height: 1.6;
    color: #555;
    font-size: 0.95em;
}

/**
 * Questions Container
 * Holds all custom waiver questions
 */
.wsb-checkout-waiver__questions {
    margin-bottom: 20px;
}

/**
 * Individual Question Row
 * Contains label and input field
 */
.wsb-checkout-waiver__question {
    margin-bottom: 15px;
    padding: 12px 15px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.wsb-checkout-waiver__question label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 0.95em;
}

.wsb-checkout-waiver__question .required {
    color: #d63638;
    margin-left: 3px;
}

/**
 * Text Input Fields
 * Standard text inputs for open-ended questions
 */
.wsb-checkout-waiver__question input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wsb-checkout-waiver__question input[type="text"]:focus {
    border-color: #7c3aed;
    outline: none;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

/**
 * Radio Button Group (Yes/No Questions)
 * Horizontal flex layout for radio options
 */
.wsb-checkout-waiver__question .wsb-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.wsb-checkout-waiver__question .wsb-radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0;
}

.wsb-checkout-waiver__question .wsb-radio-group input[type="radio"] {
    cursor: pointer;
    margin: 0;
}

/**
 * Field Error State
 * Applied when validation fails
 */
.wsb-checkout-waiver__question.wsb-field-error {
    border-color: #d63638;
    background: #fff5f5;
}

/**
 * Agreement Checkbox
 * Primary consent checkbox - visually emphasized
 * Yellow background highlights importance
 */
.wsb-checkout-waiver__agreement {
    margin: 20px 0;
    padding: 15px;
    background: #fff8e1;
    border: 1px solid #ffcc80;
    border-radius: 4px;
}

.wsb-checkout-waiver__agreement label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    color: #333;
}

.wsb-checkout-waiver__agreement input[type="checkbox"] {
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.wsb-checkout-waiver__agreement .required {
    color: #d63638;
}

/**
 * Signature Section
 * Contains digital signature pad and controls
 */
.wsb-checkout-waiver__signature {
    margin-top: 20px;
}

.wsb-checkout-waiver__signature > label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 1em;
}

/**
 * Signature Pad Wrapper
 * Contains the canvas element
 * Border indicates active drawing area
 */
.wsb-checkout-waiver__signature-pad {
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #ffffff;
    cursor: crosshair;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.wsb-checkout-waiver__signature-pad canvas {
    display: block;
    width: 100%;
    height: auto;
    touch-action: none;
}

/**
 * Clear Signature Button
 * Allows user to reset signature and redraw
 */
.wsb-checkout-waiver__clear-btn {
    margin-top: 8px;
    padding: 6px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.wsb-checkout-waiver__clear-btn:hover {
    background: #e8e8e8;
    border-color: #ccc;
    color: #333;
}

.wsb-checkout-waiver__clear-btn:active {
    background: #ddd;
}

/* =========================================
   RESPONSIVE OVERRIDES - TABLET
   ========================================= */

@media (max-width: 768px) {
    .wsb-checkout-waiver {
        padding: 15px;
    }

    .wsb-checkout-waiver__text {
        max-height: 200px;
        padding: 12px;
        font-size: 0.9em;
    }

    .wsb-checkout-waiver__question {
        padding: 10px 12px;
    }

    .wsb-checkout-waiver__agreement {
        padding: 12px;
    }
}

/* =========================================
   RESPONSIVE OVERRIDES - MOBILE
   ========================================= */

@media (max-width: 480px) {
    .wsb-checkout-waiver {
        padding: 12px;
        margin: 15px 0;
    }

    .wsb-checkout-waiver__header {
        font-size: 1.1em;
    }

    .wsb-checkout-waiver__text {
        max-height: 150px;
        padding: 10px;
        font-size: 0.85em;
    }

    .wsb-checkout-waiver__question {
        padding: 10px;
        margin-bottom: 12px;
    }

    .wsb-checkout-waiver__question label {
        font-size: 0.9em;
    }

    .wsb-checkout-waiver__question .wsb-radio-group {
        flex-direction: column;
        gap: 8px;
    }

    .wsb-checkout-waiver__agreement {
        padding: 12px;
        font-size: 0.9em;
    }

    .wsb-checkout-waiver__signature-pad {
        border-width: 2px;
    }

    .wsb-checkout-waiver__clear-btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   MULTI-WAIVER CARD COMPONENTS
   New card-based design for multiple waivers
   ========================================= */

/**
 * Main Section Title
 * Displayed at the top of the waiver section
 */
.wsb-checkout-waiver__title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #e65100;
    font-size: 1.3em;
    font-weight: 600;
}

/**
 * Individual Waiver Card
 * Each waiver gets its own card with header, body, and form
 */
.wsb-waiver-card {
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #e65100;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.wsb-waiver-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/**
 * Card Header
 * Contains title and badge
 */
.wsb-waiver-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
    gap: 15px;
}

.wsb-waiver-card__title {
    margin: 0;
    font-size: 1.05em;
    font-weight: 600;
    color: #333;
    flex: 1;
}

/**
 * Status Badge
 * Shows "On File" for valid waivers
 */
.wsb-waiver-card__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.wsb-waiver-card__badge--valid {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/**
 * Card Body
 * Main content area
 */
.wsb-waiver-card__body {
    padding: 20px;
}

/**
 * Form Container
 * Wraps all form elements within a card
 */
.wsb-waiver-card__form {
    display: block;
}

/**
 * Scrollable Waiver Text
 * Contains the full waiver document
 */
.wsb-waiver-card__text {
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    margin-bottom: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    line-height: 1.6;
    color: #555;
    font-size: 0.95em;
}

/**
 * Questions Container
 * Wraps custom waiver questions
 */
.wsb-waiver-card__questions {
    margin-bottom: 20px;
}

/**
 * Agreement Section
 * Primary consent checkbox with highlighted background
 */
.wsb-waiver-card__agreement {
    margin: 20px 0;
    padding: 15px;
    background: #fff8e1;
    border: 1px solid #ffcc80;
    border-radius: 6px;
}

.wsb-waiver-card__agreement label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    color: #333;
}

.wsb-waiver-card__agreement input[type="checkbox"] {
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.wsb-waiver-card__agreement .required {
    color: #d63638;
}

.wsb-waiver-card__agreement.wsb-field-error {
    border-color: #d63638;
    background: #fff5f5;
}

/**
 * Signature Section
 * Digital signature pad and controls
 */
.wsb-waiver-card__signature {
    margin-top: 20px;
}

.wsb-waiver-card__signature > label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 1em;
}

/**
 * Signature Pad Container
 * Wraps the canvas element
 */
.wsb-waiver-card__signature-pad {
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #ffffff;
    cursor: crosshair;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    display: block;
    margin-bottom: 10px;
    transition: border-color 0.2s ease;
}

.wsb-waiver-card__signature-pad:hover {
    border-color: #999;
}

.wsb-waiver-card__signature-pad canvas {
    display: block;
    width: 100%;
    height: auto;
    touch-action: none;
}

.wsb-waiver-card__signature-pad canvas.wsb-field-error {
    border-color: #d63638;
}

/**
 * Clear Signature Button
 * Allows user to reset signature
 */
.wsb-waiver-card__clear-btn {
    padding: 8px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.wsb-waiver-card__clear-btn:hover {
    background: #e8e8e8;
    border-color: #ccc;
    color: #333;
}

.wsb-waiver-card__clear-btn:active {
    background: #ddd;
    transform: translateY(1px);
}

/**
 * Valid Waiver Notice
 * Shown when waiver is already on file
 */
.wsb-waiver-card__valid-notice {
    display: block;
}

.wsb-waiver-card__valid-notice p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 15px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    color: #2e7d32;
    font-weight: 600;
    font-size: 0.95em;
}

.wsb-waiver-card__valid-notice .dashicons {
    color: #4caf50;
    font-size: 1.2em;
}

/* =========================================
   RESPONSIVE - TABLET (Multi-waiver cards)
   ========================================= */

@media (max-width: 768px) {
    .wsb-waiver-card__header {
        padding: 14px 16px;
    }

    .wsb-waiver-card__title {
        font-size: 1em;
    }

    .wsb-waiver-card__body {
        padding: 16px;
    }

    .wsb-waiver-card__text {
        max-height: 180px;
        padding: 12px;
        font-size: 0.9em;
    }

    .wsb-waiver-card__agreement {
        padding: 12px;
    }
}

/* =========================================
   RESPONSIVE - MOBILE (Multi-waiver cards)
   ========================================= */

@media (max-width: 480px) {
    .wsb-checkout-waiver__title {
        font-size: 1.15em;
    }

    .wsb-waiver-card {
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .wsb-waiver-card__header {
        padding: 12px 14px;
        flex-wrap: wrap;
    }

    .wsb-waiver-card__title {
        font-size: 0.95em;
    }

    .wsb-waiver-card__badge {
        font-size: 0.7em;
        padding: 3px 10px;
    }

    .wsb-waiver-card__body {
        padding: 14px;
    }

    .wsb-waiver-card__text {
        max-height: 150px;
        padding: 10px;
        font-size: 0.85em;
    }

    .wsb-waiver-card__agreement {
        padding: 12px;
        font-size: 0.9em;
    }

    .wsb-waiver-card__signature-pad {
        border-width: 2px;
    }

    .wsb-waiver-card__clear-btn {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
    }

    .wsb-waiver-card__valid-notice p {
        font-size: 0.9em;
        padding: 10px 12px;
    }

    .wsb-checkout-waiver__question .wsb-radio-group {
        flex-direction: column;
        gap: 8px;
    }
}