/**
 * AppointmentDesk — Frontend Booking Form
 * Mobile-first, clean, touch-friendly.
 */

.adesk-booking-form {
    width: 100%;
    margin: 32px auto 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Booking page (standalone): constrain width */
.adesk-booking-page .adesk-booking-form {
    max-width: 720px;
}

.adesk-booking-form-wrapper {
    /* Wrapper for entire form - can be styled by customers */
}

.adesk-booking-form * {
    box-sizing: border-box;
}

/* === Steps === */
.adesk-step {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.adesk-intro-text {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 16px;
    background: #f9fafb;
    border-left: 4px solid #2563eb;
    border-radius: 4px;
}

.adesk-calendar-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.adesk-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.adesk-step-content {
    /* Wrapper for step content - allows customers to add custom spacing */
}

.adesk-confirmation-content {
    /* Wrapper for confirmation content - allows customers to center/align */
    text-align: center;
}

.adesk-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.adesk-step-title {
    font-size: 17px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
}

/* === Option Cards (Calendar/Service selection) === */
.adesk-option-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adesk-option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-align: left;
    font-size: 14px;
}

.adesk-option-card:hover {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.adesk-option-color {
    width: 8px;
    height: 32px;
    border-radius: 4px;
    flex-shrink: 0;
}

.adesk-option-name {
    font-weight: 600;
    color: #1d2327;
}

.adesk-option-detail {
    font-size: 12px;
    color: #888;
    margin-left: auto;
}

.adesk-option-card-inactive {
    opacity: 0.6;
    cursor: not-allowed;
}

.adesk-option-card-inactive:hover {
    border-color: #e5e7eb;
    box-shadow: none;
}

.adesk-option-card-inactive .adesk-option-color {
    filter: grayscale(100%);
}

.adesk-inactive-message {
    margin-top: 16px;
    padding: 16px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adesk-inactive-message .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
}

/* === Time Grid === */
.adesk-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.adesk-time-slot {
    padding: 10px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1d2327;
    text-align: center;
    transition: all 0.15s;
}

.adesk-time-slot:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

/* === Date Picker === */
.adesk-date-picker-row {
    margin-bottom: 16px;
}

.adesk-date-input {
    width: 100%;
    max-width: 200px;
}

/* === Form === */
.adesk-form-row {
    margin-bottom: 14px;
}

.adesk-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.adesk-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.adesk-form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.adesk-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.adesk-form-feedback {
    margin-top: 12px;
    font-size: 13px;
}

/* === Buttons === */
.adesk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.adesk-btn-primary {
    background: #2563eb;
    color: #fff;
}

.adesk-btn-primary:hover {
    background: #1d4ed8;
}

.adesk-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.adesk-btn-secondary:hover {
    background: #e5e7eb;
}

.adesk-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.adesk-back-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 12px;
}

.adesk-back-btn:hover {
    color: #2563eb;
}

/* === Loading === */
.adesk-step-loading,
.adesk-booking-loading {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.adesk-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: adesk-spin 0.6s linear infinite;
}

@keyframes adesk-spin {
    to { transform: rotate(360deg); }
}

/* === Confirmation === */
.adesk-confirmation {
    text-align: center;
}

.adesk-confirmation-icon {
    margin-bottom: 12px;
}

.adesk-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    font-size: 28px;
}

.adesk-confirmation-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 8px 0;
}

.adesk-confirmation-msg {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.adesk-confirmation-details {
    text-align: left;
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.adesk-detail-row {
    padding: 4px 0;
    font-size: 13px;
    color: #374151;
    display: flex;
    gap: 8px;
}

.adesk-detail-label {
    font-weight: 600;
    color: #1d2327;
    flex-shrink: 0;
}

.adesk-detail-value {
    color: #374151;
}

.adesk-confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

/* === Feedback === */
.adesk-error {
    color: #dc2626;
    font-size: 13px;
}

.adesk-saving {
    color: #6b7280;
    font-size: 13px;
}

.adesk-empty {
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}

.adesk-hint {
    color: #9ca3af;
    font-size: 13px;
}

.adesk-tz-hint {
    color: #6b7280;
    font-size: 12px;
    margin: 0 0 8px;
    text-align: center;
}

.adesk-tz-dayshift {
    color: #9ca3af;
    font-size: 10px;
}

/* === Cancel Page === */
.adesk-cancel-page {
    max-width: 480px;
    margin: 48px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.adesk-cancel-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.adesk-cancel-icon {
    margin-bottom: 16px;
}

.adesk-cancel-warning-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fef3c7;
    color: #d97706;
    font-size: 28px;
}

.adesk-cancel-error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fef2f2;
    color: #dc2626;
    font-size: 28px;
}

.adesk-cancel-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 8px 0;
}

