/* ==========================================================================
   Avaaza — FTM Floating Basket Widget CSS   v4.3.2
   Shaan Designs · May 2026
   Brand: Cream / Ivory / Black / Gold — Cormorant / Josefin / Jost
   ========================================================================== */

/* ══════════════════════════════════════════════════════════════
   CSS Custom Properties (widget-scoped)
══════════════════════════════════════════════════════════════ */
.ftmw-badge,
.ftmw-panel,
.ftmw-overlay {
    --ftmw-black:    #0A0A0A;
    --ftmw-charcoal: #2C2C2C;
    --ftmw-warm:     #4E4A46;
    --ftmw-muted:    #6B6560;
    --ftmw-subtle:   #9A948D;
    --ftmw-pale:     #C4BDB6;
    --ftmw-cream:    #FAF8F3;
    --ftmw-ivory:    #F2EDE2;
    --ftmw-border:   rgba(10,10,10,0.08);
    --ftmw-border-md:rgba(10,10,10,0.14);
    --ftmw-gold:     #B8872A;
    --ftmw-gold-lt:  #D4A54A;
    --ftmw-gold-gl:  rgba(184,135,42,0.55);
    --ftmw-white:    #ffffff;
    --ftmw-ff-disp:  'Cormorant Garamond', Georgia, serif;
    --ftmw-ff-tag:   'Josefin Sans', sans-serif;
    --ftmw-ff-ui:    'Jost', system-ui, sans-serif;
    --ftmw-radius:   50px;
    --ftmw-trans:    0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════════════════════════
   OVERLAY
══════════════════════════════════════════════════════════════ */
.ftmw-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.48);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ftmw-trans);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.ftmw-overlay.ftmw-open {
    opacity: 1;
    pointer-events: auto;
}

/* ══════════════════════════════════════════════════════════════
   SLIDE-OUT PANEL
══════════════════════════════════════════════════════════════ */
.ftmw-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100vw;
    background: var(--ftmw-cream);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--ftmw-trans);
    box-shadow: -12px 0 64px rgba(10, 10, 10, 0.22);
}
.ftmw-panel.ftmw-open {
    transform: translateX(0);
}

/* Panel — Header */
.ftmw-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 28px 20px;
    border-bottom: 1px solid var(--ftmw-border);
    flex-shrink: 0;
    background: var(--ftmw-cream);
}
.ftmw-panel-eyebrow {
    display: block;
    font-family: var(--ftmw-ff-tag);
    font-size: 9px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--ftmw-gold);
    margin-bottom: 4px;
    font-weight: 400;
}
.ftmw-panel-title {
    font-family: var(--ftmw-ff-disp);
    font-size: 26px;
    font-weight: 400;
    color: var(--ftmw-black);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.2px;
}
.ftmw-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    color: var(--ftmw-pale);
    padding: 4px 8px;
    transition: color 0.2s;
    font-family: var(--ftmw-ff-ui);
    flex-shrink: 0;
    margin-left: 12px;
}
.ftmw-close:hover { color: var(--ftmw-black); }

/* Panel — Body (scrollable) */
.ftmw-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px;
    scroll-behavior: smooth;
}
.ftmw-panel-body::-webkit-scrollbar { width: 3px; }
.ftmw-panel-body::-webkit-scrollbar-track { background: transparent; }
.ftmw-panel-body::-webkit-scrollbar-thumb {
    background: rgba(184, 135, 42, 0.28);
    border-radius: 2px;
}

/* Panel — Loading */
.ftmw-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 40px 0;
    color: var(--ftmw-subtle);
    font-family: var(--ftmw-ff-ui);
    font-size: 14px;
    font-weight: 300;
}
.ftmw-spinner-ring {
    width: 20px;
    height: 20px;
    border: 2px solid var(--ftmw-border-md);
    border-top-color: var(--ftmw-gold);
    border-radius: 50%;
    animation: ftmw-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes ftmw-spin { to { transform: rotate(360deg); } }

/* Panel — Empty state */
.ftmw-empty {
    text-align: center;
    padding: 60px 20px 40px;
    color: var(--ftmw-subtle);
    font-family: var(--ftmw-ff-ui);
    font-size: 15px;
    line-height: 1.8;
}
.ftmw-empty-icon {
    display: block;
    font-size: 44px;
    margin-bottom: 16px;
    opacity: 0.35;
}
.ftmw-browse-link {
    display: inline-block;
    margin-top: 20px;
    font-family: var(--ftmw-ff-tag);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ftmw-gold);
    text-decoration: none;
    transition: color 0.2s;
}
.ftmw-browse-link:hover { color: var(--ftmw-black); }

