/**
 * WPCN Appointment & LINE Booking - Public Stylesheet
 * Ultra-Modern, Responsive & Luxury Store UI/UX
 */

:root {
    --wpcn-primary: #06c755;
    --wpcn-primary-hover: #05a847;
    --wpcn-primary-soft: #ecfdf5;
    --wpcn-primary-border: #a7f3d0;
    --wpcn-primary-glow: rgba(6, 199, 85, 0.3);

    --wpcn-dark-green: #1e3a2f;
    --wpcn-dark-green-hover: #162c24;

    --wpcn-slate-900: #0f172a;
    --wpcn-slate-800: #1e293b;
    --wpcn-slate-700: #334155;
    --wpcn-slate-600: #475569;
    --wpcn-slate-500: #64748b;
    --wpcn-slate-400: #94a3b8;
    --wpcn-slate-300: #cbd5e1;
    --wpcn-slate-200: #e2e8f0;
    --wpcn-slate-100: #f1f5f9;
    --wpcn-slate-50:  #f8fafc;

    --wpcn-danger: #ef4444;
    --wpcn-danger-hover: #dc2626;
    --wpcn-danger-soft: #fef2f2;
    --wpcn-danger-border: #fecaca;

    --wpcn-warning: #f59e0b;
    --wpcn-warning-soft: #fffbeb;
    --wpcn-warning-border: #fde68a;

    --wpcn-info: #3b82f6;
    --wpcn-info-soft: #eff6ff;
    --wpcn-info-border: #bfdbfe;

    --wpcn-radius-sm: 8px;
    --wpcn-radius-md: 12px;
    --wpcn-radius-lg: 16px;
    --wpcn-radius-full: 9999px;

    --wpcn-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --wpcn-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --wpcn-shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --wpcn-shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* -------------------------------------------------------------
   Container Base
   ------------------------------------------------------------- */
.wpcn-my-appointments-container,
.wpcn-booking-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Thai", Helvetica, Arial, sans-serif;
    color: var(--wpcn-slate-800);
    box-sizing: border-box;
}

.wpcn-my-appointments-container *,
.wpcn-booking-wrapper * {
    box-sizing: border-box;
}

/* -------------------------------------------------------------
   1. LINE Notification Card (Dashboard)
   ------------------------------------------------------------- */
.wpcn-card.wpcn-line-card {
    background: #ffffff;
    border: 1px solid var(--wpcn-slate-200);
    border-radius: var(--wpcn-radius-lg);
    padding: 24px 28px;
    box-shadow: var(--wpcn-shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    margin-bottom: 30px;
}

.wpcn-card.wpcn-line-card:hover {
    box-shadow: var(--wpcn-shadow-md);
    border-color: #cbd5e1;
}

.wpcn-line-card-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpcn-line-brand-col {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wpcn-line-icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: var(--wpcn-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(6, 199, 85, 0.15);
}

.wpcn-line-logo-svg {
    width: 28px;
    height: 28px;
}

.wpcn-line-header-meta {
    flex: 1;
}

.wpcn-line-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.wpcn-card-title,
h4.wpcn-card-title,
div.wpcn-card-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--wpcn-slate-900) !important;
    line-height: 1.3 !important;
}

/* Dynamic LINE Connection Status Badges */
.wpcn-line-status-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.775rem !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: var(--wpcn-radius-full) !important;
    letter-spacing: 0.01em !important;
    white-space: nowrap !important;
    line-height: normal !important;
    margin: 0 !important;
}

.wpcn-line-status-badge.wpcn-status-connected {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}

.wpcn-line-status-badge.wpcn-status-connected .wpcn-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    display: inline-block;
    animation: wpcnPulse 2s infinite;
}

.wpcn-line-status-badge.wpcn-status-unconnected {
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1px solid #cbd5e1 !important;
}

.wpcn-card-desc,
p.wpcn-card-desc {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.875rem !important;
    color: var(--wpcn-slate-500) !important;
    line-height: 1.5 !important;
}

/* Universal Theme Reset for WPCN Headings & Content (overrides theme .single-content h1..h6 margins) */
.wpcn-card h1, .wpcn-card h2, .wpcn-card h3, .wpcn-card h4, .wpcn-card h5, .wpcn-card h6,
.wpcn-line-card h1, .wpcn-line-card h2, .wpcn-line-card h3, .wpcn-line-card h4, .wpcn-line-card h5, .wpcn-line-card h6,
.wpcn-line-profile-card h1, .wpcn-line-profile-card h2, .wpcn-line-profile-card h3, .wpcn-line-profile-card h4, .wpcn-line-profile-card h5, .wpcn-line-profile-card h6,
.single-content .wpcn-card h1, .single-content .wpcn-card h2, .single-content .wpcn-card h3, .single-content .wpcn-card h4, .single-content .wpcn-card h5, .single-content .wpcn-card h6,
.single-content .wpcn-line-card h1, .single-content .wpcn-line-card h2, .single-content .wpcn-line-card h3, .single-content .wpcn-line-card h4, .single-content .wpcn-line-card h5, .single-content .wpcn-line-card h6,
.single-content .wpcn-card-title,
.single-content .wpcn-card-desc,
.single-content .wpcn-line-profile-name,
.single-content .wpcn-heading-title {
    margin: 0 !important;
    padding: 0 !important;
}