.adesk-cancel-desc {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.adesk-cancel-details {
    text-align: left;
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.adesk-cancel-form {
    margin: 0;
}

.adesk-cancel-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.adesk-btn-danger {
    background: #dc2626;
    color: #fff;
}

.adesk-btn-danger:hover {
    background: #b91c1c;
}

.adesk-status-cancelled {
    color: #dc2626;
    font-weight: 600;
}

.adesk-cancel-contact {
    font-size: 13px;
    color: #6b7280;
    margin-top: 16px;
    line-height: 1.6;
}

.adesk-cancel-contact a {
    color: #2563eb;
    text-decoration: none;
}

.adesk-cancel-contact a:hover {
    text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 480px) {
    .adesk-step {
        padding: 16px;
    }

    .adesk-time-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === Mobile Responsive === */
@media (max-width: 600px) {

    /* Container: full width, no side margins cutting into space */
    .adesk-booking-form {
        max-width: 100%;
        margin-top: 16px;
        padding: 0 8px;
    }

    /* Steps: tighter padding, no horizontal overflow */
    .adesk-step {
        padding: 16px 14px;
        border-radius: 8px;
    }

    /* Step header: compact layout */
    .adesk-step-header {
        gap: 8px;
        margin-bottom: 16px;
    }

    .adesk-step-num {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .adesk-step-title {
        font-size: 16px;
    }

    /* Intro and description text: slightly smaller padding */
    .adesk-intro-text {
        font-size: 15px;
        padding: 12px;
        margin-bottom: 16px;
    }

    .adesk-calendar-description {
        font-size: 13px;
        padding: 10px;
        margin-bottom: 12px;
    }

    /* Option cards (calendar/service selection): touch-friendly tap targets */
    .adesk-option-card {
        padding: 16px 14px;
        min-height: 48px;
        font-size: 15px;
        gap: 10px;
    }

    .adesk-option-cards {
        gap: 10px;
    }

    .adesk-option-name {
        font-size: 15px;
    }

    .adesk-option-detail {
        font-size: 12px;
        margin-left: auto;
        text-align: right;
        white-space: nowrap;
    }

    .adesk-option-color {
        width: 6px;
        height: 28px;
    }

    /* Inactive message */
    .adesk-inactive-message {
        font-size: 13px;
        padding: 12px;
    }

    /* Time grid: 3 columns, larger tap targets */
    .adesk-time-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 10px;
    }

    .adesk-time-slot {
        padding: 14px 6px;
        min-height: 44px;
        font-size: 14px;
        border-radius: 8px;
    }

    /* Date picker: full width on mobile */
    .adesk-date-input {
        max-width: 100%;
        width: 100%;
        padding: 12px;
        font-size: 16px; /* Prevents iOS zoom on focus */
        min-height: 44px;
    }

    .adesk-date-picker-row {
        margin-bottom: 14px;
    }

    /* Form fields: full width, touch-friendly sizing */
    .adesk-form-input {
        width: 100%;
        padding: 12px;
        font-size: 16px; /* Prevents iOS zoom on focus */
        min-height: 44px;
        border-radius: 8px;
    }

    .adesk-form-input:is(textarea) {
        min-height: 80px;
    }

    .adesk-form-input:is(select) {
        min-height: 44px;
        font-size: 16px;
    }

    .adesk-form-label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .adesk-form-row {
        margin-bottom: 16px;
    }

    /* Checkbox fields: larger tap area */
    .adesk-form-checkbox {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        font-size: 15px;
    }

    .adesk-form-checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    /* Buttons: full width, touch-friendly height */
    .adesk-form-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
    }

    .adesk-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        min-height: 48px;
        font-size: 15px;
    }

    .adesk-back-btn {
        font-size: 14px;
        padding: 10px 0;
        min-height: 44px;
        text-align: center;
        width: 100%;
    }

    /* Confirmation */
    .adesk-checkmark {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .adesk-confirmation-title {
        font-size: 18px;
    }

    .adesk-confirmation-msg {
        font-size: 14px;
    }

    .adesk-confirmation-details {
        padding: 14px;
    }

    .adesk-detail-row {
        flex-direction: column;
        gap: 2px;
        padding: 6px 0;
    }

    .adesk-confirmation-actions {
        flex-direction: column;
        gap: 10px;
    }

    .adesk-confirmation-actions .adesk-btn {
        width: 100%;
    }

    /* Cancel page */
    .adesk-cancel-page {
        max-width: 100%;
        margin: 24px auto;
        padding: 0 8px;
    }

    .adesk-cancel-card {
        padding: 24px 16px;
        border-radius: 8px;
    }

    .adesk-cancel-title {
        font-size: 18px;
    }

    .adesk-cancel-desc {
        font-size: 13px;
    }

    .adesk-cancel-details {
        padding: 14px;
    }

    .adesk-cancel-actions {
        flex-direction: column;
        gap: 10px;
    }

    .adesk-cancel-actions .adesk-btn {
        width: 100%;
        justify-content: center;
    }

    .adesk-cancel-contact {
        font-size: 12px;
    }

    /* Feedback messages */
    .adesk-form-feedback {
        font-size: 13px;
        margin-top: 10px;
    }

    .adesk-empty {
        font-size: 14px;
        padding: 16px 0;
    }

    /* Prevent horizontal scroll */
    .adesk-booking-form-wrapper {
        overflow-x: hidden;
    }

    /* Spinner */
    .adesk-step-loading,
    .adesk-booking-loading {
        padding: 32px 0;
    }
}

/* Very small screens (iPhone SE, older devices) */
@media (max-width: 400px) {

    .adesk-booking-form {
        padding: 0 4px;
    }

    .adesk-step {
        padding: 14px 12px;
    }

    .adesk-step-title {
        font-size: 15px;
    }

    /* Time grid: 2 columns on very narrow screens */
    .adesk-time-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .adesk-time-slot {
        padding: 12px 4px;
        font-size: 13px;
    }

    /* Option cards: stack detail below name */
    .adesk-option-card {
        flex-wrap: wrap;
        padding: 14px 12px;
    }

    .adesk-option-detail {
        margin-left: 0;
        width: 100%;
        padding-left: 16px;
        text-align: left;
        font-size: 11px;
    }

    .adesk-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .adesk-confirmation-details .adesk-detail-row {
        font-size: 12px;
    }

    .adesk-cancel-card {
        padding: 20px 12px;
    }
}
/* ============================================
   QUEUE KIOSK (Customer-facing tablet screen)
   Structure & layout only — colors come from theme file
   ============================================ */

.adesk-queue-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Fix WP admin-bar overlap on standalone kiosk page */
.admin-bar.adesk-queue-page {
    min-height: calc(100vh - 32px);
}
@media screen and (max-width: 782px) {
    .admin-bar.adesk-queue-page {
        min-height: calc(100vh - 46px);
    }
}

.adesk-queue-kiosk {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.adesk-kiosk-wrapper {
    text-align: center;
}

.adesk-kiosk-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.adesk-kiosk-subtitle {
    font-size: 1.1rem;
    margin: 0 0 30px 0;
}

.adesk-kiosk-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 30px;
    font-size: 14px;
}

.adesk-kiosk-pull-section {
    margin: 30px 0;
}

.adesk-kiosk-pull-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 60px;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.adesk-kiosk-pull-btn:hover,
.adesk-kiosk-pull-btn:active {
    transform: scale(1.05);
}

.adesk-kiosk-pull-btn:disabled {
    opacity: 0.6;
    transform: none;
    cursor: wait;
}

.adesk-kiosk-branding {
    text-align: center;
    margin-top: 20px;
    font-size: 11px;
    opacity: 0.4;
}

.adesk-kiosk-branding a {
    color: inherit;
    text-decoration: none;
}

.adesk-kiosk-pull-icon {
    font-size: 3rem;
}

.adesk-kiosk-pull-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Ticket view */
.adesk-kiosk-ticket-view .adesk-kiosk-subtitle {
    margin-bottom: 10px;
}

.adesk-kiosk-ticket-number {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 20px 0;
}

.adesk-kiosk-ahead {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.adesk-kiosk-ahead-count {
    font-size: 2rem;
    font-weight: 700;
}

.adesk-kiosk-ahead-next {
    font-weight: 700;
    font-size: 1.5rem;
}

.adesk-kiosk-wait-estimate {
    font-size: 1rem;
    margin-bottom: 8px;
}

.adesk-kiosk-ticket-time {
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Now serving display */
.adesk-kiosk-now-serving {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid;
}

.adesk-kiosk-now-serving h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 12px 0;
}

.adesk-kiosk-serving-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adesk-kiosk-serving-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
}

.adesk-kiosk-serving-number {
    font-weight: 700;
}

/* Name input */
.adesk-kiosk-name-input {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px;
    padding: 12px 16px;
    border: 2px solid;
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

/* QR Code on ticket */
.adesk-kiosk-qr {
    margin: 20px auto;
    text-align: center;
}
.adesk-kiosk-qr img {
    border-radius: 12px;
    border: 4px solid;
    padding: 8px;
}
.adesk-kiosk-qr-hint {
    font-size: 13px;
    margin-top: 8px;
}

/* Called notification */
.adesk-kiosk-called {
    border-radius: 16px;
    padding: 24px;
    margin: 16px auto;
    max-width: 400px;
    animation: adesk-pulse 1.5s ease-in-out infinite;
    text-align: center;
}
.adesk-kiosk-called h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px;
    text-transform: uppercase;
}
.adesk-kiosk-called-counter {
    font-size: 20px;
}

@keyframes adesk-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px 10px rgba(16,185,129,0.2); }
}

