/*!
 * lyra-bt-discovery-blocks.css
 * Frontend styles for the 5 Discovery Agentic blocks.
 */

.lyra-bt-fq, .lyra-bt-hp, .lyra-bt-ctk, .lyra-bt-ar, .lyra-bt-isb {
    --lyra-bt-dx-text:      #0f172a;
    --lyra-bt-dx-text-dim:  #64748b;
    --lyra-bt-dx-surface:   #ffffff;
    --lyra-bt-dx-border:    #e2e8f0;
    --lyra-bt-dx-radius:    12px;
    --lyra-bt-dx-primary:   #1d4ed8;
    --lyra-bt-dx-primary-h: #1e40af;
    --lyra-bt-dx-green:     #047857;
    --lyra-bt-dx-red:       #b91c1c;
    --lyra-bt-dx-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.05);
    --lyra-bt-dx-shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12), 0 5px 10px rgba(15, 23, 42, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--lyra-bt-dx-text);
}

/* ─── 1. Finder Quiz ────────────────────────────────────────── */

.lyra-bt-fq {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(20px, 3vw, 36px);
    background: var(--lyra-bt-dx-surface);
    border: 1px solid var(--lyra-bt-dx-border);
    border-radius: var(--lyra-bt-dx-radius);
    box-shadow: var(--lyra-bt-dx-shadow-sm);
}
.lyra-bt-fq-title {
    margin: 0 0 18px;
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 700;
    text-align: center;
}
.lyra-bt-fq-panel.lyra-bt-fq-start,
.lyra-bt-fq-panel.lyra-bt-fq-question,
.lyra-bt-fq-panel.lyra-bt-fq-result {
    text-align: center;
}
.lyra-bt-fq-start-msg {
    margin: 0 0 18px;
    font-size: 16px;
    color: var(--lyra-bt-dx-text-dim);
    line-height: 1.5;
}
.lyra-bt-fq-start-btn,
.lyra-bt-fq-restart {
    padding: 14px 32px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--lyra-bt-dx-primary);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}
.lyra-bt-fq-start-btn:hover, .lyra-bt-fq-restart:hover { background: var(--lyra-bt-dx-primary-h); }
.lyra-bt-fq-start-btn:active, .lyra-bt-fq-restart:active { transform: translateY(1px); }
.lyra-bt-fq-restart {
    background: #f1f5f9;
    color: var(--lyra-bt-dx-text);
    margin-top: 14px;
    padding: 10px 20px;
}
.lyra-bt-fq-restart:hover { background: #e2e8f0; }

.lyra-bt-fq-step {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lyra-bt-dx-text-dim);
}
.lyra-bt-fq-q-text {
    margin: 0 0 18px;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 600;
    line-height: 1.3;
}
.lyra-bt-fq-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lyra-bt-fq-answer {
    padding: 14px 18px;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--lyra-bt-dx-text);
    background: #fff;
    border: 2px solid var(--lyra-bt-dx-border);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.lyra-bt-fq-answer:hover {
    border-color: var(--lyra-bt-dx-primary);
    background: #f8fafc;
}
.lyra-bt-fq-answer:active { transform: translateY(1px); }
.lyra-bt-fq-result-intro {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--lyra-bt-dx-text-dim);
}
.lyra-bt-fq-result-fallback {
    margin: 12px 0 0;
    color: var(--lyra-bt-dx-text-dim);
}