/* -------------------------------------------------------------
   1.1 Modern LINE Profile Card (Connected State)
   Matches target UI design: Avatar + LINE badge, labels, ID, OA status
   ------------------------------------------------------------- */
.wpcn-card.wpcn-line-profile-card {
    background: #ffffff !important;
    border: 1px solid var(--wpcn-slate-200) !important;
    border-radius: var(--wpcn-radius-lg) !important;
    padding: 14px 22px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box !important;
}

.wpcn-card.wpcn-line-profile-card:hover {
    box-shadow: var(--wpcn-shadow-md) !important;
    border-color: #cbd5e1 !important;
}

.wpcn-line-profile-main {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-width: 0 !important;
}

.wpcn-line-avatar-wrapper {
    position: relative !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    flex-shrink: 0 !important;
}

.wpcn-line-profile-img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
    background: #f1f5f9 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wpcn-line-avatar-badge {
    position: absolute !important;
    bottom: -1px !important;
    right: -1px !important;
    width: 20px !important;
    height: 20px !important;
    background-color: #06C755 !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18) !important;
}

.wpcn-line-svg-mini {
    width: 12px !important;
    height: 12px !important;
    display: block !important;
}

.wpcn-line-profile-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
}

.wpcn-line-profile-label {
    margin: 0 0 1px 0 !important;
    padding: 0 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: var(--wpcn-slate-500) !important;
    line-height: 1.2 !important;
    display: block !important;
}

/* Reset any theme heading or element margins on the name */
.wpcn-line-profile-card .wpcn-line-profile-name,
div.wpcn-line-profile-name,
h4.wpcn-line-profile-name {
    margin: 0 0 3px 0 !important;
    padding: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: var(--wpcn-slate-900) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.wpcn-line-profile-id-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 2px 8px !important;
    font-size: 0.775rem !important;
    font-weight: 500 !important;
    color: var(--wpcn-slate-600) !important;
    width: fit-content !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    letter-spacing: 0.01em !important;
    line-height: 1.35 !important;
    margin: 0 !important;
}

.wpcn-line-profile-status-area {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}

/* Friend Status Pill Badges */
.wpcn-line-oa-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.825rem !important;
    font-weight: 700 !important;
    padding: 6px 14px !important;
    border-radius: var(--wpcn-radius-full) !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.wpcn-line-oa-badge.wpcn-line-oa-unverified {
    background: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fef3c7 !important;
}

.wpcn-line-oa-badge.wpcn-line-oa-unverified:hover {
    background: #fef3c7 !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}

.wpcn-line-oa-badge.wpcn-line-oa-verified {
    background: #f0fdf4 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}

.wpcn-oa-badge-icon {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

.wpcn-btn-disconnect-subtle {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.775rem !important;
    font-weight: 500 !important;
    color: var(--wpcn-slate-400) !important;
    padding: 6px 10px !important;
    border-radius: var(--wpcn-radius-sm) !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.wpcn-btn-disconnect-subtle:hover {
    color: var(--wpcn-danger);
    background: var(--wpcn-danger-soft);
    border-color: var(--wpcn-danger-border);
}

@media (max-width: 680px) {
    .wpcn-card.wpcn-line-profile-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 18px;
        gap: 16px;
    }

    .wpcn-line-profile-status-area {
        width: 100%;
        justify-content: space-between;
    }
}

/* Connected State */
.wpcn-line-connected-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--wpcn-slate-50);
    border: 1px solid var(--wpcn-slate-200);
    border-radius: var(--wpcn-radius-md);
    padding: 14px 18px;
    flex-wrap: wrap;
}

.wpcn-user-avatar-wrap {
    position: relative;
    width: 46px;
    height: 46px;
    min-width: 46px;
}

.wpcn-line-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--wpcn-radius-full);
    object-fit: cover;
    border: 2px solid var(--wpcn-primary);
}

.wpcn-line-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: var(--wpcn-radius-full);
    background: var(--wpcn-primary);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.wpcn-avatar-check {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--wpcn-primary);
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: var(--wpcn-radius-full);
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpcn-user-info-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wpcn-status-pill-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.775rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--wpcn-radius-full);
    width: fit-content;
}