/* Panel — Items list */
.ftmw-items {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ftmw-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--ftmw-border);
    transition: opacity 0.25s;
    position: relative;
}
.ftmw-item:last-child { border-bottom: none; }
.ftmw-item.ftmw-removing { opacity: 0.35; pointer-events: none; }

.ftmw-item-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: var(--ftmw-ivory);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ftmw-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ftmw-item-img-ph {
    font-size: 22px;
    opacity: 0.4;
    color: var(--ftmw-gold);
}

.ftmw-item-info { flex: 1; min-width: 0; }
.ftmw-item-name {
    font-family: var(--ftmw-ff-disp);
    font-size: 18px;
    font-weight: 400;
    color: var(--ftmw-black);
    margin: 0 0 4px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ftmw-item-meta {
    font-family: var(--ftmw-ff-ui);
    font-size: 12px;
    color: var(--ftmw-muted);
    line-height: 1.9;   /* comfortable gap between stacked date / type / location lines */
    margin-bottom: 4px;
}
.ftmw-meta-icon { font-size: 11px; }
.ftmw-item-price {
    font-family: var(--ftmw-ff-tag);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ftmw-gold);
    margin-top: 5px;
}

.ftmw-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: var(--ftmw-pale);
    padding: 2px 6px;
    transition: color 0.2s;
    flex-shrink: 0;
    align-self: flex-start;
    font-family: var(--ftmw-ff-ui);
    margin-top: 1px;
}
.ftmw-remove:hover { color: #8B3030; }

.ftmw-item-summary {
    font-family: var(--ftmw-ff-tag);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ftmw-subtle);
    text-align: right;
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--ftmw-border);
}

/* Panel — Footer (quote form + actions) */
.ftmw-panel-footer {
    border-top: 1px solid var(--ftmw-border);
    padding: 20px 28px 28px;
    background: var(--ftmw-ivory);
    flex-shrink: 0;
}

.ftmw-quote-form { margin-bottom: 16px; }
.ftmw-quote-label {
    font-family: var(--ftmw-ff-tag);
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ftmw-gold);
    margin: 0 0 14px;
    font-weight: 400;
}
.ftmw-field {
    display: block;
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid var(--ftmw-border-md);
    background: transparent;
    font-family: var(--ftmw-ff-ui);
    font-size: 15px;
    font-weight: 400;
    color: var(--ftmw-charcoal);
    margin-bottom: 10px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.ftmw-field::placeholder { color: var(--ftmw-pale); }
.ftmw-field:focus { outline: none; border-color: var(--ftmw-gold); }

.ftmw-err {
    padding: 10px 14px;
    background: rgba(180, 40, 40, 0.06);
    border-left: 3px solid #C85555;
    color: #8B3030;
    font-family: var(--ftmw-ff-ui);
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.ftmw-footer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Buttons */
.ftmw-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    text-align: center;
    font-family: var(--ftmw-ff-tag);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
    cursor: pointer;
    border-radius: var(--ftmw-radius);
    transition: background 0.22s, box-shadow 0.28s, transform 0.15s, color 0.2s, border-color 0.2s;
    text-decoration: none;
    border: none;
    box-sizing: border-box;
}
.ftmw-btn--primary {
    background: var(--ftmw-black);
    color: var(--ftmw-white);
    box-shadow: 0 4px 18px rgba(184, 135, 42, 0.22);
}
.ftmw-btn--primary:hover,
.ftmw-btn--primary:focus {
    background: var(--ftmw-gold);
    color: var(--ftmw-white);
    box-shadow: 0 8px 32px var(--ftmw-gold-gl);
    transform: translateY(-1px);
    outline: none;
}
.ftmw-btn--primary:disabled {
    background: var(--ftmw-warm);
    box-shadow: none;
    transform: none;
    cursor: default;
}
.ftmw-btn--secondary {
    background: transparent;
    color: var(--ftmw-charcoal);
    border: 1px solid var(--ftmw-border-md);
}
.ftmw-btn--secondary:hover,
.ftmw-btn--secondary:focus {
    border-color: var(--ftmw-gold);
    color: var(--ftmw-gold);
    outline: none;
}
.ftmw-btn--ghost {
    background: transparent;
    color: var(--ftmw-subtle);
    border: 1px solid var(--ftmw-border);
    margin-top: 8px;
}
.ftmw-btn--ghost:hover { color: var(--ftmw-charcoal); border-color: var(--ftmw-border-md); }

/* Panel — Success state */
.ftmw-panel-success {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--ftmw-cream);
    padding: 40px 36px;
    text-align: center;
}
.ftmw-success-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(184, 135, 42, 0.1);
    color: var(--ftmw-gold);
    font-size: 30px;
    margin-bottom: 24px;
    font-weight: 300;
}
.ftmw-success-title {
    font-family: var(--ftmw-ff-disp);
    font-size: 32px;
    font-weight: 400;
    color: var(--ftmw-black);
    margin: 0 0 14px;
}
.ftmw-success-msg {
    font-family: var(--ftmw-ff-ui);
    font-size: 15px;
    color: var(--ftmw-muted);
    line-height: 1.8;
    margin: 0 0 32px;
}

