/**
 * Self-contained styles (no Tailwind CDN) — matches Candles Landing Page 2 widget + modals.
 * All rules scoped under #lc-cf-landing-contact-root; z-index above typical theme/header.
 */

#lc-cf-landing-contact-root {
    --lc-cf-primary: #d32027;
    --lc-cf-secondary: #f26522;
    --lc-cf-gray-50: #f9fafb;
    --lc-cf-gray-100: #f3f4f6;
    --lc-cf-gray-500: #6b7280;
    --lc-cf-gray-600: #4b5563;
    --lc-cf-gray-900: #111827;
    --lc-cf-slate-800: #1e293b;
    --lc-cf-blue-500: #3b82f6;
    --lc-cf-blue-600: #2563eb;
    --lc-cf-blue-700: #1d4ed8;
    --lc-cf-green-500: #22c55e;
    --lc-cf-pink-600: #db2777;
    --lc-cf-pink-700: #be185d;
    --lc-cf-red-500: #ef4444;
    --lc-cf-red-600: #dc2626;
    --lc-cf-z: 2147483000;

    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    isolation: isolate;
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 0;
    color-scheme: light;
    color: var(--lc-cf-gray-900);
}

#lc-cf-landing-contact-root *,
#lc-cf-landing-contact-root *::before,
#lc-cf-landing-contact-root *::after {
    box-sizing: border-box;
}

#lc-cf-landing-contact-root .lc-cf-hidden {
    display: none !important;
}

/* ---- Floating button ---- */
#lc-cf-landing-contact-root .lc-cf-fab-wrap {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: var(--lc-cf-z);
    pointer-events: auto;
}

#lc-cf-landing-contact-root #contact-btn.lc-cf-fab {
    width: 4rem;
    height: 4rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    background: linear-gradient(to right, var(--lc-cf-primary), var(--lc-cf-secondary));
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.12),
        0 4px 6px -2px rgba(0, 0, 0, 0.06);
    transition:
        box-shadow 0.2s ease,
        transform 0.15s ease;
    animation: lc-cf-pulse 2s ease-in-out infinite;
}

#lc-cf-landing-contact-root #contact-btn.lc-cf-fab:hover {
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.14),
        0 10px 10px -5px rgba(0, 0, 0, 0.06);
}

#lc-cf-landing-contact-root #contact-btn.lc-cf-fab .fas,
#lc-cf-landing-contact-root #contact-btn.lc-cf-fab .fa {
    font-size: 1em !important;
    line-height: 1 !important;
    width: 1em;
    height: 1em;
}

@keyframes lc-cf-pulse {
    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(211, 32, 39, 0.55),
            0 10px 15px -3px rgba(0, 0, 0, 0.12);
    }
    50% {
        box-shadow:
            0 0 0 10px rgba(211, 32, 39, 0),
            0 10px 15px -3px rgba(0, 0, 0, 0.12);
    }
}

/* ---- Modal overlays ---- */
#lc-cf-landing-contact-root .lc-cf-overlay {
    position: fixed;
    inset: 0;
    z-index: calc(var(--lc-cf-z) + 1);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    pointer-events: auto;
}

@media (min-width: 640px) {
    #lc-cf-landing-contact-root .lc-cf-overlay {
        align-items: center;
    }
}

/* Pick-location card */
#lc-cf-landing-contact-root .lc-cf-panel--pick {
    position: relative;
    width: 100%;
    max-width: 28rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.28);
}

#lc-cf-landing-contact-root .lc-cf-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: var(--lc-cf-red-500);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background 0.15s ease;
}

#lc-cf-landing-contact-root .lc-cf-modal-close:hover {
    background: var(--lc-cf-red-600);
}

#lc-cf-landing-contact-root .lc-cf-modal-close .fas,
#lc-cf-landing-contact-root .lc-cf-modal-close .fa {
    font-size: 1em !important;
}

#lc-cf-landing-contact-root .lc-cf-title-pick {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: var(--lc-cf-gray-900);
}

#lc-cf-landing-contact-root .lc-cf-lead {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--lc-cf-gray-600);
}

#lc-cf-landing-contact-root .lc-cf-loc-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#lc-cf-landing-contact-root .lc-cf-loc-btn {
    width: 100%;
    margin: 0;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    background: var(--lc-cf-gray-50);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: inherit;
}

#lc-cf-landing-contact-root .lc-cf-loc-btn:hover {
    background: var(--lc-cf-gray-100);
}

#lc-cf-landing-contact-root .lc-cf-loc-btn__name {
    display: block;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.5rem;
    color: var(--lc-cf-gray-900);
}