.wpcn-dot-pulse {
    width: 6px;
    height: 6px;
    background: #16a34a;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
    animation: wpcnPulse 2s infinite;
}

@keyframes wpcnPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.wpcn-line-display-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--wpcn-slate-900);
}

.wpcn-line-uid-sub {
    font-size: 0.75rem;
    color: var(--wpcn-slate-400);
    font-family: monospace;
}

.wpcn-btn-disconnect {
    display: inline-flex;
    align-items: center;
    color: var(--wpcn-slate-500);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--wpcn-radius-sm);
    text-decoration: none !important;
    border: 1px solid var(--wpcn-slate-300);
    background: #ffffff;
    transition: all 0.2s ease;
}

.wpcn-btn-disconnect:hover {
    color: var(--wpcn-danger);
    border-color: var(--wpcn-danger-border);
    background: var(--wpcn-danger-soft);
}

/* Unconnected State */
.wpcn-line-unconnected-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fcfdfd;
    border: 1px dashed #cbd5e1;
    border-radius: var(--wpcn-radius-md);
    padding: 16px 20px;
    flex-wrap: wrap;
}

.wpcn-connect-prompt {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wpcn-connect-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #15803d;
}

.wpcn-connect-desc {
    font-size: 0.825rem;
    color: var(--wpcn-slate-600);
}

.wpcn-btn-line-main {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #06c755 0%, #05a847 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--wpcn-radius-full) !important;
    padding: 10px 22px !important;
    font-size: 0.925rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3) !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.wpcn-btn-line-main:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(6, 199, 85, 0.4) !important;
    color: #ffffff !important;
}

.wpcn-line-btn-icon {
    width: 18px;
    height: 18px;
}

/* Admin setup callout */
.wpcn-admin-setup-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--wpcn-radius-sm);
    padding: 14px 18px;
    font-size: 0.875rem;
    color: #475569;
    width: 100%;
}

.wpcn-callout-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.wpcn-callout-content p {
    margin: 4px 0 6px;
    color: #64748b;
    font-size: 0.825rem;
    line-height: 1.5;
}

.wpcn-callout-link {
    color: #06c755;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 0.825rem;
}

.wpcn-callout-link:hover {
    text-decoration: underline !important;
}

.wpcn-customer-tip-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: var(--wpcn-radius-md);
    padding: 12px 18px;
    color: #1e40af;
    font-size: 0.875rem;
    width: 100%;
}

.wpcn-tip-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* -------------------------------------------------------------
   2. Appointments Section Header & Button
   ------------------------------------------------------------- */
.wpcn-section-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 32px 0 18px !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}

.wpcn-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wpcn-heading-title {
    margin: 0 !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: var(--wpcn-slate-900) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    line-height: 1.3 !important;
}

.wpcn-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #f0fdf4;
    color: var(--wpcn-primary);
    border-radius: 8px;
}

.wpcn-heading-icon svg {
    width: 17px;
    height: 17px;
}

.wpcn-heading-sub {
    margin: 0 !important;
    font-size: 0.875rem !important;
    color: var(--wpcn-slate-500) !important;
}

/* THE BUTTON: White-space nowrap & pill design */
.wpcn-btn-new-booking {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #06c755;
    color: #ffffff;
    border: none !important;
    border-radius: var(--wpcn-radius-full);
    padding: 11px 24px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    width: auto !important;
    height: auto !important;
    min-height: 42px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

.wpcn-btn-new-booking:hover {
    filter: brightness(0.92);
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.wpcn-btn-new-booking:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(6, 199, 85, 0.3) !important;
}

.wpcn-btn-new-booking .wpcn-btn-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    flex-shrink: 0 !important;
    stroke-width: 2.5 !important;
}

.wpcn-btn-new-booking .wpcn-btn-label {
    white-space: nowrap !important;
    display: inline-block !important;
}

/* -------------------------------------------------------------
   3. Spacious Appointment Cards List (Replaces cramped table)
   ------------------------------------------------------------- */
.wpcn-appointments-card-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.wpcn-appt-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #ffffff;
    border: 1.5px solid var(--wpcn-slate-200);
    border-radius: var(--wpcn-radius-lg);
    padding: 18px 22px;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpcn-appt-item-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 22px -3px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Date Block */
.wpcn-appt-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 95px;
    min-width: 95px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--wpcn-slate-200);
    border-radius: var(--wpcn-radius-md);
    padding: 12px 10px;
    text-align: center;
    flex-shrink: 0;
}

.wpcn-date-day {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--wpcn-dark-green);
    line-height: 1;
}