/* Quiz result product card. */
.lyra-bt-fq-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--lyra-bt-dx-border);
    border-radius: 10px;
    text-align: left;
    align-items: center;
    background: #f8fafc;
}
.lyra-bt-fq-card-media {
    flex: 0 0 120px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lyra-bt-fq-card-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.lyra-bt-fq-card-img-placeholder { color: #cbd5e1; }
.lyra-bt-fq-card-img-placeholder .dashicons { font-size: 36px !important; width: 36px !important; height: 36px !important; }
.lyra-bt-fq-card-body { flex: 1; }
.lyra-bt-fq-card-title {
    margin: 0 0 4px; font-size: 16px; font-weight: 600;
}
.lyra-bt-fq-card-price {
    margin: 0 0 10px; font-size: 14px; color: var(--lyra-bt-dx-text-dim);
    font-variant-numeric: tabular-nums;
}
.lyra-bt-fq-card-btn {
    padding: 10px 18px;
    font: inherit; font-size: 13px; font-weight: 700;
    color: #fff; background: var(--lyra-bt-dx-primary);
    border: 0; border-radius: 6px; cursor: pointer;
    transition: background .15s ease;
}
.lyra-bt-fq-card-btn:hover:not(:disabled) { background: var(--lyra-bt-dx-primary-h); }
.lyra-bt-fq-card-btn:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 540px) {
    .lyra-bt-fq-card { flex-direction: column; text-align: center; }
    .lyra-bt-fq-card-media { flex: 0 0 auto; width: 100%; max-width: 220px; margin: 0 auto; }
}

/* ─── 2. Hotspot Product Explorer ──────────────────────────── */

.lyra-bt-hp {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(16px, 2vw, 28px);
}
.lyra-bt-hp-title {
    margin: 0 0 16px;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    text-align: center;
}
.lyra-bt-hp-stage {
    position: relative;
    width: 100%;
    border-radius: var(--lyra-bt-dx-radius);
    overflow: hidden;
    box-shadow: var(--lyra-bt-dx-shadow-sm);
}
.lyra-bt-hp-image {
    display: block;
    width: 100%;
    height: auto;
}
.lyra-bt-hp-dot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.lyra-bt-hp-dot-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(29, 78, 216, 0.4);
    animation: lyra-bt-hp-pulse 2s ease-out infinite;
}
@keyframes lyra-bt-hp-pulse {
    0%   { transform: scale(0.85); opacity: 1; }
    100% { transform: scale(1.6);  opacity: 0; }
}
.lyra-bt-hp-dot-core {
    position: absolute;
    inset: 6px;
    background: var(--lyra-bt-dx-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform .15s ease;
}
.lyra-bt-hp-dot:hover .lyra-bt-hp-dot-core { transform: scale(1.15); }
.lyra-bt-hp-dot:focus-visible .lyra-bt-hp-dot-core { outline: 3px solid #f0c33c; outline-offset: 2px; }

.lyra-bt-hp-popover {
    position: absolute;
    transform: translate(-50%, calc(-100% - 24px));
    width: 280px;
    max-width: 90vw;
    background: #fff;
    border: 1px solid var(--lyra-bt-dx-border);
    border-radius: 10px;
    box-shadow: var(--lyra-bt-dx-shadow-lg);
    padding: 14px;
    z-index: 5;
}
.lyra-bt-hp-popover::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: #fff;
    border-right: 1px solid var(--lyra-bt-dx-border);
    border-bottom: 1px solid var(--lyra-bt-dx-border);
}
.lyra-bt-hp-popover-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: var(--lyra-bt-dx-text-dim);
}
.lyra-bt-hp-popover-close:hover { background: #f1f5f9; color: var(--lyra-bt-dx-text); }
.lyra-bt-hp-popover-body { display: flex; gap: 12px; align-items: center; }
.lyra-bt-hp-popover-img {
    width: 80px; height: 80px;
    object-fit: cover; border-radius: 6px; flex: 0 0 80px;
}
.lyra-bt-hp-popover-meta { flex: 1; min-width: 0; }
.lyra-bt-hp-popover-title {
    font-size: 14px; font-weight: 600; margin-bottom: 4px;
    overflow: hidden; text-overflow: ellipsis;
}
.lyra-bt-hp-popover-price {
    font-size: 13px; color: var(--lyra-bt-dx-text-dim); margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}
.lyra-bt-hp-popover-btn {
    padding: 8px 14px;
    font: inherit; font-size: 12px; font-weight: 700;
    color: #fff; background: var(--lyra-bt-dx-primary);
    border: 0; border-radius: 6px; cursor: pointer;
    transition: background .15s ease;
}
.lyra-bt-hp-popover-btn:hover:not(:disabled) { background: var(--lyra-bt-dx-primary-h); }
.lyra-bt-hp-popover-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ─── 3. Complete the Kit ──────────────────────────────────── */

.lyra-bt-ctk {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(20px, 3vw, 32px);
    background: var(--lyra-bt-dx-surface);
    border: 1px solid var(--lyra-bt-dx-border);
    border-radius: var(--lyra-bt-dx-radius);
    box-shadow: var(--lyra-bt-dx-shadow-sm);
}
.lyra-bt-ctk-title {
    margin: 0 0 14px;
    font-size: clamp(20px, 2.4vw, 24px);
    font-weight: 700;
}
.lyra-bt-ctk-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.lyra-bt-ctk-row { background: #fff; border: 1px solid var(--lyra-bt-dx-border); border-radius: 8px; }
.lyra-bt-ctk-row.is-disabled { opacity: 0.6; }
.lyra-bt-ctk-label {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
}
.lyra-bt-ctk-row.is-disabled .lyra-bt-ctk-label { cursor: not-allowed; }
.lyra-bt-ctk-check {
    width: 20px; height: 20px; flex-shrink: 0;
    accent-color: var(--lyra-bt-dx-primary);
}
.lyra-bt-ctk-img {
    width: 56px; height: 56px;
    object-fit: cover; border-radius: 6px; flex: 0 0 56px;
    background: #f8fafc;
}
.lyra-bt-ctk-img-placeholder {
    display: flex; align-items: center; justify-content: center;
    color: #cbd5e1;
}
.lyra-bt-ctk-img-placeholder .dashicons { font-size: 28px !important; width: 28px !important; height: 28px !important; }
.lyra-bt-ctk-meta { flex: 1; min-width: 0; }
.lyra-bt-ctk-title-row { font-size: 14px; font-weight: 600; }
.lyra-bt-ctk-price { font-size: 13px; color: var(--lyra-bt-dx-text-dim); font-variant-numeric: tabular-nums; }
.lyra-bt-ctk-oos { font-size: 12px; color: var(--lyra-bt-dx-red); margin-top: 2px; }
.lyra-bt-ctk-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--lyra-bt-dx-border);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}
.lyra-bt-ctk-total { display: flex; align-items: baseline; gap: 10px; }
.lyra-bt-ctk-total-label { font-size: 13px; color: var(--lyra-bt-dx-text-dim); }
.lyra-bt-ctk-total-value {
    font-size: 20px; font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--lyra-bt-dx-text);
}
.lyra-bt-ctk-btn {
    padding: 12px 24px;
    font: inherit; font-size: 14px; font-weight: 700;
    color: #fff; background: var(--lyra-bt-dx-primary);
    border: 0; border-radius: 8px; cursor: pointer;
    transition: background .15s ease;
}
.lyra-bt-ctk-btn:hover:not(:disabled) { background: var(--lyra-bt-dx-primary-h); }
.lyra-bt-ctk-btn:disabled { opacity: .55; cursor: not-allowed; }
.lyra-bt-ctk-status {
    margin-top: 8px;
    font-size: 13px;
    min-height: 1.2em;
    color: var(--lyra-bt-dx-text-dim);
}
.lyra-bt-ctk-status[data-kind="error"]   { color: var(--lyra-bt-dx-red); }
.lyra-bt-ctk-status[data-kind="success"] { color: var(--lyra-bt-dx-green); }