/* No-show timeout info */
.adesk-kiosk-timeout-info {
    font-size: 12px;
    margin-top: 12px;
    text-align: center;
}

/* Online mode adjustments */
.adesk-kiosk-online .adesk-kiosk-pull-btn {
    padding: 28px 48px;
}

/* New number button on ticket screen */
.adesk-kiosk-new-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 28px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

/* Responsive for tablets */
@media (max-width: 600px) {
    .adesk-kiosk-header h1 { font-size: 1.8rem; }
    .adesk-kiosk-ticket-number { font-size: 4rem; }
    .adesk-kiosk-pull-btn { padding: 30px 40px; }
    .adesk-kiosk-pull-text { font-size: 1.2rem; }
}

/* =========================================================================
   Queue TV Display
   Structure & layout only — colors come from theme file
   ========================================================================= */

.adesk-display-page {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* Fix WP admin-bar overlap on standalone pages */
.admin-bar .adesk-queue-display,
.admin-bar .adesk-queue-kiosk {
    min-height: calc(100vh - 32px);
}
@media screen and (max-width: 782px) {
    .admin-bar .adesk-queue-display,
    .admin-bar .adesk-queue-kiosk {
        min-height: calc(100vh - 46px);
    }
}

.adesk-queue-display {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 35px);
}