.wpcn-date-month {
    font-size: 0.775rem;
    font-weight: 700;
    color: var(--wpcn-slate-500);
    margin-top: 4px;
    white-space: nowrap;
}

.wpcn-date-time-chip {
    margin-top: 7px;
    background: #ffffff;
    color: #047857;
    font-size: 0.775rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid var(--wpcn-slate-200);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.wpcn-chip-clock-icon {
    width: 12px;
    height: 12px;
}

/* Middle Info Block */
.wpcn-appt-info-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0; /* Prevents overflow */
}

.wpcn-appt-service-name {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--wpcn-slate-900);
    line-height: 1.35;
}

.wpcn-appt-meta-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wpcn-code-tag-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--wpcn-slate-50);
    border: 1px solid var(--wpcn-slate-200);
    color: var(--wpcn-slate-600);
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: var(--wpcn-radius-sm);
    white-space: nowrap !important;
}

.wpcn-code-tag-card strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--wpcn-slate-900);
    letter-spacing: 0.02em;
}

.wpcn-code-icon {
    width: 13px;
    height: 13px;
    color: var(--wpcn-slate-400);
    flex-shrink: 0;
}

.wpcn-appt-note-bubble {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.825rem;
    color: var(--wpcn-slate-600);
    max-width: 520px;
    line-height: 1.4;
}

.wpcn-note-prefix {
    flex-shrink: 0;
}

.wpcn-note-body {
    word-break: break-word;
}

/* Right Action Block */
.wpcn-appt-action-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Status Chips with Modern Pastel & Indicator Dot */
.wpcn-status-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    border-radius: var(--wpcn-radius-full) !important;
    font-size: 0.825rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    white-space: nowrap !important;
}

.wpcn-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Confirmed */
.wpcn-status-confirmed {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}
.wpcn-status-confirmed .wpcn-status-dot {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

/* Pending */
.wpcn-status-pending {
    background: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}
.wpcn-status-pending .wpcn-status-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

/* Completed */
.wpcn-status-completed {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}
.wpcn-status-completed .wpcn-status-dot {
    background: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* Cancelled */
.wpcn-status-cancelled {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}
.wpcn-status-cancelled .wpcn-status-dot {
    background: #ef4444;
}

/* Action Cancel Button */
.wpcn-btn-cancel-appt {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #ffffff !important;
    color: var(--wpcn-danger) !important;
    border: 1px solid var(--wpcn-danger-border) !important;
    border-radius: var(--wpcn-radius-full) !important;
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    line-height: normal !important;
}

.wpcn-btn-cancel-appt:hover {
    background: var(--wpcn-danger-soft) !important;
    color: var(--wpcn-danger-hover) !important;
    border-color: #f87171 !important;
    transform: translateY(-1px) !important;
}

.wpcn-cancel-icon {
    width: 14px;
    height: 14px;
}

/* Empty State */
.wpcn-empty-box {
    text-align: center;
    padding: 56px 20px;
    border: 2px dashed var(--wpcn-slate-200);
    border-radius: var(--wpcn-radius-lg);
    background: #ffffff;
}

.wpcn-empty-icon-wrap {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    color: var(--wpcn-slate-400);
    background: var(--wpcn-slate-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpcn-empty-icon-wrap svg {
    width: 32px;
    height: 32px;
}

.wpcn-empty-box h4 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--wpcn-slate-900);
}

.wpcn-empty-box p {
    margin: 0 0 20px;
    color: var(--wpcn-slate-500);
    font-size: 0.9rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------------------------------------------
   4. Appointment Shortcode Button
   ------------------------------------------------------------- */
.wpcn-appointment-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-weight: 600;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 14px rgba(6, 199, 85, 0.3) !important;
    width: auto !important;
    height: auto !important;
}

.wpcn-appointment-btn:hover {
    transform: translateY(-2px) !important;
    filter: brightness(0.95) !important;
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.45) !important;
}

.wpcn-appointment-btn:active {
    transform: translateY(0) !important;
}

.wpcn-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* -------------------------------------------------------------
   5. Popup Modal Window
   ------------------------------------------------------------- */
.wpcn-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpcn-modal-overlay.wpcn-modal-open {
    opacity: 1;
}

.wpcn-modal-container {
    background: #ffffff;
    border-radius: 18px;
    max-width: 600px;
    width: 95%;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transform: scale(0.96) translateY(8px);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.wpcn-modal-overlay.wpcn-modal-open .wpcn-modal-container {
    transform: scale(1) translateY(0);
}

.wpcn-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    flex-shrink: 0;
}

.wpcn-modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpcn-header-icon {
    width: 20px;
    height: 20px;
    color: var(--wpcn-primary);
    flex-shrink: 0;
}

.wpcn-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--wpcn-slate-900);
}

