/**
 * Appointment Booking Pro - Frontend Styles
 * Premium Medical & Consultation 2-Column Responsive Design
 */

/* Container & Base Variables Fallbacks */
.ab-booking-wrapper {
    --ab-primary: #059669;
    --ab-primary-hover: #047857;
    --ab-accent: #10b981;
    --ab-bg: #f8fafc;
    --ab-card-bg: #ffffff;
    --ab-text: #1e293b;
    --ab-heading: #0f172a;
    --ab-text-muted: #64748b;
    --ab-border: #e2e8f0;
    --ab-btn-text: #ffffff;
    --ab-radius: 12px;
    --ab-max-width: 1080px;
    --ab-card-padding: 28px;
    --ab-title-size: 24px;
    --ab-doctor-name-size: 18px;
    --ab-step-title-size: 16px;
    --ab-body-size: 14px;
    --ab-cal-btn-bg: #f1f5f9;
    --ab-cal-btn-color: #334155;
    --ab-cal-btn-size: 34px;
    --ab-cal-icon-size: 16px;
    --ab-slot-chip-size: 13.5px;
    --ab-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    
    max-width: var(--ab-max-width, 1080px);
    width: 100%;
    margin: 24px auto;
    box-sizing: border-box;
    color: var(--ab-text, #1e293b);
    font-size: var(--ab-body-size, 14px);
    font-family: inherit;
    line-height: 1.5;
}

.ab-booking-wrapper *,
.ab-booking-wrapper *::before,
.ab-booking-wrapper *::after {
    box-sizing: border-box;
}

/* Two-Column Grid */
.ab-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 28px;
    align-items: start;
}

