/*
Combined CSS for AI Product Recommender Chat Widget
Merges styles from air-chat.css and chat.css, prioritizing clarity and consistency.
*/

:root {
    /* Define primary/secondary colors using CSS variables, allowing easier theme customization */
    /* These can be overridden inline or via WordPress settings if needed */
    --air-primary-color: #0073aa; /* Default WP Blue */
    --air-primary-hover-color: #005a87;
    --air-secondary-color: #ffffff;
    --air-text-color: #333;
    --air-bot-message-bg: #f0f0f0; /* Lighter gray for bot messages */
    --air-user-message-bg: var(--air-primary-color);
    --air-user-message-text: var(--air-secondary-color);
    --air-widget-background: #ffffff;
    --air-messages-background: #eef1f5;
    --air-border-color: #eee;
    --air-input-border-color: #ddd;
    --air-link-color: var(--air-primary-color);
    --air-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* --- Base Widget Layout --- */
/* Remove styles related to fixed positioning for floating widget */
/* .air-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px; 
    display: flex;
    flex-direction: column;
    z-index: 9999;
    width: 360px; 
    height: 550px; 
} */

/* Page-level wrapper constrains width to content area */
.air-chat-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Style the main container for embedding */
.air-chat-container {
    background-color: #ffffff;
    border: 1.5px solid #7c8ba1;
    border-radius: 12px;
    box-shadow: 0 14px 38px rgba(15, 30, 50, 0.15), 0 2px 8px rgba(15, 30, 50, 0.08);
    display: flex;
    flex-direction: column;
    font-family: var(--air-font-family);
    margin: 20px 0;
    width: 100%;
    height: 70vh;
    height: 70dvh;
    min-height: 420px;
    overflow: hidden;
}

.air-chat-header {
    padding: 12px 15px;
    /* No own radius: the container's overflow:hidden clips the top corners
       flush to the border. A separate radius here left a sliver at the corners. */
    background-color: var(--air-primary-color);
    color: var(--air-secondary-color);
    /* cursor: pointer; /* Not needed for embedded */
    flex-shrink: 0; /* Prevent header from shrinking */
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative; /* anchor the animated backdrop */
    overflow: hidden;   /* clip the equalizer canvas to the header */
}

/* Animated equalizer backdrop (sits behind the title/controls) */
.air-header-anim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
/* Keep text and controls above the animation */
.air-chat-heading,
.air-chat-header .air-header-controls { position: relative; z-index: 1; }

/* Header controls wrapper */
.air-header-controls { display: flex; gap: 8px; align-items: center; }

/* New conversation button */
.air-new-chat-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.air-new-chat-btn:hover { background: rgba(255,255,255,0.35); }

/* Experiment toggle */
.air-experiment-toggle { display: flex; gap: 6px; align-items: center; }
.air-exp-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 4px 8px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
}
.air-exp-btn.active { background: #fff; color: #111; }

/* Ensure header title exists and is styled */
.air-chat-heading {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.air-chat-header .air-chat-title {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.15;
}
.air-chat-header .air-chat-subtitle {
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .01em;
    opacity: 0.85;
}

.air-chat-messages {
    flex: 1 1 auto; /* Allow messages area to grow */
    min-height: 0; /* CRITICAL: let it shrink so a long product list scrolls
                      inside the container instead of growing it past its set
                      height and breaking the surrounding page layout */
    overflow-y: auto;
    padding: 15px;
    background: var(--air-messages-background);
    }

/* Suggested start prompt bubbles - positioned over input area */
.air-suggested-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 2px 12px;
    max-width: 100%;
}
.air-suggested-prompt {
    background: var(--air-secondary-color, #ffffff);
    color: var(--air-primary-color, #2563eb);
    border: 1px solid var(--air-primary-color, #2563eb);
    padding: 6px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.air-suggested-prompt:hover { transform: scale(1.05); box-shadow: 0 3px 6px rgba(0,0,0,0.1); background: var(--air-primary-color, #2563eb); color: var(--air-secondary-color, #ffffff); }

/* Refinement bubbles */
.air-refinement-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.air-refinement-btn {
    background: #fff;
    color: #111;
    border: 1px solid #e5e7eb;
    padding: 6px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
}
.air-refinement-btn:hover { transform: scale(1.05); box-shadow: 0 3px 6px rgba(0,0,0,0.1); }

/* --- Message Styling --- */
.air-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    animation: messageSlideIn 0.3s ease-out;
}

.air-user-message {
    align-items: flex-end;
}

.air-bot-message {
    align-items: flex-start;
}

.air-system-message {
    align-items: center;
    font-size: 0.9em;
    color: #666;
}

.air-error-message {
     align-items: center;
}

.air-message-content {
    max-width: 85%; /* Slightly wider */
    padding: 10px 15px;
    border-radius: 18px; /* More rounded */
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    /* Honour paragraph breaks the assistant writes, instead of collapsing them
       into one wall of text. */
    white-space: pre-line;
}

.air-user-message .air-message-content {
    background: var(--air-user-message-bg);
    color: var(--air-user-message-text);
    border-bottom-right-radius: 5px;
}

.air-bot-message .air-message-content {
    background: #ffffff;
    color: var(--air-text-color);
    border: 1px solid #b4c0cf;
    border-bottom-left-radius: 5px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.air-system-message .air-message-content {
    background: transparent;
    padding: 5px 10px;
    text-align: center;
}

.air-error-message .air-message-content {
    background: #ffebee; /* Light red background for errors */
    color: #c62828; /* Darker red text */
    border: 1px solid #ffcdd2;
    padding: 10px 15px;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

/* NEW: Container for product recommendations to override max-width */
.air-message-content-products {
    max-width: 100%;
    width: 100%;
}

/* Links within messages */
.air-message-content a {
    color: var(--air-link-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted var(--air-link-color);
}

.air-message-content a:hover {
    text-decoration: none;
    border-bottom: 1px solid var(--air-link-color);
}

.air-bot-message .air-message-content a {
     color: var(--air-primary-color); /* Ensure links in bot messages stand out */
     font-weight: 500;
}

/* --- Input Area --- */
/* Increased specificity by prepending .air-chat-container */
.air-chat-container .air-chat-input-area { /* Container for textarea and button */
    padding: 12px 15px !important;
    border-top: 1px solid var(--air-border-color) !important;
    background: #ffffff !important; /* Slightly distinct background */
    display: flex !important;
    align-items: flex-end !important; /* keep send block at the bottom as the field grows */
    gap: 8px !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    flex-shrink: 0 !important;
}

/* Corrected selector to target the textarea by its actual class */
.air-chat-container .air-chat-input-area .air-chat-input {
    flex: 1 !important;
    border: 1.5px solid #94a3b8 !important; /* Clearly visible field edge */
    border-radius: 8px !important; /* Slightly less rounded than pill */
    padding: 12px 15px !important;
    resize: none !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    min-height: 72px !important; /* two lines tall; matches the send button */
    max-height: 140px !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important; /* Firefox: slim scrollbar */
    scrollbar-color: #cbd5e1 transparent !important;
    font-family: inherit !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    outline: none !important; /* Remove default outline */
    box-shadow: none !important; /* No initial shadow */
    color: var(--air-text-color) !important; /* Ensure text color isn't overridden */
}

/* Corrected :focus selector */
.air-chat-container .air-chat-input-area .air-chat-input:focus {
    border-color: var(--air-primary-color) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2) !important; /* Subtle focus ring */
}

/* Slim, tasteful scrollbar for the input (replaces the chunky arrow scrollbar
   that clipped the field's rounded corners once text overflowed) */
.air-chat-container .air-chat-input::-webkit-scrollbar { width: 8px; }
.air-chat-container .air-chat-input::-webkit-scrollbar-track { background: transparent; margin: 8px 0; }
.air-chat-container .air-chat-input::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
.air-chat-container .air-chat-input::-webkit-scrollbar-thumb:hover { background: #b4c0cf; }

/* Style for when clarification is needed - Assuming clarification adds class to the container */
.air-chat-container .air-chat-input-area.needs-clarification .air-chat-input { 
    border-color: orange !important;
    background-color: #fffbe6 !important;
}

/* Send Button - Modern Look */
.air-chat-container .air-chat-send-btn {
    flex-shrink: 0 !important;
    padding: 0 !important;
    width: 54px !important;
    height: 72px !important; /* match the two-line field height */
    box-sizing: border-box !important;
    border: none !important;
    border-radius: 10px !important; /* rounded block, not a circle */
    background-color: var(--air-primary-color) !important;
    color: var(--air-secondary-color) !important;
    cursor: pointer !important;
    font-size: 20px !important; /* Icon size */
    display: flex !important; /* Center icon */
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s, transform 0.1s !important;
    line-height: 1 !important; /* Prevent extra spacing */
}

.air-chat-container .air-chat-send-btn::before { /* Add send icon using pseudo-element */
    content: "\27A4" !important; /* Unicode Paper Plane symbol - adjust if needed */
    display: inline-block !important;
    transform: rotate(-45deg) translateY(1px) !important; /* Adjust rotation/position */
    color: var(--air-secondary-color) !important; /* Ensure icon color */
    font-size: inherit !important; /* Inherit size from button */
    font-family: inherit !important; /* Ensure font allows icon */
}

.air-chat-container .air-chat-send-btn:hover {
    background-color: var(--air-primary-hover-color) !important;
}

.air-chat-container .air-chat-send-btn:active { /* Add slight press effect */
     transform: scale(0.95) !important;
}

.air-chat-container .air-chat-send-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background-color: var(--air-primary-color) !important; 
    transform: scale(1) !important; /* Prevent press effect when disabled */
}

/* --- Typing Indicator --- */
.air-typing-indicator .air-message-content {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.air-typing-phrase {
    font-size: 13px;
    color: #777;
    font-style: italic;
    white-space: nowrap;
}

.air-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.air-typing-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #aaa;
    animation: typing-animation 1.2s infinite ease-in-out;
}

.air-typing-dot:nth-child(1) { animation-delay: 0s; }
.air-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.air-typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* --- Product Recommendations --- */
.air-products-recommendations {
    padding: 10px;
    margin: 10px 0;
}

.air-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px; /* Adjust gap between cards */
    padding: 10px 0;
}

.air-product-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures footer is at the bottom */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.air-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.air-product-card-image {
    width: 100%;
    height: 180px; /* Fixed height for image container */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa; /* Light background for images */
}

.air-product-card-image img {
    width: auto;
    height: 100%; /* Make image fit the container height */
    max-width: 100%;
    object-fit: contain; /* Use contain to prevent cropping, was 'cover' */
}

/* --- Card Info --- */
.air-product-card-info {
    padding: 16px;
    flex-grow: 1; /* Allows this section to fill available space */
    display: flex;
    flex-direction: column;
    text-align: left; /* Align text to the left */
}

.air-product-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.air-product-card-price {
    font-size: 16px;
    color: #34495e;
    margin-top: auto; /* Pushes price to the bottom of the info section if title is short */
    margin-bottom: 12px;
}

.air-product-card-price .from {
    font-size: 13px;
    color: #7f8c8d;
}

.air-product-card-price .amount {
    font-weight: 700;
    color: #2c3e50;
}

.air-product-card-reason {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    line-height: 1.4;
    margin: 4px 0 8px 0;
}

.air-products-total {
    font-size: 15px;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

/* --- Card Actions / Buttons --- */
.air-product-card-actions {
    padding: 0 16px 16px 16px; /* Padding for the button container */
}

.air-add-to-cart-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: var(--air-primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.air-add-to-cart-btn:hover {
    background-color: var(--air-primary-hover-color);
}

.air-add-to-cart-btn:disabled {
    background-color: #a5d6a7; /* Light green when added */
    cursor: not-allowed;
    opacity: 1; /* Override default disabled opacity */
}

.air-add-to-cart-btn.air-added-to-cart {
    background-color: #4CAF50; /* A clearer green for success */
}
.air-add-to-cart-btn.air-error-to-cart {
    background-color: #e74c3c; /* Red for error */
}


/* --- Interactive Checklist --- */
.air-checklist {
    display: flex;
    flex-direction: column;
    background: #f0f2f5;
    border-radius: 8px;
    overflow: hidden;
    gap: 1px; /* creates separator lines between rows */
}

.air-checklist-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: #fff;
    transition: opacity 0.2s ease;
}

/* Controls keep a little air between them without crowding the name column */
.air-checklist-row > .air-checklist-qty,
.air-checklist-row > .air-checklist-alt {
    flex-shrink: 0;
}

.air-checklist-row.air-unchecked {
    opacity: 0.5;
}

.air-checklist-checkbox {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.air-checklist-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--air-primary-color, #0073aa);
    cursor: pointer;
    margin: 0;
}

.air-checklist-checkmark {
    display: none; /* using native checkbox */
}

.air-checklist-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
}

.air-checklist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.air-checklist-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* The name wraps instead of clipping. It previously carried white-space:nowrap,
   so in a narrow container it could only truncate to "Electro-Voice…" and the
   customer could not tell which product it was. */
.air-checklist-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* Price sits last in the row and right-aligns in a fixed column so the numbers
   line up down the list and stay easy to compare. */
.air-checklist-price {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    white-space: nowrap;
    min-width: 68px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    margin-left: 2px;
}

.air-checklist-alt {
    flex-shrink: 0;
    min-width: 0;
}

.air-checklist-alt-select {
    font-size: 12px;
    padding: 4px 6px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #fafafa;
    color: #333;
    max-width: 140px;
    cursor: pointer;
}

.air-checklist-alt-select:focus {
    outline: none;
    border-color: var(--air-primary-color);
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.air-checklist-total {
    font-size: 15px;
    color: #2c3e50;
    padding: 10px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

/* --- Footer / Add All Button --- */
.air-products-footer {
    text-align: center;
    margin-top: 16px;
}

.air-checklist-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.air-footer-message {
    font-size: 14px;
    color: #374151;
    text-align: center;
    line-height: 1.5;
}

.air-footer-note {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    font-style: italic;
}

.air-footer-options {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.air-footer-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.air-footer-option-numbered {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
}

.air-footer-option-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--air-primary-color, #0073aa);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.air-footer-option-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.air-footer-option-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.air-send-to-consultant-btn {
    padding: 12px 24px;
    border: 2px solid var(--air-primary-color, #0073aa);
    border-radius: 8px;
    background: transparent;
    color: var(--air-primary-color, #0073aa);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.air-send-to-consultant-btn:hover {
    background: var(--air-primary-color, #0073aa);
    color: #fff;
}

.air-send-to-consultant-btn:active {
    transform: scale(0.98);
}

.air-add-all-to-cart-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background-color: #2ecc71;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.air-add-all-to-cart-btn:hover {
    background-color: #27ae60;
}

.air-add-all-to-cart-btn:active {
    transform: scale(0.98);
}

.air-add-all-to-cart-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.8;
}

.air-add-all-to-cart-btn.air-added-to-cart {
    background-color: #27ae60;
}

/* --- Consultant Form --- */
.air-consultant-form {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.air-consultant-form-header {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.air-consultant-form input[type="text"],
.air-consultant-form input[type="email"],
.air-consultant-form textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-family: inherit;
    box-sizing: border-box;
}

.air-consultant-form input:focus,
.air-consultant-form textarea:focus {
    outline: none;
    border-color: var(--air-primary-color);
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.air-consultant-form textarea {
    resize: vertical;
    min-height: 48px;
}

.air-consultant-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.air-consultant-submit-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: var(--air-primary-color, #0073aa);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.air-consultant-submit-btn:hover {
    background: var(--air-primary-hover-color, #005a87);
}

.air-consultant-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.air-consultant-cancel-btn {
    padding: 10px 20px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.air-consultant-cancel-btn:hover {
    background: #f0f0f0;
}

.air-consultant-success {
    font-size: 14px;
    color: #27ae60;
    font-weight: 600;
    padding: 12px;
    text-align: center;
}

/* --- Post-cart next-step buttons --- */
.air-checkout-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    background-color: #2ecc71;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-align: center;
}

.air-checkout-btn:hover {
    background-color: #27ae60;
    color: #fff !important;
    text-decoration: none !important;
}

.air-checkout-btn:active {
    transform: scale(0.98);
}

/* --- Animations --- */
@keyframes typing-animation {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Thinking Indicator --- */
.air-chat-thinking {
    padding: 10px 15px;
    font-style: italic;
    color: #777;
    text-align: center;
    border-top: 1px solid var(--air-border-color);
}

/* --- Mobile Responsive --- */
@media (max-width: 600px) {
    .air-chat-container {
        height: 80vh;
        height: 80dvh;
        min-height: 360px;
        margin: 10px 0;
    }

    .air-suggested-prompts {
        max-width: 100%;
    }

    .air-suggested-prompt {
        font-size: 13px;
        padding: 5px 9px;
    }

    .air-products-grid {
        grid-template-columns: 1fr;
    }

    /* Checklist mobile: wrap rows */
    .air-checklist-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
    }

    .air-checklist-thumb {
        width: 40px;
        height: 40px;
    }

    .air-checklist-info {
        flex-basis: calc(100% - 80px); /* checkbox + thumb + gaps */
    }

    .air-checklist-price {
        margin-left: auto;
    }

    .air-checklist-alt {
        width: 100%;
    }

    .air-checklist-alt-select {
        width: 100%;
        max-width: 100%;
    }

    .air-footer-options {
        flex-direction: column;
    }

    .air-footer-option-desc {
        max-width: 100%;
    }

    .air-checklist-footer button,
    .air-checklist-footer .air-checkout-btn {
        width: 100%;
    }

    .air-consultant-form-actions {
        flex-direction: column;
    }

    .air-consultant-form-actions button {
        width: 100%;
        text-align: center;
    }

    .air-date-form {
        grid-template-columns: 1fr;
    }

    .air-date-form label {
        grid-column: span 1;
    }

    .air-confirmation-buttons {
        flex-direction: column;
    }

    .air-confirmation-buttons button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-height: 500px) {
    .air-chat-container {
        height: 90vh;
        height: 90dvh;
        min-height: 280px;
    }
}

/* Set base font size for rem calculations */
html {
    font-size: 16px;
}

.air-context-summary {
    margin: 10px 0;
    padding: 14px 16px 12px;
    background-color: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.air-summary-category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    margin-bottom: 8px;
}

/* Event sentence leading the summary card: the card's title, ruled off from
   the checklist so the eye starts there. */
.air-summary-lead {
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
    font-weight: 600;
    color: var(--air-text-color, #333);
    line-height: 1.35;
}

/* One heading per element, its lines nested underneath */
.air-summary-group + .air-summary-group {
    margin-top: 14px;
}

.air-summary-group-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #57616f;
    margin-bottom: 5px;
}

.air-summary-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.air-summary-list li {
    position: relative;
    padding: 3px 0 3px 22px;
    font-size: 13.5px;
    color: var(--air-text-color, #333);
    line-height: 1.45;
}

.air-summary-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--air-primary-color, #0073aa);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.45;
}

/* Reassurance footnote sits below the checklist, ruled off like the title */
.air-context-summary .air-assumptions-sub {
    margin: 14px 0 0;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

/* The reassurance is a message, not fine print: ruled off from the checklist,
   tinted so it reads as a note, at full contrast rather than greyed. */
.air-summary-note {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid #e5e7eb;
}

.air-summary-note-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f5f7e;
    margin-bottom: 7px;
}

.air-summary-note-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.air-summary-note-list li {
    position: relative;
    padding: 0 0 0 16px;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--air-text-color, #333);
}

.air-summary-note-list li:last-child {
    margin-bottom: 0;
}

.air-summary-note-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #1f5f7e;
}

.air-context-summary-collapsed .air-message-content {
    font-style: normal;
}

.air-context-summary-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: #1f2937;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.2;
    max-width: 100%;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.air-context-summary-pill:hover,
.air-context-summary-pill.expanded {
    background-color: rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.12);
}

.air-context-summary-pill:focus-visible {
    outline: 2px solid var(--air-primary-color, #2563eb);
    outline-offset: 2px;
}

.air-context-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: var(--air-primary-color, #2563eb);
    color: var(--air-secondary-color, #ffffff);
    font-size: 0.75rem;
    font-weight: 600;
}

.air-context-pill-label {
    font-weight: 600;
    color: inherit;
}

.air-context-pill-preview {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    opacity: 0.85;
}

.air-context-summary-detail {
    display: none;
    margin-top: 8px;
    padding: 12px;
    background-color: #f8f8f8;
    border-left: 3px solid var(--air-primary-color, #0073aa);
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.air-context-summary-pill.expanded + .air-context-summary-detail {
    display: block;
}

/* --- Clarification Details Section --- */
.air-clarification-details {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.air-clarification-header {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.air-clarification-list {
    margin: 0;
    padding: 0 0 0 18px;
    list-style: disc;
}

.air-clarification-list li {
    font-size: 13.5px;
    color: var(--air-text-color, #333);
    line-height: 1.5;
    margin-bottom: 4px;
}

.air-clarification-question {
    font-size: 13.5px;
    color: var(--air-text-color, #333);
    margin: 0;
    line-height: 1.5;
}

.air-confirmation-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px; /* Add space between buttons */
    justify-content: center;
}

/* Two equal choices, not a primary and a fallback. Same size and weight,
   separated by hue and icon, so asking for changes reads as a normal option
   rather than a refusal. */
.air-confirmation-buttons button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 17px;
    border: 1px solid transparent;
    border-radius: 20px; /* Rounded corners */
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.air-confirmation-buttons button::before {
    font-size: 0.95em;
    line-height: 1;
}

.air-confirmation-buttons .air-confirm-button {
    background-color: #e6f3ec;
    border-color: #b4d9c7;
    color: #1e6b4e;
}

.air-confirmation-buttons .air-confirm-button::before {
    content: "\2713";
}

.air-confirmation-buttons .air-confirm-button:hover {
    background-color: #d6ebe0;
}

.air-confirmation-buttons .air-edit-button {
    background-color: #fbf0e1;
    border-color: #eacfa8;
    color: #975910;
}

.air-confirmation-buttons .air-edit-button::before {
    content: "\270E";
}

.air-confirmation-buttons .air-edit-button:hover {
    background-color: #f6e6ce;
}

.air-confirmation-buttons button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.air-system-message .air-message-content {
    font-style: italic;
    color: #555;
    font-size: 0.9em;
    text-align: center;
    padding: 5px 0;
}

/* --- Rental Date Picker (inline, elegant) --- */
.air-rental-date-picker .air-message-content {
    background: #fff;
    border: 1px solid var(--air-border-color);
    border-radius: 10px;
    padding: 16px;
    max-width: 520px;
}

.air-date-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    align-items: end;
    margin-bottom: 14px;
}

.air-date-form label {
    grid-column: span 2;
    text-align: left;
    font-size: 0.95rem;
    color: #444;
    margin-bottom: -6px; /* tighten label spacing */
}

.air-date-form input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fafafa;
    color: #333;
}

.air-date-form input[type="date"]:focus {
    outline: none;
    border-color: var(--air-primary-color);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}

.air-date-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.air-date-actions .air-date-apply,
.air-date-actions .air-date-skip {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--air-primary-color);
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.air-date-actions .air-date-apply {
    background: var(--air-primary-color);
    color: #fff;
}
.air-date-actions .air-date-apply:hover { background: var(--air-primary-hover-color); }
.air-date-actions .air-date-apply:active { transform: scale(0.98); }

.air-date-actions .air-date-skip {
    background: #fff;
    color: var(--air-primary-color);
}
.air-date-actions .air-date-skip:hover { background: #f1f5f9; }

/* --- Email Gate Form --- */
.air-email-gate {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.06);
}

.air-email-gate-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    margin-bottom: 2px;
}

.air-email-gate-header {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
    text-align: center;
}

.air-email-gate-subtext {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
    margin-bottom: 4px;
    text-align: center;
}

.air-email-gate input[type="text"],
.air-email-gate input[type="email"] {
    width: 100%;
    align-self: stretch;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-family: inherit;
    box-sizing: border-box;
}

.air-email-gate input:focus {
    outline: none;
    border-color: var(--air-primary-color);
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.air-email-gate-error {
    font-size: 13px;
    color: #e74c3c;
    line-height: 1.3;
}

.air-email-gate-submit {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 9px;
    background: #1d4ed8;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
    box-shadow: 0 2px 10px rgba(29, 78, 216, 0.22);
}

.air-email-gate-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.30);
}

.air-email-gate-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
    text-align: center;
    margin-top: 2px;
}

.air-email-gate-privacy svg { flex-shrink: 0; }

.air-email-gate-submit:hover {
    background: var(--air-primary-hover-color, #005a87);
}

.air-email-gate-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Email gate wrapper uses bot message alignment */
.air-email-gate-wrapper .air-message-content {
    max-width: 92%;
}

@media (max-width: 600px) {
    .air-email-gate {
        padding: 14px 12px;
    }

    .air-email-gate-submit {
        width: 100%;
        text-align: center;
    }
}

/* --- Checklist: group headers, quantity stepper, stock badges --- */
.air-checklist-group {
    padding: 8px 12px 4px;
    background: #f8f9fa;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    border-top: 1px solid #eef0f2;
}

.air-checklist-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.air-qty-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.air-qty-btn:hover {
    background: #f3f4f6;
}

.air-qty-value {
    min-width: 22px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
}

.air-checklist-stock {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 2px;
}

.air-stock-out {
    color: #b91c1c;
}

.air-stock-limited {
    color: #b45309;
}

.air-checklist-row.air-row-oos {
    opacity: 0.6;
}

@media (max-width: 600px) {
    .air-qty-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}

/* --- WhatsApp handoff + price note --- */
.air-whatsapp-btn {
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.air-whatsapp-btn:hover {
    background: #1ebe5b;
}

.air-checklist-price-note {
    font-size: 12px;
    color: #6b7280;
    padding: 2px 12px 8px;
}

/* Assumptions block under the confirmation summary */
.air-summary-assumptions {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed #d4dbe4;
}
.air-assumptions-label {
    font-size: 12px;
    font-weight: 600;
    color: #46515f;
    margin-bottom: 4px;
}
.air-assumptions-list {
    margin: 0;
    padding-left: 18px;
    font-size: 12.5px;
    color: #46515f;
}
.air-assumptions-sub {
    font-size: 12px;
    color: #7c8ba1;
    margin: 2px 0 8px;
    line-height: 1.45;
}
.air-assumptions-list li { margin: 5px 0; line-height: 1.45; }
.air-assumptions-list .a-main { font-weight: 600; color: #34404e; }
.air-assumptions-list .a-alt { color: #7c8ba1; }

/* Clarification question: its own paragraph, one blank line below the
   acknowledgment. Typography pinned to the bubble's (overrides both the legacy
   13.5px rule and any theme-global p font). */
.air-message-content .air-clarification-question {
    margin: 10px 0 0;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}

/* --- One-tap quote (primary action) --- */
.air-quote-submit-btn {
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.air-quote-submit-btn:hover {
    background: #1e40af;
}

.air-quote-submit-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.air-quote-submit-btn.air-added-to-cart {
    background: #16a34a;
}

/* --- Swap panel (alternatives as cards) --- */
.air-swap-btn {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
}

.air-swap-btn:hover,
.air-swap-btn[aria-expanded="true"] {
    border-color: #1d4ed8;
    color: #1d4ed8;
    background: #eff6ff;
}

.air-swap-panel {
    background: #f8f9fa;
    border-top: 1px solid #eef0f2;
    border-bottom: 1px solid #eef0f2;
    padding: 10px 12px 10px 44px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.air-swap-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.air-swap-card:hover {
    border-color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.10);
}

.air-swap-card-selected {
    border-color: #1d4ed8;
    background: #eff6ff;
}

.air-swap-thumb img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.air-swap-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.air-swap-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.air-swap-price {
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
}

.air-swap-delta {
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 999px;
}

.air-swap-delta-up {
    color: #b45309;
    background: #fef3c7;
}

.air-swap-delta-down {
    color: #166534;
    background: #dcfce7;
}

.air-swap-badge {
    font-size: 11px;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 1px 7px;
    border-radius: 999px;
    margin-left: 6px;
    white-space: nowrap;
}

.air-swap-selected-badge {
    font-size: 12px;
    font-weight: 700;
    color: #1d4ed8;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .air-swap-panel {
        padding-left: 12px;
    }
}

/* --- Checklist footer: clear hierarchy --- */
.air-checklist-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px 24px;
}

.air-checklist-footer .air-footer-message {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-align: center;
}

.air-checklist-footer .air-quote-submit-btn {
    width: 100%;
    max-width: 420px;
}

.air-footer-note {
    font-size: 12.5px;
    color: #6b7280;
    text-align: center;
    max-width: 420px;
    line-height: 1.5;
    margin-top: -2px;
}

.air-footer-secondary {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 6px;
    width: 100%;
    max-width: 420px;
}

/* Both footer buttons the same size. The checkout side carries a note under
   its button, so top-align the row (stop the WhatsApp button stretching to the
   column height) and give both sides equal width. */
.air-footer-secondary .air-checkout-col {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
}
.air-footer-secondary .air-checkout-col .air-add-all-to-cart-btn {
    width: 100%;
    box-sizing: border-box;
    flex: none;
}

.air-footer-secondary button {
    flex: 1;
    min-width: 150px;
    background: #fff;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.air-footer-secondary .air-whatsapp-btn {
    border: 1.5px solid #1faa54;
    color: #0f7a41;
    background: #fff;
    width: auto;
}

.air-footer-secondary .air-whatsapp-btn:hover {
    background: #f0fdf4;
}

.air-footer-secondary .air-add-all-to-cart-btn {
    border: 1.5px solid var(--air-primary-color, #0073aa);
    color: var(--air-primary-color, #0073aa);
    background: #fff;
}

.air-footer-secondary .air-add-all-to-cart-btn:hover {
    background: var(--air-primary-color, #0073aa);
    color: #fff;
}

.air-swap-priceline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Consent beat: buttons and thumbs share one row (actions left, feedback right) */
.air-consent-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.air-consent-row .air-confirmation-buttons {
    margin-top: 0;
    flex: 1;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.air-consent-row .air-msg-feedback {
    margin-top: 0;
    flex-shrink: 0;
}

/* WhatsApp button: controlled two-line label, centered */
.air-whatsapp-btn .air-wa-l1,
.air-whatsapp-btn .air-wa-l2 {
    display: block;
    text-align: center;
    line-height: 1.3;
}

/* Checkout column: two-line button + grey amend note */
.air-footer-secondary .air-checkout-col {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.air-footer-secondary .air-checkout-col .air-add-all-to-cart-btn { width: 100%; }
.air-add-all-to-cart-btn .air-co-l1,
.air-add-all-to-cart-btn .air-co-l2 {
    display: block;
    text-align: center;
    line-height: 1.3;
}
.air-checkout-note {
    font-size: 11px;
    color: #8a97a6;
    text-align: center;
    line-height: 1.3;
}

/* Quality-tier tags on alternatives (price as quality proxy) */
.air-swap-tier {
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}
.air-tier-up { background: #f3e8ff; color: #7e22ce; }
.air-tier-down { background: #ecfdf5; color: #047857; }
.air-tier-same { background: #eef2f6; color: #64748b; }

.air-swap-delta {
    margin-left: 0;
}

/* --- Consultant readback + human-review note --- */
.air-consultant-note {
    margin: 14px 12px 4px;
    padding: 14px 16px;
    background: #f8f9fb;
    border-left: 3px solid #1d4ed8;
    border-radius: 0 10px 10px 0;
}

.air-consultant-note-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1d4ed8;
    margin-bottom: 6px;
}

.air-consultant-note p {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.air-footer-review-note {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    max-width: 420px;
    line-height: 1.5;
    margin-top: 4px;
}

/* --- Footer trust banner + polish --- */
.air-footer-assurance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 440px;
    margin: 2px auto 6px;
    padding: 13px 15px;
    background: #ffffff;
    border: 1px solid #d4dbe4;
    border-radius: 10px;
    box-sizing: border-box;
}

.air-footer-assurance-icon {
    flex-shrink: 0;
    line-height: 0;
    margin-top: 1px;
}

.air-footer-assurance-text {
    font-size: 13px;
    line-height: 1.5;
    color: #1e3a5f;
    font-weight: 500;
    text-align: left;
}

/* --- Footer button polish --- */
.air-checklist-footer .air-quote-submit-btn {
    box-shadow: 0 2px 10px rgba(29, 78, 216, 0.25);
    letter-spacing: 0.01em;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.air-checklist-footer .air-quote-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.32);
}

.air-footer-secondary button {
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.air-checklist-footer .air-footer-message {
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 2px;
}

/* --- Honeypot (spam trap): visually hidden, present in DOM --- */
.air-hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* --- Inline message feedback (thumbs) --- */
.air-msg-feedback {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 8px;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

.air-fb-thanks { order: -1; margin-left: 0; margin-right: 4px; }

.air-bot-message:hover .air-msg-feedback,
.air-msg-feedback.air-fb-done {
    opacity: 1;
}

.air-fb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.air-fb-btn:hover:not(:disabled) {
    background: #f3f4f6;
    color: #4b5563;
}

.air-fb-up.air-fb-selected {
    color: #16a34a;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.air-fb-down.air-fb-selected {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}

.air-fb-btn:disabled { cursor: default; }

.air-fb-thanks {
    font-size: 12px;
    color: #9ca3af;
    margin-left: 4px;
}

/* One-line "what went wrong" note after a thumbs-down */
.air-fb-comment-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}
.air-fb-comment-input {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    padding: 5px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
}
.air-fb-comment-input:focus {
    outline: none;
    border-color: #9ca3af;
}
.air-fb-comment-send {
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
}
.air-fb-comment-send:hover { background: #f3f4f6; }

/* --- Defend inline icons against themes that force `svg { width: 100% }` --- */
.air-email-gate-icon svg { width: 24px !important; height: 24px !important; }
.air-email-gate-privacy svg { width: 13px !important; height: 13px !important; }
.air-footer-assurance-icon svg { width: 20px !important; height: 20px !important; }
.air-fb-btn svg { width: 15px !important; height: 15px !important; }