.wpcn-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--wpcn-slate-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.wpcn-modal-close:hover {
    background: var(--wpcn-slate-100);
    color: var(--wpcn-danger);
}

.wpcn-modal-body {
    padding: 16px 22px 24px 22px !important;
    overflow-y: auto !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.wpcn-modal-body::-webkit-scrollbar {
    width: 6px;
}

.wpcn-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.wpcn-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.wpcn-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* -------------------------------------------------------------
   6. Booking Form Components
   ------------------------------------------------------------- */
.wpcn-booking-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpcn-form-section-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--wpcn-slate-800);
    border-bottom: 1px dashed var(--wpcn-slate-200);
    padding-bottom: 5px;
    margin-top: 4px;
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wpcn-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wpcn-form-row {
    display: flex;
    gap: 12px;
}

.wpcn-col-6 {
    flex: 1;
    min-width: 0;
}

.wpcn-row-service-date {
    display: flex;
    gap: 12px;
}

.wpcn-col-service {
    flex: 1.3;
    min-width: 0;
}

.wpcn-col-date {
    flex: 1;
    min-width: 0;
}

.wpcn-slots-group {
    margin-top: 2px;
}

.wpcn-label {
    font-weight: 600;
    font-size: 0.825rem;
    color: var(--wpcn-slate-700);
    margin-bottom: 2px;
}

.wpcn-required {
    color: var(--wpcn-danger);
}

.wpcn-input {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    background: #ffffff !important;
    color: var(--wpcn-slate-800) !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.wpcn-input:focus {
    border-color: var(--wpcn-primary) !important;
    box-shadow: 0 0 0 3px rgba(6, 199, 85, 0.15) !important;
    outline: none !important;
}

.wpcn-select {
    cursor: pointer;
}

.wpcn-textarea {
    resize: vertical;
    min-height: 52px !important;
    height: 52px;
    max-height: 120px;
    box-sizing: border-box !important;
}

/* Booking Form LINE Banner */
.wpcn-line-banner {
    border-radius: 10px;
    padding: 8px 12px;
    border: 1px solid #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.06);
}

.wpcn-line-status-connected {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpcn-line-badge-icon {
    width: 20px;
    height: 20px;
    color: #06c755;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpcn-line-badge-icon svg {
    width: 100%;
    height: 100%;
}

.wpcn-line-badge-text {
    display: flex;
    flex-direction: column;
    font-size: 0.825rem;
    line-height: 1.35;
}

.wpcn-line-badge-text strong {
    color: #15803d;
    font-weight: 700;
}

.wpcn-line-badge-text span {
    color: #166534;
    font-size: 0.775rem;
}

.wpcn-line-status-disconnected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wpcn-line-prompt-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.wpcn-line-prompt-icon {
    width: 22px;
    height: 22px;
    color: #06c755;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpcn-line-prompt-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.wpcn-prompt-title {
    font-weight: 700;
    font-size: 0.825rem;
    color: #15803d;
}

.wpcn-prompt-sub {
    font-size: 0.735rem;
    color: var(--wpcn-slate-600);
    white-space: normal;
    line-height: 1.4;
}

/* Slots Grid - Single Scrollbar, No Double Scrollbar collision */
.wpcn-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 6px;
    max-height: none !important;
    overflow: visible !important;
    padding: 8px 10px;
    border: 1px solid var(--wpcn-slate-200);
    border-radius: var(--wpcn-radius-md);
    background: var(--wpcn-slate-50);
}

.wpcn-slot-btn {
    padding: 7px 4px !important;
    text-align: center;
    border-radius: 7px;
    font-size: 0.84rem;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--wpcn-slate-700);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    line-height: 1.2;
}

.wpcn-slot-btn:hover:not(.disabled) {
    border-color: #06c755;
    background: #f0fdf4;
    color: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(6, 199, 85, 0.15);
}

.wpcn-slot-btn.selected {
    background: #06c755 !important;
    color: #ffffff !important;
    border-color: #06c755 !important;
    box-shadow: 0 3px 8px rgba(6, 199, 85, 0.35) !important;
}

.wpcn-slot-btn.disabled {
    opacity: 0.38;
    cursor: not-allowed;
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
}

.wpcn-slots-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 12px;
    color: var(--wpcn-slate-500);
    font-size: 0.85rem;
}

.wpcn-field-error {
    color: var(--wpcn-danger);
    font-size: 0.8rem;
    margin-top: 3px;
    font-weight: 600;
}

/* Button Base Styles & Utilities */
.wpcn-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    border: none !important;
    line-height: 1.3 !important;
    box-sizing: border-box !important;
}

.wpcn-btn-primary {
    background: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25) !important;
}