/* Header */
.adesk-display-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.adesk-display-title {
    font-size: 1.8rem;
    font-weight: 600;
}

.adesk-display-header-stats {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
}

.adesk-display-clock {
    font-size: 1.4rem;
    font-variant-numeric: tabular-nums;
}

/* Single mode */
.adesk-display-single {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.adesk-display-now-label {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.adesk-display-now-number {
    font-size: 12rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.3s ease;
}

.adesk-display-now-customer {
    font-size: 2rem;
    margin-top: 16px;
}

.adesk-display-also {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.adesk-display-also-number {
    font-size: 3rem;
    font-weight: 600;
    padding: 8px 24px;
    border: 2px solid;
    border-radius: 12px;
}

/* Staff mode */
.adesk-display-staff-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 30px 40px;
    align-content: center;
}

.adesk-display-counter {
    border: 1px solid;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.adesk-display-counter-paused {
    opacity: 0.4;
}

.adesk-display-counter-name {
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.adesk-display-counter-number {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
}

.adesk-display-counter-customer {
    font-size: 1.1rem;
}

.adesk-display-counter-status {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* New call animation */
.adesk-display-number-new {
    animation: adeskDisplayPulse 1.5s ease-in-out 3;
}

@keyframes adeskDisplayPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); text-shadow: 0 0 60px rgba(74, 222, 128, 0.6); }
}

/* Bottom bar */
.adesk-display-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-top: 1px solid;
}

.adesk-display-next {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.adesk-display-next-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.adesk-display-next-number {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
}

.adesk-display-next-more {
    font-size: 1rem;
}

.adesk-display-next-empty {
    font-size: 1rem;
    font-style: italic;
}

.adesk-display-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

/* Staff overview (single mode, no active tickets) */
.adesk-display-staff-overview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.adesk-display-staff-row {
    display: grid;
    grid-template-columns: 5fr 2fr 3fr;
    align-items: center;
    padding: 12px 24px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 1.4rem;
    overflow: hidden;
}

.adesk-display-staff-row.adesk-display-staff-row-reversed {
    grid-template-columns: 3fr 2fr 5fr;
}
.adesk-display-staff-row-reversed .adesk-display-staff-num {
    text-align: left;
}
.adesk-display-staff-row-reversed .adesk-display-staff-name {
    text-align: right;
}

.adesk-display-staff-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.adesk-display-staff-status {
    text-align: center;
}

.adesk-display-staff-num {
    font-size: 1.8rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.adesk-display-staff-status {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.adesk-display-branding {
    text-align: center;
    padding: 12px;
    font-size: 11px;
    opacity: 0.4;
}

.adesk-display-branding a {
    color: inherit;
    text-decoration: none;
}

/* Responsive for different screen sizes */
@media (max-width: 1024px) {
    .adesk-display-now-number { font-size: 8rem; }
    .adesk-display-counter-number { font-size: 3.5rem; }
    .adesk-display-staff-grid { padding: 20px; gap: 12px; }
}

@media (max-width: 600px) {
    .adesk-display-header { padding: 12px 20px; }
    .adesk-display-title { font-size: 1.2rem; }
    .adesk-display-now-number { font-size: 5rem; }
    .adesk-display-now-label { font-size: 1.2rem; }
    .adesk-display-counter-number { font-size: 2.5rem; }
    .adesk-display-bottom { padding: 10px 20px; flex-direction: column; gap: 8px; }
    .adesk-display-staff-grid { grid-template-columns: 1fr 1fr; padding: 12px; }
}

/* ============================================
   STAFF COUNTER PAGE
   ============================================ */

.adesk-counter-page {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-bar .adesk-counter-page {
    height: calc(100vh - 32px);
}

@media (max-width: 782px) {
    .admin-bar .adesk-counter-page {
        height: calc(100vh - 46px);
    }
}

#adesk-queue-counter {
    width: 100%;
    max-width: 480px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.adesk-counter-loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    opacity: 0.6;
}

.adesk-counter-header {
    text-align: center;
    padding: 24px 0 16px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

.adesk-counter-staff-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.adesk-counter-cal-name {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 2px;
}

.adesk-counter-status {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adesk-counter-status-available { background: rgba(16, 185, 129, 0.15); color: #059669; }
.adesk-counter-status-busy { background: rgba(59, 130, 246, 0.15); color: #2563eb; }
.adesk-counter-status-paused { background: rgba(245, 158, 11, 0.15); color: #d97706; }

.adesk-counter-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.adesk-counter-ticket {
    text-align: center;
    width: 100%;
}

.adesk-counter-ticket-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    margin-bottom: 8px;
}

.adesk-counter-ticket-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 2px;
}

.adesk-counter-ticket-customer {
    font-size: 1.4rem;
    margin-top: 10px;
    font-weight: 500;
}

.adesk-counter-ticket-status {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    margin-top: 8px;
}

.adesk-counter-ticket-time {
    font-size: 0.85rem;
    opacity: 0.5;
    margin-top: 4px;
}

.adesk-counter-idle {
    text-align: center;
    padding: 20px 0;
}

.adesk-counter-idle-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.adesk-counter-idle-text {
    font-size: 1.2rem;
    opacity: 0.6;
}

.adesk-counter-message {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.6;
    padding: 40px 0;
}

.adesk-counter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-top: 24px;
    justify-content: center;
}

.adesk-counter-action {
    flex: 1;
    min-width: 100px;
    min-height: 56px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.adesk-counter-action:active {
    transform: scale(0.97);
}

.adesk-counter-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.adesk-counter-btn-primary { background: #3b82f6; color: #fff; }
.adesk-counter-btn-success { background: #10b981; color: #fff; }
.adesk-counter-btn-danger { background: #ef4444; color: #fff; }
.adesk-counter-btn-secondary { background: #6b7280; color: #fff; }
.adesk-counter-btn-pause { background: #f59e0b; color: #fff; }

.adesk-counter-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0 40px;
    border-top: 1px solid rgba(128, 128, 128, 0.15);
    justify-content: center;
    align-items: center;
}

.adesk-counter-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.adesk-counter-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
}

.adesk-counter-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.5;
}

.adesk-counter-next {
    width: 100%;
    text-align: center;
    margin-top: 4px;
}

.adesk-counter-next-label {
    font-size: 0.8rem;
    opacity: 0.5;
}

.adesk-counter-next-num {
    display: inline-block;
    padding: 2px 10px;
    margin: 0 3px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(128, 128, 128, 0.1);
}

.adesk-counter-next-more {
    font-size: 0.8rem;
    opacity: 0.5;
}

.adesk-counter-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #fff;
    background: #475569;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10000;
    pointer-events: none;
}

.adesk-counter-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* === Branding === */
.adesk-branding {
    text-align: center;
    padding: 12px 0 4px;
    font-size: 11px;
}

.adesk-branding a {
    color: #c0c0c0;
    text-decoration: none;
}

.adesk-branding a:hover {
    color: #999;
}


/* ============================================
   MULTI-COLUMN BOOKING LAYOUT
   ============================================ */

/* Shortcode: use full available width */
.adesk-two-col {
    display: grid;
    gap: 28px;
    width: 100%;
    padding: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Booking page (standalone): constrain + center */
.adesk-booking-page .adesk-two-col {
    max-width: 1024px;
    margin: 0 auto;
    padding: 24px;
}

/* 3 columns: services | calendar+slots | form */
.adesk-two-col.adesk-mc-3col {
    grid-template-columns: minmax(180px, 1fr) minmax(0, 2.5fr) minmax(200px, 1.2fr);
}

.adesk-two-col:not(.adesk-mc-3col) {
    grid-template-columns: 1fr 2.5fr;
}

.adesk-two-col-left,
.adesk-two-col-right {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.adesk-tc-col-title {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}

/* Sections */
.adesk-tc-section {
    margin-bottom: 16px;
}

.adesk-tc-section:last-child {
    margin-bottom: 0;
}

.adesk-tc-section label,
.adesk-two-col .adesk-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

/* Inputs */
.adesk-two-col select,
.adesk-two-col input[type="text"],
.adesk-two-col input[type="email"],
.adesk-two-col input[type="tel"],
.adesk-two-col input[type="date"],
.adesk-two-col textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1d2327;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.adesk-two-col select:focus,
.adesk-two-col input:focus,
.adesk-two-col textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Service chips (button style) */
.adesk-tc-services {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adesk-tc-service-btn {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    color: #374151;
    transition: all 0.15s;
    text-align: left;
}

.adesk-tc-service-btn:hover {
    border-color: #2563eb;
    background: #f0f7ff;
}

.adesk-tc-service-btn-selected {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.adesk-tc-service-info {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.adesk-tc-service-btn-selected .adesk-tc-service-info {
    color: rgba(255, 255, 255, 0.7);
}

/* Inline month calendar */
.adesk-tc-cal-wrap {
    user-select: none;
}

.adesk-tc-cal-disabled {
    opacity: 0.45;
    pointer-events: none;
}

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

.adesk-tc-cal-nav button {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adesk-tc-cal-nav button:hover {
    background: #f3f4f6;
}

.adesk-tc-cal-month {
    font-weight: 600;
    font-size: 14px;
    color: #1d2327;
}

.adesk-tc-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.adesk-tc-cal-head {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    padding: 4px 0;
}

.adesk-tc-day {
    padding: 10px 0;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.1s;
    color: #374151;
}

.adesk-tc-day:hover:not(.adesk-tc-day-disabled):not(.adesk-tc-day-empty) {
    background: #f0f7ff;
    color: #2563eb;
}

.adesk-tc-day-empty {
    cursor: default;
}

.adesk-tc-day-disabled {
    color: #d1d5db;
    cursor: default;
}

.adesk-tc-day-today {
    font-weight: 700;
}

.adesk-tc-day-selected {
    background: #2563eb !important;
    color: #fff !important;
    font-weight: 600;
}

/* Time slots grid */
.adesk-tc-slots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.adesk-tc-slot {
    padding: 10px 16px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    transition: all 0.15s;
    color: #374151;
}

.adesk-tc-slot:hover {
    border-color: #2563eb;
    background: #f0f7ff;
}

.adesk-tc-slot-selected {
    border-color: #2563eb !important;
    background: #2563eb !important;
    color: #fff !important;
}

.adesk-tc-slot-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.adesk-tc-slot-past {
    opacity: 0.5;
}

/* === Price Display === */
.adesk-price-display,
.adesk-tc-price {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    margin-bottom: 12px;
}

.adesk-price-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.adesk-price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #16a34a;
}

/* Submit button */
.adesk-tc-submit {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.15s;
    display: flex;
    justify-content: center;
}

.adesk-tc-submit:hover { background: #1d4ed8; }
.adesk-tc-submit:disabled { background: #9ca3af; cursor: not-allowed; }

/* Required */
.adesk-two-col .adesk-required { color: #dc2626; }

/* Hint */
.adesk-tc-empty,
.adesk-hint {
    color: #9ca3af;
    font-size: 13px;
    font-style: italic;
    padding: 4px 0;
}

/* Confirmation */
.adesk-tc-confirmation {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
}
.adesk-tc-confirmation h2 { color: #10b981; margin: 0 0 8px; }

/* Responsive */
@media (max-width: 900px) {
    .adesk-two-col.adesk-mc-3col {
        grid-template-columns: minmax(0, 240px) 1fr;
    }
    .adesk-two-col.adesk-mc-3col .adesk-two-col-right:last-child {
        grid-column: 1 / -1;
    }
}

/* Service Extras */
.adesk-extras-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.adesk-extra-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.adesk-extra-option:hover {
    border-color: #6b7280;
    background: #f9fafb;
}

.adesk-extra-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.adesk-extra-label {
    font-weight: 500;
    flex: 1;
}

.adesk-extra-detail {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

.adesk-step-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.adesk-tc-extra-option {
    padding: 8px 10px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .adesk-two-col,
    .adesk-two-col.adesk-mc-3col {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 16px;
    }
}

/* --- File Upload --- */
.adesk-file-field {
    padding: 8px;
    border: 2px dashed #ccc;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
}
.adesk-file-field:hover {
    border-color: #999;
}
.adesk-file-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* --- File Manage Page --- */
.adesk-file-manage {
    max-width: 600px;
    margin: 30px auto;
    padding: 24px;
}
.adesk-file-manage h2 {
    margin-bottom: 8px;
}
.adesk-file-manage-info {
    color: #666;
    margin-bottom: 20px;
}
.adesk-file-manage-table {
    width: 100%;
    border-collapse: collapse;
}
.adesk-file-manage-table th,
.adesk-file-manage-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.adesk-file-manage-table th {
    font-weight: 600;
    color: #555;
}
.adesk-btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}
.adesk-btn-danger {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.adesk-btn-danger:hover {
    background: #c82333;
}

/* --- Self-Service Manage Page --- */
.adesk-manage {
    max-width: 600px;
    margin: 30px auto;
    padding: 24px;
}
.adesk-manage h2 {
    margin-bottom: 16px;
}
.adesk-manage h3 {
    margin: 24px 0 12px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.adesk-manage-details {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}
.adesk-manage-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}
.adesk-manage-label {
    color: #6b7280;
    font-weight: 500;
}
.adesk-manage-value {
    color: #1d2327;
    font-weight: 600;
}
.adesk-manage-actions {
    margin: 16px 0;
}
.adesk-manage-cancel-form {
    display: inline;
}
.adesk-manage-files {
    margin-top: 8px;
}
.adesk-status-confirmed { color: #059669; }
.adesk-status-pending { color: #d97706; }
.adesk-status-cancelled { color: #dc2626; }
.adesk-status-declined { color: #dc2626; }
.adesk-status-completed { color: #2563eb; }
.adesk-status-pending_confirmation { color: #d97706; }
.adesk-status-pending_payment { color: #d97706; }