/* ══════════════════════════════════════════════════════════════
   FLOATING BADGE BUTTON  (bottom-right, always visible)
══════════════════════════════════════════════════════════════ */
.ftmw-badge {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
}

.ftmw-badge-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px 13px 16px;
    background: var(--ftmw-black);
    color: var(--ftmw-white);
    border: none;
    border-radius: var(--ftmw-radius);
    cursor: pointer;
    font-family: var(--ftmw-ff-tag);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
    white-space: nowrap;
    box-shadow:
        0 4px 14px rgba(10, 10, 10, 0.28),
        0 2px 6px rgba(184, 135, 42, 0.18);
    transition: background 0.22s, box-shadow 0.28s, transform 0.15s;
}
.ftmw-badge-btn:hover,
.ftmw-badge-btn:focus {
    background: var(--ftmw-gold);
    box-shadow:
        0 8px 28px rgba(184, 135, 42, 0.52),
        0 0 0 4px rgba(184, 135, 42, 0.14);
    transform: translateY(-2px);
    outline: none;
}
.ftmw-badge-btn:active { transform: translateY(0); }

.ftmw-badge-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ftmw-white);
    opacity: 0.9;
}
.ftmw-badge-label {
    letter-spacing: 2.5px;
}
.ftmw-badge-count {
    background: var(--ftmw-gold);
    color: var(--ftmw-white);
    font-family: var(--ftmw-ff-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}
.ftmw-badge-btn:hover .ftmw-badge-count,
.ftmw-badge-btn:focus .ftmw-badge-count {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* ══════════════════════════════════════════════════════════════
   MOBILE MENU — Get a quote pill
══════════════════════════════════════════════════════════════ */
.ftmw-mobile-quote-item {
    padding: 12px 20px 4px !important;
    list-style: none !important;
}
.ftmw-mobile-quote-link {
    display: inline-block;
    padding: 12px 32px;
    background: var(--ftmw-black);
    color: var(--ftmw-white) !important;
    border-radius: var(--ftmw-radius);
    font-family: var(--ftmw-ff-tag);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 3px 14px rgba(184, 135, 42, 0.2);
    transition: background 0.22s, box-shadow 0.25s;
}
.ftmw-mobile-quote-link:hover,
.ftmw-mobile-quote-link:focus {
    background: var(--ftmw-gold);
    box-shadow: 0 6px 22px rgba(184, 135, 42, 0.45);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile adjustments
══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .ftmw-badge {
        bottom: 20px;
        right: 16px;
    }
    .ftmw-badge-label { display: none; }   /* icon + count only on small screens */
    .ftmw-badge-btn { padding: 12px 14px; gap: 8px; }

    .ftmw-panel {
        width: 100%;
        top: 0;
        border-radius: 0;
    }
    .ftmw-panel-header,
    .ftmw-panel-body,
    .ftmw-panel-footer { padding-left: 20px; padding-right: 20px; }
}