.wpcn-btn-primary:hover {
    background: #047857 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35) !important;
}

.wpcn-btn-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

.wpcn-btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

.wpcn-btn-line {
    background: #06c755 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(6, 199, 85, 0.25) !important;
}

.wpcn-btn-line:hover {
    background: #05a847 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.35) !important;
}

.wpcn-btn-sm {
    padding: 5px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 9999px !important;
}

.wpcn-btn-line-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: #06c755 !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 9999px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(6, 199, 85, 0.3) !important;
    transition: all 0.15s ease !important;
    border: none !important;
    line-height: 1 !important;
}

.wpcn-btn-line-pill:hover {
    background: #05a847 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.4) !important;
}

.wpcn-line-icon-sm {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
    fill: currentColor !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

/* Form Actions & Submit Button */
.wpcn-form-actions {
    margin-top: 8px !important;
    margin-bottom: 0px !important;
    width: 100% !important;
}

.wpcn-btn-submit {
    width: 100% !important;
    min-height: 44px !important;
    background: linear-gradient(135deg, #06c755 0%, #05a847 100%) !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 3px 10px rgba(6, 199, 85, 0.3) !important;
    transition: all 0.18s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    position: relative !important;
    line-height: 1.3 !important;
}

.wpcn-btn-submit:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 16px rgba(6, 199, 85, 0.4) !important;
}

.wpcn-btn-submit:active:not(:disabled) {
    transform: translateY(0) !important;
}

.wpcn-btn-submit:disabled {
    opacity: 0.88 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: 0 2px 6px rgba(6, 199, 85, 0.2) !important;
}

.wpcn-btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
}

.wpcn-btn-spinner {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    animation: wpcnSpin 0.75s linear infinite !important;
    stroke: #ffffff !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* Success Card */
.wpcn-success-card {
    text-align: center;
    padding: 24px 16px;
}

.wpcn-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #10b981;
    background: #ecfdf5;
    border: 2px solid #a7f3d0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpcn-success-icon svg {
    width: 36px;
    height: 36px;
}

.wpcn-success-card h3 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--wpcn-slate-900);
}

.wpcn-success-msg {
    color: var(--wpcn-slate-500);
    font-size: 0.95rem;
    margin: 0 0 24px;
}

.wpcn-booking-summary {
    background: var(--wpcn-slate-50);
    border: 1px solid var(--wpcn-slate-200);
    border-radius: var(--wpcn-radius-md);
    padding: 18px 20px;
    margin-bottom: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpcn-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.925rem;
}

.wpcn-s-label {
    color: var(--wpcn-slate-500);
}

.wpcn-s-val {
    font-weight: 700;
    color: var(--wpcn-slate-800);
}

.wpcn-code-val {
    color: var(--wpcn-primary);
    font-family: monospace;
    font-size: 1.05rem;
}

/* Login Required Box */
.wpcn-login-required-box {
    text-align: center;
    padding: 36px 16px;
}

.wpcn-login-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    color: #3b82f6;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpcn-login-icon svg {
    width: 26px;
    height: 26px;
}

.wpcn-login-required-box h4 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--wpcn-slate-900);
}

.wpcn-login-required-box p {
    color: var(--wpcn-slate-500);
    margin: 0 0 20px;
    font-size: 0.925rem;
}

