/* ===== ARTesy AI — Botpress widget themed to the site palette and type =====
   Shared by every page that embeds the assistant. Only the widget's own
   .vdk-edge elements are styled; no page rules are touched. !important is
   needed because the widget's stylesheet loads after this file and its root
   sets --vdk-accent inline. */
.vdk-edge {
    --vdk-accent: #c9a24b !important;
    --vdk-accent-contrast: #0d0b09 !important;
    --vdk-accent-icon: #0d0b09 !important;
    --vdk-bg: #14110d !important;
    --vdk-transcript-bg: #14110d !important;
    --vdk-surface: #1c1712 !important;
    --vdk-surface-2: #241d16 !important;
    --vdk-text: #efe6d8 !important;
    --vdk-muted: #b3a794 !important;
    --vdk-border: rgba(239, 230, 216, 0.12) !important;
    --vdk-border-strong: rgba(239, 230, 216, 0.22) !important;
    --vdk-link: #e3c078 !important;
    --vdk-icon-button-hover-bg: rgba(201, 162, 75, 0.16) !important;
    --vdk-font: 'Jost', 'Segoe UI', sans-serif !important;
    --vdk-shadow: 0 28px 80px rgba(0, 0, 0, 0.6), 0 4px 18px rgba(0, 0, 0, 0.45) !important;
}

/* Floating bubble: the site's gold gradient button with an ink icon. */
.vdk-edge .vdk-edge-launcher {
    background: linear-gradient(135deg, #e3c078, #c9a24b 55%, #a37f33) !important;
    border: 1px solid rgba(239, 230, 216, 0.28) !important;
    box-shadow: 0 12px 30px -10px rgba(201, 162, 75, 0.55), 0 3px 12px rgba(0, 0, 0, 0.45) !important;
}
.vdk-edge .vdk-edge-launcher:hover { filter: brightness(1.06); }

/* Panel: ink surface and the gold-tinted hairline used across the site. */
.vdk-edge .vdk-edge-panel {
    border: 1px solid rgba(239, 230, 216, 0.14) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65) !important;
}
.vdk-edge .vdk-edge-header {
    background: linear-gradient(180deg, #1c1712, #14110d) !important;
    border-bottom: 1px solid rgba(201, 162, 75, 0.22) !important;
    padding-inline-start: 74px !important; /* room for the top-left cross */
}
.vdk-edge .vdk-edge-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 21px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.01em !important;
    color: #efe6d8 !important;
}
.vdk-edge .vdk-edge-subtitle {
    font-family: 'Jost', 'Segoe UI', sans-serif !important;
    font-size: 11px !important;
    letter-spacing: 0.04em !important;
    color: #b3a794 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.vdk-edge .vdk-edge-avatar {
    background: #241d16 !important;
    color: #e3c078 !important;
    border: 1px solid rgba(201, 162, 75, 0.45) !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 600 !important;
}

/* Cross in the top-left corner of the open chat, to leave it. */
.vdk-edge .vdk-edge-header-actions { position: static !important; }
.vdk-edge .vdk-edge-close {
    position: absolute !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    inset-block-start: 12px !important;
    inset-inline-start: 12px !important;
    width: 34px !important;
    height: 34px !important;
    border: 1px solid rgba(239, 230, 216, 0.18) !important;
    border-radius: 50% !important;
    background: rgba(239, 230, 216, 0.04) !important;
    color: #efe6d8 !important;
    z-index: 2;
}
.vdk-edge .vdk-edge-close:hover {
    background: #c9a24b !important;
    color: #0d0b09 !important;
    border-color: transparent !important;
}
.vdk-edge .vdk-edge-close svg { width: 16px !important; height: 16px !important; }

/* Message bubbles and composer in the site's ink tones. */
.vdk-edge .vdk-edge-bot .vdk-edge-bubble {
    background: #1c1712 !important;
    color: #efe6d8 !important;
    border: 1px solid rgba(239, 230, 216, 0.1) !important;
}
.vdk-edge .vdk-edge-user .vdk-edge-bubble {
    background: #c9a24b !important;
    color: #0d0b09 !important;
}
.vdk-edge .vdk-edge-composer {
    background: rgba(28, 23, 18, 0.92) !important;
    border-color: rgba(239, 230, 216, 0.14) !important;
}

/* ===== Positioning — no site layout is touched ===== */
/* Lift the floating bubble clear of the existing back-to-top button, which
   stays exactly where it was. Applies only while the chat is collapsed. */
.vdk-edge.vdk-edge-mode-bubble:not(.vdk-edge-open) { bottom: 82px !important; }

/* Keep the bubble out of full-screen overlays so the artwork lightbox and the
   mobile menu stay exactly as designed. */
body:has(.lightbox.open) .vdk-edge { display: none !important; }
@media (max-width: 920px) {
    body:has(.nav.open) .vdk-edge { display: none !important; }
}
@media (max-width: 760px) {
    .vdk-edge.vdk-edge-mode-bubble:not(.vdk-edge-open) { bottom: 72px !important; }
    .vdk-edge .vdk-edge-header { padding-inline-start: 62px !important; }
    .vdk-edge .vdk-edge-close {
        inset-block-start: 4px !important;
        inset-inline-start: 12px !important;
        width: 40px !important;
        height: 40px !important;
    }
}