/* ─── 4. AR Viewer ─────────────────────────────────────────── */

.lyra-bt-ar {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(16px, 2.5vw, 32px);
}
.lyra-bt-ar-title {
    margin: 0 0 14px;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
}
.lyra-bt-ar-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    border-radius: var(--lyra-bt-dx-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lyra-bt-ar-poster {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.lyra-bt-ar-poster-blank {
    background: linear-gradient(135deg, #1e293b, #0f172a);
}
.lyra-bt-ar-hint {
    position: relative;
    z-index: 1;
    padding: 10px 18px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}
.lyra-bt-ar.is-active .lyra-bt-ar-hint { display: none; }
.lyra-bt-ar-mv {
    width: 100%;
    height: 100%;
    display: block;
    background: #f1f5f9;
}

/* ─── 5. Intent Search Bar ─────────────────────────────────── */

.lyra-bt-isb {
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(20px, 3vw, 32px);
    position: relative;
}
.lyra-bt-isb-title {
    margin: 0 0 12px;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    text-align: center;
}
.lyra-bt-isb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid var(--lyra-bt-dx-border);
    border-radius: 999px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.lyra-bt-isb-row:focus-within {
    border-color: var(--lyra-bt-dx-primary);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}
.lyra-bt-isb-icon {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    color: var(--lyra-bt-dx-text-dim);
}
.lyra-bt-isb-input {
    flex: 1;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 15px;
    background: transparent;
    color: var(--lyra-bt-dx-text);
}
.lyra-bt-isb-suggestions {
    position: absolute;
    left: clamp(20px, 3vw, 32px);
    right: clamp(20px, 3vw, 32px);
    margin-top: 6px;
    list-style: none;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--lyra-bt-dx-border);
    border-radius: 10px;
    box-shadow: var(--lyra-bt-dx-shadow-lg);
    z-index: 10;
}
.lyra-bt-isb-suggestion-link {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--lyra-bt-dx-text);
    font-size: 14px;
    transition: background .12s ease;
}
.lyra-bt-isb-suggestion-link:hover {
    background: #f1f5f9;
    color: var(--lyra-bt-dx-primary);
}
.lyra-bt-isb-suggestion-empty {
    padding: 10px 14px;
    color: var(--lyra-bt-dx-text-dim);
    font-size: 13px;
    font-style: italic;
}