#lc-cf-landing-contact-root .lc-cf-loc-btn__area {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--lc-cf-gray-600);
}

/* Location detail sheet */
#lc-cf-landing-contact-root .lc-cf-panel--detail {
    width: 100%;
    max-width: 28rem;
    overflow: hidden;
    background: #fff;
    border-radius: 1.5rem 1.5rem 0 0;
}

@media (min-width: 640px) {
    #lc-cf-landing-contact-root .lc-cf-panel--detail {
        border-radius: 1.5rem;
    }
}

#lc-cf-landing-contact-root .lc-cf-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--lc-cf-slate-800);
    color: #fff;
}

#lc-cf-landing-contact-root .lc-cf-detail-head .lc-cf-detail-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: #fff;
}

#lc-cf-landing-contact-root .lc-cf-back {
    margin: 0;
    padding: 0.25rem;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

#lc-cf-landing-contact-root .lc-cf-back .fas,
#lc-cf-landing-contact-root .lc-cf-back .fa {
    font-size: 1em !important;
}

#lc-cf-landing-contact-root .lc-cf-detail-body {
    padding: 1.5rem;
}

#lc-cf-landing-contact-root .lc-cf-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#lc-cf-landing-contact-root .lc-cf-address-label {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--lc-cf-gray-500);
    margin-bottom: 0.25rem;
}

#lc-cf-landing-contact-root .lc-cf-address-text {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--lc-cf-gray-900);
}

#lc-cf-landing-contact-root .lc-cf-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

#lc-cf-landing-contact-root .lc-cf-action-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 0.75rem;
    text-decoration: none !important;
    color: inherit;
    transition: background 0.15s ease;
    min-height: 5.5rem;
}

#lc-cf-landing-contact-root .lc-cf-action-cell:hover {
    text-decoration: none !important;
}

#lc-cf-landing-contact-root .lc-cf-action-cell--p {
    background: rgba(211, 32, 39, 0.1);
}
#lc-cf-landing-contact-root .lc-cf-action-cell--p:hover {
    background: rgba(211, 32, 39, 0.2);
}

#lc-cf-landing-contact-root .lc-cf-action-cell--b {
    background: rgba(59, 130, 246, 0.1);
}
#lc-cf-landing-contact-root .lc-cf-action-cell--b:hover {
    background: rgba(59, 130, 246, 0.2);
}

#lc-cf-landing-contact-root .lc-cf-action-cell--g {
    background: rgba(34, 197, 94, 0.1);
}
#lc-cf-landing-contact-root .lc-cf-action-cell--g:hover {
    background: rgba(34, 197, 94, 0.2);
}

#lc-cf-landing-contact-root .lc-cf-action-cell--s {
    background: rgba(242, 101, 34, 0.1);
}
#lc-cf-landing-contact-root .lc-cf-action-cell--s:hover {
    background: rgba(242, 101, 34, 0.2);
}

#lc-cf-landing-contact-root .lc-cf-action-cell .fas,
#lc-cf-landing-contact-root .lc-cf-action-cell .fab {
    font-size: 1.5rem !important;
    line-height: 1 !important;
    margin-bottom: 0.5rem;
}

#lc-cf-landing-contact-root .lc-cf-ic-primary {
    color: var(--lc-cf-primary) !important;
}
#lc-cf-landing-contact-root .lc-cf-ic-blue {
    color: var(--lc-cf-blue-500) !important;
}
#lc-cf-landing-contact-root .lc-cf-ic-green {
    color: var(--lc-cf-green-500) !important;
}
#lc-cf-landing-contact-root .lc-cf-ic-secondary {
    color: var(--lc-cf-secondary) !important;
}

#lc-cf-landing-contact-root .lc-cf-action-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lc-cf-gray-900);
}

#lc-cf-landing-contact-root .lc-cf-social-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding-top: 0.5rem;
}

#lc-cf-landing-contact-root .lc-cf-social {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

#lc-cf-landing-contact-root .lc-cf-social--fb {
    background: var(--lc-cf-blue-600);
}
#lc-cf-landing-contact-root .lc-cf-social--fb:hover {
    background: var(--lc-cf-blue-700);
}

#lc-cf-landing-contact-root .lc-cf-social--ig {
    background: var(--lc-cf-pink-600);
}
#lc-cf-landing-contact-root .lc-cf-social--ig:hover {
    background: var(--lc-cf-pink-700);
}

#lc-cf-landing-contact-root .lc-cf-social .fab {
    font-size: 1.125rem !important;
}