.wpcn-login-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Generic Alerts */
.wpcn-alert {
    padding: 12px 16px;
    border-radius: var(--wpcn-radius-md);
    font-size: 0.9rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpcn-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.wpcn-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.wpcn-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Spinner Animation */
.wpcn-spinner-sm {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #cbd5e1;
    border-top-color: var(--wpcn-primary);
    border-radius: 50%;
    animation: wpcnSpin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes wpcnSpin {
    to { transform: rotate(360deg); }
}

/* -------------------------------------------------------------
   7. Mobile Responsiveness for Cards
   ------------------------------------------------------------- */
@media (max-width: 680px) {
    .wpcn-section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .wpcn-header-right {
        width: 100% !important;
    }

    .wpcn-btn-new-booking {
        width: 100% !important;
        justify-content: center !important;
    }

    .wpcn-form-row {
        flex-direction: column !important;
    }

    .wpcn-appt-item-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
        padding: 16px 18px !important;
    }

    .wpcn-appt-date-block {
        flex-direction: row !important;
        width: 100% !important;
        justify-content: space-between !important;
        padding: 8px 14px !important;
    }

    .wpcn-date-day {
        font-size: 1.25rem !important;
    }

    .wpcn-date-time-chip {
        margin-top: 0 !important;
    }

    .wpcn-appt-action-block {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        border-top: 1px solid var(--wpcn-slate-100) !important;
        padding-top: 14px !important;
        margin-top: 4px !important;
    }

    .wpcn-modal-container {
        width: 95% !important;
        max-height: 92vh !important;
        border-radius: 16px !important;
    }

    .wpcn-modal-header {
        padding: 12px 18px !important;
    }

    .wpcn-modal-body {
        padding: 14px 18px 22px 18px !important;
    }

    .wpcn-row-service-date {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .wpcn-line-status-disconnected {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .wpcn-btn-line-pill {
        align-self: flex-start !important;
    }
}



/* =============================================================
   WPCN Account UX/UI Compatibility & Emerald Theme Integration
   ============================================================= */

/* Container resets when inside WPCN Account UX/UI */
.account-ux-wrapper .wpcn-my-appointments-container,
.aux-dashboard-body .wpcn-my-appointments-container,
.aux-panel-pane .wpcn-my-appointments-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Subtle toolbar header inside panel */
.account-ux-wrapper .wpcn-section-header,
.aux-panel-pane .wpcn-section-header {
    margin: 4px 0 20px 0 !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid var(--aux-border, #e2e8f0) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.account-ux-wrapper .wpcn-heading-title,
.aux-panel-pane .wpcn-heading-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--aux-text-main, #1e293b) !important;
}

.account-ux-wrapper .wpcn-heading-icon,
.aux-panel-pane .wpcn-heading-icon {
    background: var(--aux-mint, #e6f4ea) !important;
    color: var(--aux-mint-text, #0b5c3b) !important;
    border-radius: 8px !important;
}

.account-ux-wrapper .wpcn-heading-sub,
.aux-panel-pane .wpcn-heading-sub {
    color: var(--aux-text-muted, #64748b) !important;
    font-size: 0.85rem !important;
}

/* Primary buttons in WPCN Account UX/UI */
.account-ux-wrapper .wpcn-btn-primary:not(.wpcn-btn-new-booking),
.aux-panel-pane .wpcn-btn-primary:not(.wpcn-btn-new-booking) {
    background: var(--aux-primary, #0e382b) !important;
    color: #ffffff !important;
    border-radius: var(--aux-radius, 12px) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(14, 56, 43, 0.22) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.account-ux-wrapper .wpcn-btn-primary:not(.wpcn-btn-new-booking):hover,
.aux-panel-pane .wpcn-btn-primary:not(.wpcn-btn-new-booking):hover {
    background: #154c3c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(14, 56, 43, 0.32) !important;
    color: #ffffff !important;
}

/* Appointment Item Cards */
.account-ux-wrapper .wpcn-appt-item-card,
.aux-panel-pane .wpcn-appt-item-card {
    background: #ffffff !important;
    border: 1px solid var(--aux-border, #e2e8f0) !important;
    border-radius: var(--aux-radius, 14px) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.account-ux-wrapper .wpcn-appt-item-card:hover,
.aux-panel-pane .wpcn-appt-item-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 8px 20px -3px rgba(0, 0, 0, 0.07) !important;
    transform: translateY(-2px) !important;
}

/* Date Block */
.account-ux-wrapper .wpcn-appt-date-block,
.aux-panel-pane .wpcn-appt-date-block {
    background: var(--aux-bg-subtle, #f8fafc) !important;
    border: 1px solid var(--aux-border, #e2e8f0) !important;
    border-radius: 12px !important;
}

.account-ux-wrapper .wpcn-date-day,
.aux-panel-pane .wpcn-date-day {
    color: var(--aux-primary, #0e382b) !important;
}

.account-ux-wrapper .wpcn-date-time-chip,
.aux-panel-pane .wpcn-date-time-chip {
    background: var(--aux-mint, #e6f4ea) !important;
    color: var(--aux-mint-text, #0b5c3b) !important;
    border: 1px solid #c7ecd5 !important;
}

.account-ux-wrapper .wpcn-chip-clock-icon,
.aux-panel-pane .wpcn-chip-clock-icon {
    stroke: #10b981 !important;
}

/* Status Chips */
.account-ux-wrapper .wpcn-status-chip.wpcn-status-confirmed,
.aux-panel-pane .wpcn-status-chip.wpcn-status-confirmed {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}

.account-ux-wrapper .wpcn-status-chip.wpcn-status-confirmed .wpcn-status-dot,
.aux-panel-pane .wpcn-status-chip.wpcn-status-confirmed .wpcn-status-dot {
    background: #10b981 !important;
}

/* Service Name */
.account-ux-wrapper .wpcn-appt-service-name,
.aux-panel-pane .wpcn-appt-service-name {
    color: var(--aux-text-main, #1e293b) !important;
    font-weight: 700 !important;
}

/* Code Tag */
.account-ux-wrapper .wpcn-code-tag-card,
.aux-panel-pane .wpcn-code-tag-card {
    background: var(--aux-bg-subtle, #f8fafc) !important;
    border: 1px solid var(--aux-border, #e2e8f0) !important;
    border-radius: 8px !important;
}

/* LINE Cards embedded in WPCN Account UX/UI */
.account-ux-wrapper .wpcn-card.wpcn-line-profile-card,
.account-ux-wrapper .wpcn-card.wpcn-line-card,
.aux-panel-pane .wpcn-card.wpcn-line-profile-card,
.aux-panel-pane .wpcn-card.wpcn-line-card {
    border: 1px solid var(--aux-border, #e2e8f0) !important;
    border-radius: var(--aux-radius, 14px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 20px !important;
}

/* Empty State Box */
.account-ux-wrapper .wpcn-empty-box,
.aux-panel-pane .wpcn-empty-box {
    background: transparent !important;
    border: 2px dashed var(--aux-border, #e2e8f0) !important;
    border-radius: var(--aux-radius, 14px) !important;
    padding: 42px 24px !important;
}

.account-ux-wrapper .wpcn-empty-icon-wrap,
.aux-panel-pane .wpcn-empty-icon-wrap {
    background: var(--aux-mint, #e6f4ea) !important;
    color: var(--aux-mint-text, #0b5c3b) !important;
}

/* Modal Popup Above Everything */
#wpcn-booking-modal {
    z-index: 999999 !important;
}

#wpcn-booking-modal .wpcn-modal-container {
    border-radius: 18px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* =============================================================
   8. Newly Created Appointment Card Highlight & Glowing Border
   ============================================================= */
.wpcn-appt-item-card.wpcn-highlight-new-card,
.account-ux-wrapper .wpcn-appt-item-card.wpcn-highlight-new-card,
.aux-panel-pane .wpcn-appt-item-card.wpcn-highlight-new-card,
.aux-appointments-content .wpcn-appt-item-card.wpcn-highlight-new-card {
    border: 2px solid #06c755 !important;
    border-color: #06c755 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(6, 199, 85, 0.3), 0 10px 28px rgba(6, 199, 85, 0.2) !important;
    animation: wpcnPulseCard 2s ease-in-out 5 !important;
    position: relative !important;
    z-index: 5 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.wpcn-appt-item-card.wpcn-highlight-new-card:hover,
.account-ux-wrapper .wpcn-appt-item-card.wpcn-highlight-new-card:hover,
.aux-panel-pane .wpcn-appt-item-card.wpcn-highlight-new-card:hover,
.aux-appointments-content .wpcn-appt-item-card.wpcn-highlight-new-card:hover {
    border: 2px solid #05a847 !important;
    border-color: #05a847 !important;
    box-shadow: 0 0 0 5px rgba(6, 199, 85, 0.4), 0 14px 34px rgba(6, 199, 85, 0.28) !important;
    transform: translateY(-2px) !important;
}

@keyframes wpcnPulseCard {
    0%, 100% {
        border-color: #06c755 !important;
        box-shadow: 0 0 0 4px rgba(6, 199, 85, 0.3), 0 8px 24px rgba(6, 199, 85, 0.18);
    }
    50% {
        border-color: #10b981 !important;
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.5), 0 14px 36px rgba(16, 185, 129, 0.3);
    }
}

/* -------------------------------------------------------------
   4. Customer Appointments Pagination Bar
   ------------------------------------------------------------- */
.wpcn-customer-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1.5px solid var(--wpcn-slate-200);
    border-radius: var(--wpcn-radius-lg);
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

.wpcn-customer-pagination .wpcn-pag-info {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wpcn-slate-500);
}

.wpcn-customer-pagination .wpcn-pag-nav {
    display: flex;
    align-items: center;
}

.wpcn-customer-pagination ul.wpcn-pag-list {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wpcn-customer-pagination li.wpcn-pag-item {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wpcn-customer-pagination .wpcn-pag-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 11px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wpcn-slate-700);
    background: #ffffff;
    border: 1px solid var(--wpcn-slate-200);
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.15s ease;
    user-select: none;
}

.wpcn-customer-pagination a.wpcn-pag-link:hover {
    background: #f0fdf4;
    color: #047857;
    border-color: #a7f3d0;
    transform: translateY(-1px);
}

.wpcn-customer-pagination .wpcn-pag-current {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.28) !important;
}

.wpcn-customer-pagination .wpcn-pag-disabled {
    color: #cbd5e1 !important;
    background: #f8fafc !important;
    border-color: #f1f5f9 !important;
    cursor: not-allowed !important;
    opacity: 0.55;
}

.wpcn-customer-pagination .wpcn-pag-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 36px;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .wpcn-customer-pagination {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 14px;
    }
}