/* LEFT COLUMN STYLING */
.ab-left-column {
    background: var(--ab-card-bg, #ffffff);
    border: 1px solid var(--ab-border, #e2e8f0);
    border-radius: var(--ab-radius, 12px);
    padding: var(--ab-card-padding, 28px);
    box-shadow: var(--ab-shadow);
    position: sticky;
    top: 24px;
}

/* Doctor Profile Header */
.ab-doctor-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ab-border, #e2e8f0);
    margin-bottom: 20px;
}

.ab-doctor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--ab-primary, #059669);
    background: #ecfdf5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ab-doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ab-avatar-placeholder svg {
    color: var(--ab-primary, #059669);
}

.ab-doctor-info {
    flex: 1;
}

.ab-booking-wrapper .ab-doctor-name {
    margin: 0 0 4px 0 !important;
    font-size: var(--ab-doctor-name-size, 18px) !important;
    font-weight: 700 !important;
    color: var(--ab-heading, #0f172a) !important;
    line-height: 1.3 !important;
}

.ab-doctor-designation {
    font-size: 12.5px;
    color: var(--ab-text-muted, #64748b);
    line-height: 1.4;
    margin-bottom: 4px;
}

.ab-doctor-badge {
    display: inline-block;
    background: #ecfdf5;
    color: var(--ab-primary, #059669);
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}

/* Appointment Title & Subtitle */
.ab-appointment-header {
    margin-bottom: 18px;
}

.ab-booking-wrapper .ab-appointment-title {
    font-size: var(--ab-title-size, 24px) !important;
    font-weight: 800 !important;
    color: var(--ab-heading, #0f172a) !important;
    line-height: 1.35 !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.01em !important;
}

.ab-appointment-by {
    font-size: 13.5px;
    color: var(--ab-primary, #059669);
    font-weight: 600;
}

/* Banner Image */
.ab-appointment-banner {
    margin: 14px 0 18px 0;
    border-radius: calc(var(--ab-radius, 12px) - 4px);
    overflow: hidden;
    max-height: 220px;
}

.ab-appointment-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Descriptions */
.ab-appointment-short-desc {
    font-size: var(--ab-body-size, 14px);
    color: #334155;
    line-height: 1.55;
    margin-bottom: 14px;
    font-weight: 500;
}

.ab-appointment-full-desc {
    font-size: 13px;
    color: var(--ab-text-muted, #64748b);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Topics / What I Treat */
.ab-topics-section {
    background: #f8fafc;
    border: 1px solid var(--ab-border, #e2e8f0);
    border-radius: calc(var(--ab-radius, 12px) - 4px);
    padding: 18px;
    margin-bottom: 20px;
}

.ab-topics-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--ab-heading, #0f172a);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ab-topics-title svg {
    color: var(--ab-primary, #059669);
}

.ab-topics-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ab-topics-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.ab-topic-bullet {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ecfdf5;
    color: var(--ab-primary, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.ab-topic-bullet svg {
    width: 11px;
    height: 11px;
}

/* Meta Badges (Duration, Mode) */
.ab-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.ab-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: #475569;
}

.ab-meta-item svg {
    color: var(--ab-primary, #059669);
}

/* Contact Line */
.ab-contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    margin-bottom: 18px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.ab-contact-line a {
    color: var(--ab-primary, #059669);
    text-decoration: none;
}

.ab-contact-line a:hover {
    text-decoration: underline;
}

/* Price Box */
.ab-price-display-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    margin-bottom: 18px;
}

.ab-price-label {
    font-size: 14px;
    font-weight: 600;
    color: #065f46;
}

.ab-price-free {
    font-size: 18px;
    font-weight: 800;
    color: var(--ab-primary, #059669);
    letter-spacing: 0.5px;
}

.ab-price-amount {
    font-size: 20px;
    font-weight: 800;
    color: #065f46;
}

/* Terms Checkbox */
.ab-terms-wrapper {
    margin-top: 10px;
}

.ab-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 12.5px;
    color: var(--ab-text-muted, #64748b);
    line-height: 1.4;
}

.ab-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--ab-primary, #059669);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* RIGHT COLUMN STYLING */
.ab-right-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ab-step-card {
    background: var(--ab-card-bg, #ffffff);
    border: 1px solid var(--ab-border, #e2e8f0);
    border-radius: var(--ab-radius, 12px);
    padding: var(--ab-card-padding, 28px);
    box-shadow: var(--ab-shadow);
}

.ab-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.ab-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ab-primary, #059669);
    color: #ffffff;
    font-weight: 700;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ab-booking-wrapper .ab-step-title {
    margin: 0 !important;
    font-size: var(--ab-step-title-size, 16px) !important;
    font-weight: 700 !important;
    color: var(--ab-heading, #0f172a) !important;
    line-height: 1.3 !important;
}

.ab-step-desc {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: var(--ab-text-muted, #64748b);
}

/* CALENDAR STYLING */
.ab-calendar-wrapper {
    background: #ffffff;
    border: 1px solid var(--ab-border, #e2e8f0);
    border-radius: calc(var(--ab-radius, 12px) - 2px);
    padding: 14px;
}

.ab-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ab-calendar-current-month {
    font-size: 15px;
    font-weight: 700;
    color: var(--ab-heading, #0f172a);
    text-transform: capitalize;
}

/* HIGH SPECIFICITY RESET FOR CALENDAR BUTTONS */
.ab-booking-wrapper .ab-cal-btn {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--ab-cal-btn-size, 34px) !important;
    height: var(--ab-cal-btn-size, 34px) !important;
    min-width: var(--ab-cal-btn-size, 34px) !important;
    min-height: var(--ab-cal-btn-size, 34px) !important;
    max-width: var(--ab-cal-btn-size, 34px) !important;
    max-height: var(--ab-cal-btn-size, 34px) !important;
    background: var(--ab-cal-btn-bg, #f1f5f9) !important;
    color: var(--ab-cal-btn-color, #334155) !important;
    border: 1px solid var(--ab-border, #e2e8f0) !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.ab-booking-wrapper .ab-cal-btn:hover:not(:disabled) {
    background: var(--ab-primary, #059669) !important;
    color: #ffffff !important;
    border-color: var(--ab-primary, #059669) !important;
}

.ab-booking-wrapper .ab-cal-btn:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

.ab-booking-wrapper .ab-cal-btn svg {
    width: var(--ab-cal-icon-size, 16px) !important;
    height: var(--ab-cal-icon-size, 16px) !important;
    stroke: currentColor !important;
    display: block !important;
}

.ab-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}

.ab-calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    position: relative;
}

.ab-calendar-loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    min-height: 140px;
}

.ab-day-cell {
    height: var(--ab-cal-cell-height, 38px) !important;
    min-height: var(--ab-cal-cell-height, 38px) !important;
    max-height: var(--ab-cal-cell-height, 38px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    font-size: var(--ab-cal-font-size, 13px) !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    transition: all 0.15s ease !important;
    background: transparent;
    user-select: none !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.ab-day-empty {
    cursor: default !important;
    background: transparent !important;
    border: none !important;
}

.ab-day-available {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border-color: #bbf7d0 !important;
}

.ab-day-available:hover {
    background: var(--ab-primary, #059669) !important;
    color: #ffffff !important;
    border-color: var(--ab-primary, #059669) !important;
    transform: translateY(-1px);
}

.ab-day-selected {
    background: var(--ab-primary, #059669) !important;
    color: #ffffff !important;
    border-color: var(--ab-primary, #059669) !important;
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.35) !important;
}

.ab-day-disabled {
    color: #cbd5e1 !important;
    background: #f8fafc !important;
    cursor: not-allowed !important;
}

.ab-day-booked {
    color: #cbd5e1 !important;
    background: #f8fafc !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
}

.ab-calendar-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 11px;
    color: var(--ab-text-muted, #64748b);
}

.ab-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ab-legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.ab-dot-available { background: #16a34a; }
.ab-dot-selected { background: var(--ab-primary, #059669); }
.ab-dot-booked { background: #cbd5e1; }

/* TIME SLOTS CONTAINER */
.ab-slots-container {
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ab-slots-placeholder {
    width: 100%;
    padding: 20px;
    background: #f8fafc;
    border: 1px dashed var(--ab-border, #e2e8f0);
    border-radius: 8px;
    text-align: center;
    color: var(--ab-text-muted, #64748b);
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* HIGH SPECIFICITY RESET FOR SLOT CHIPS */
.ab-booking-wrapper .ab-slot-chip {
    all: unset !important;
    padding: 8px 14px !important;
    background: #f8fafc !important;
    border: 1.5px solid var(--ab-border, #e2e8f0) !important;
    border-radius: 6px !important;
    font-size: var(--ab-slot-chip-size, 13.5px) !important;
    font-weight: 600 !important;
    color: #334155 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.ab-booking-wrapper .ab-slot-chip:hover {
    border-color: var(--ab-primary, #059669) !important;
    color: var(--ab-primary, #059669) !important;
    background: #ecfdf5 !important;
}

.ab-booking-wrapper .ab-slot-chip.ab-slot-active {
    background: var(--ab-primary, #059669) !important;
    color: #ffffff !important;
    border-color: var(--ab-primary, #059669) !important;
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.3) !important;
}

/* FORM FIELDS */
.ab-form-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ab-form-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.ab-required {
    color: #ef4444;
}

.ab-booking-wrapper input[type="text"],
.ab-booking-wrapper input[type="email"],
.ab-booking-wrapper input[type="tel"],
.ab-booking-wrapper input[type="number"],
.ab-booking-wrapper select,
.ab-booking-wrapper textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--ab-border, #e2e8f0);
    border-radius: 6px;
    font-size: 13.5px;
    color: var(--ab-text, #1e293b);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.ab-booking-wrapper input:focus,
.ab-booking-wrapper select:focus,
.ab-booking-wrapper textarea:focus {
    outline: none;
    border-color: var(--ab-primary, #059669);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.ab-phone-row {
    display: flex;
    gap: 8px;
}

.ab-country-code-wrap {
    width: 105px;
    flex-shrink: 0;
}

.ab-phone-input-wrap {
    flex: 1;
}

/* COUPON & SUMMARY */
.ab-coupon-box {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ab-border, #e2e8f0);
}

.ab-coupon-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ab-coupon-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ab-heading, #0f172a);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
}

.ab-coupon-title svg {
    color: var(--ab-primary, #059669);
}

/* PREMIUM VOUCHER CARDS */
.ab-offers-carousel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.ab-booking-wrapper .ab-voucher-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
    border: 1.5px dashed #86efac !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08) !important;
}

.ab-booking-wrapper .ab-voucher-card:hover {
    border-color: var(--ab-primary, #059669) !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15) !important;
    transform: translateY(-1px) !important;
}

.ab-booking-wrapper .ab-voucher-card.ab-voucher-active {
    background: #ecfdf5 !important;
    border: 1.5px solid var(--ab-primary, #059669) !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2) !important;
}

.ab-voucher-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 !important;
}

.ab-voucher-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: #dcfce7 !important;
    color: var(--ab-primary, #059669) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.ab-voucher-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.ab-voucher-code-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.ab-voucher-code {
    font-family: monospace, monospace !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #065f46 !important;
    background: #ffffff !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    border: 1px solid #bbf7d0 !important;
    letter-spacing: 0.5px !important;
}

.ab-voucher-badge {
    background: var(--ab-primary, #059669) !important;
    color: #ffffff !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 10px !important;
    letter-spacing: 0.3px !important;
}

.ab-voucher-subtext {
    font-size: 11.5px !important;
    color: #166534 !important;
    font-weight: 500 !important;
}

/* VOUCHER APPLY BUTTON */
.ab-booking-wrapper .ab-voucher-apply-btn {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--ab-primary, #059669) !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    padding: 7px 16px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25) !important;
    white-space: nowrap !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    min-width: 0 !important;
}

.ab-booking-wrapper .ab-voucher-apply-btn:hover {
    background: var(--ab-primary-hover, #047857) !important;
    transform: scale(1.03) !important;
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.35) !important;
}

.ab-booking-wrapper .ab-voucher-card.ab-voucher-active .ab-voucher-apply-btn {
    background: #15803d !important;
    box-shadow: none !important;
}

/* SLEEK UNIFIED MANUAL INPUT BOX */
.ab-manual-coupon-wrapper {
    margin-top: 4px;
}

.ab-booking-wrapper .ab-manual-input-box {
    display: flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1.5px solid var(--ab-border, #cbd5e1) !important;
    border-radius: 8px !important;
    padding: 3px 4px 3px 10px !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.ab-booking-wrapper .ab-manual-input-box:focus-within {
    border-color: var(--ab-primary, #059669) !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

.ab-booking-wrapper .ab-input-icon {
    display: flex !important;
    align-items: center !important;
    color: #94a3b8 !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;
}

.ab-booking-wrapper .ab-manual-input-box input[type="text"] {
    all: unset !important;
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--ab-text, #1e293b) !important;
    padding: 6px 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-sizing: border-box !important;
}

.ab-booking-wrapper .ab-manual-input-box input[type="text"]::placeholder {
    color: #94a3b8 !important;
    text-transform: none !important;
    font-weight: normal !important;
    letter-spacing: normal !important;
}

.ab-booking-wrapper .ab-coupon-submit-btn {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--ab-primary, #059669) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 7px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    letter-spacing: 0.3px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    box-shadow: none !important;
}

.ab-booking-wrapper .ab-coupon-submit-btn:hover {
    background: var(--ab-primary-hover, #047857) !important;
}

.ab-coupon-message {
    font-size: 12px;
    margin-top: 8px;
    font-weight: 600;
}

.ab-coupon-success { color: #16a34a; }
.ab-coupon-error { color: #ef4444; }

/* SUMMARY BOX */
.ab-summary-box {
    background: #f8fafc;
    border: 1px solid var(--ab-border, #e2e8f0);
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 16px;
}

.ab-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #475569;
    margin-bottom: 5px;
}

.ab-discount-row {
    color: #16a34a;
    font-weight: 600;
}

.ab-summary-divider {
    height: 1px;
    background: var(--ab-border, #e2e8f0);
    margin: 8px 0;
}

.ab-total-row {
    font-size: 15px;
    font-weight: 700;
    color: var(--ab-heading, #0f172a);
    margin-bottom: 0;
}

.ab-total-highlight {
    color: var(--ab-primary, #059669);
    font-size: 16px;
}

/* ERROR NOTICE */
.ab-error-notice {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12.5px;
    margin-bottom: 14px;
    font-weight: 500;
}

/* BUTTONS */
.ab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-decoration: none;
    box-sizing: border-box;
}

.ab-btn-primary {
    background: var(--ab-primary, #059669);
    color: var(--ab-btn-text, #ffffff);
}

.ab-btn-primary:hover:not(:disabled) {
    background: var(--ab-primary-hover, #047857);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.ab-btn-outline {
    background: transparent;
    border-color: var(--ab-primary, #059669);
    color: var(--ab-primary, #059669);
    padding: 8px 16px;
    font-size: 12.5px;
}

.ab-btn-outline:hover {
    background: #ecfdf5;
}

.ab-btn-block {
    width: 100%;
    padding: 12px 18px;
    font-size: 15px;
}

.ab-btn-sm {
    padding: 7px 14px;
    font-size: 12.5px;
}

.ab-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ab-secure-note {
    font-size: 11px;
    color: var(--ab-text-muted, #64748b);
    text-align: center;
    margin: 8px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* SPINNER */
.ab-spinner {
    width: 24px;
    height: 24px;
    border: 2.5px solid rgba(5, 150, 105, 0.2);
    border-top-color: var(--ab-primary, #059669);
    border-radius: 50%;
    animation: ab-spin 0.8s linear infinite;
}

.ab-spin-icon {
    animation: ab-spin 0.8s linear infinite;
}

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

/* CONFIRMATION CARD */
.ab-confirmation-card {
    background: var(--ab-card-bg, #ffffff);
    border: 1px solid var(--ab-border, #e2e8f0);
    border-radius: var(--ab-radius, 12px);
    padding: 36px 28px;
    box-shadow: var(--ab-shadow);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.ab-confirmation-icon-wrap {
    margin-bottom: 18px;
}

.ab-checkmark-svg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    stroke-width: 2.5;
    stroke: #10b981;
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: inset 0px 0px 0px #10b981;
    animation: ab-fill .4s ease-in-out .4s forwards, ab-scale .3s ease-in-out .9s both;
}

.ab-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2.5;
    stroke-miterlimit: 10;
    stroke: #10b981;
    fill: none;
    animation: ab-stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.ab-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #10b981;
    animation: ab-stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .6s forwards;
}

@keyframes ab-stroke { 100% { stroke-dashoffset: 0; } }
@keyframes ab-scale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
@keyframes ab-fill { 100% { box-shadow: inset 0px 0px 0px 30px #ecfdf5; } }

.ab-confirmation-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ab-heading, #0f172a);
    margin: 0 0 6px 0;
}

.ab-confirmation-subtitle {
    font-size: 13.5px;
    color: var(--ab-text-muted, #64748b);
    margin: 0 0 20px 0;
}

.ab-booking-badge-banner {
    background: #ecfdf5;
    color: #065f46;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid #a7f3d0;
}

.ab-conf-details-table {
    background: #f8fafc;
    border: 1px solid var(--ab-border, #e2e8f0);
    border-radius: 8px;
    padding: 14px 18px;
    text-align: left;
    margin-bottom: 24px;
}

.ab-conf-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 13.5px;
}

.ab-conf-row:last-child {
    border-bottom: none;
}

.ab-conf-label {
    color: #64748b;
    font-weight: 600;
}

.ab-conf-value {
    color: #0f172a;
    font-weight: 600;
}

.ab-status-confirmed {
    color: var(--ab-primary, #059669);
}

.ab-conf-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* MODAL STYLING FOR BUTTON SHORTCODE */
.ab-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.ab-modal-dialog {
    background: #ffffff;
    border-radius: var(--ab-radius, 12px);
    max-width: 1040px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.ab-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    z-index: 10;
}

.ab-modal-close:hover {
    color: #0f172a;
}

.ab-modal-content .ab-booking-wrapper {
    margin: 0;
    box-shadow: none;
}

/* RESPONSIVE DESIGN (TABLET & MOBILE) */
@media (max-width: 960px) {
    .ab-main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ab-left-column {
        position: static;
    }
}

@media (max-width: 480px) {
    .ab-booking-wrapper {
        margin: 12px auto;
    }
    .ab-left-column,
    .ab-step-card {
        padding: 18px 14px;
    }
    .ab-calendar-wrapper {
        padding: 8px;
    }
    .ab-day-cell {
        font-size: 11.5px;
    }
    .ab-slots-container {
        gap: 6px;
    }
    .ab-slot-chip {
        padding: 7px 10px !important;
        font-size: 11.5px !important;
        flex: 1 1 calc(50% - 6px);
    }
    .ab-conf-actions {
        flex-direction: column;
    }
    .ab-conf-actions .ab-btn {
        width: 100%;
    }
}
