/* public/assets/css/guide-tour.css */

.guide-tour { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.guide-tour[hidden] { display: none; }
.guide-tour__backdrop { position: absolute; inset: 0; pointer-events: auto; }
.guide-tour__spotlight { position: fixed; z-index: 1; border: 2px solid rgba(255, 255, 255, 0.95); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(16, 42, 67, 0.58), 0 0 0 5px rgba(23, 92, 211, 0.25); pointer-events: none; transition: top 150ms ease, left 150ms ease, width 150ms ease, height 150ms ease; }
.guide-tour__bubble { position: fixed; z-index: 2; width: min(390px, calc(100vw - 28px)); max-height: min(520px, calc(100vh - 28px)); max-height: min(520px, calc(100dvh - 28px)); border: 1px solid #c9d8ef; border-radius: 14px; color: var(--app-text, #243b53); background: #fff; box-shadow: 0 24px 70px rgba(16, 42, 67, 0.28); pointer-events: auto; overflow: auto; overscroll-behavior: contain; }
.guide-tour__header { padding: 20px 56px 0 20px; }
.guide-tour__eyebrow { margin: 0 0 5px; color: var(--app-primary, #175cd3); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.08em; }
.guide-tour__title { margin: 0; color: var(--app-navy, #102a43); font-size: 1.12rem; line-height: 1.4; }
.guide-tour__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 9px; display: grid; place-items: center; color: var(--app-muted, #627d98); background: transparent; font-size: 1.5rem; cursor: pointer; }
.guide-tour__description { margin: 14px 20px 0; color: var(--app-text, #243b53); font-size: 0.92rem; line-height: 1.72; }
.guide-tour__footer { margin-top: 20px; padding: 14px 16px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--app-border, #d9e2ec); }
.guide-tour__counter { flex: none; color: var(--app-muted, #627d98); font-size: 0.78rem; font-weight: 750; }
.guide-tour__actions { min-width: 0; display: flex; justify-content: flex-end; gap: 8px; }
.guide-tour__button { min-width: 64px; min-height: 44px; padding: 0 13px; border: 1px solid var(--app-border, #d9e2ec); border-radius: 8px; color: var(--app-text, #243b53); background: #fff; font-size: 0.84rem; font-weight: 750; cursor: pointer; }
.guide-tour__button--primary { border-color: var(--app-primary, #175cd3); color: #fff; background: var(--app-primary, #175cd3); }
.guide-tour__button:disabled { opacity: 0.42; cursor: default; }
.guide-tour-target { position: relative; }

.customer-app-guide-message { position: fixed; z-index: 140; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); max-width: min(420px, calc(100vw - 28px)); padding: 13px 16px; border: 1px solid #c9d8ef; border-radius: 10px; color: var(--app-navy, #102a43); background: #fff; box-shadow: 0 16px 40px rgba(16, 42, 67, 0.2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 150ms ease, transform 150ms ease; }
.customer-app-guide-message.is-visible { opacity: 1; transform: translateY(0); }

.guide-offer { position: fixed; inset: 0; z-index: 110; padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom)); display: grid; place-items: center; background: rgba(16, 42, 67, 0.48); }
.guide-offer__panel { width: min(430px, 100%); max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); padding: clamp(24px, 7vw, 34px); border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(16, 42, 67, 0.24); overflow-y: auto; }
.guide-offer__mark { width: 46px; height: 46px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--app-primary, #175cd3); font-size: 1.15rem; font-weight: 850; }
.guide-offer h2 { margin: 0; color: var(--app-navy, #102a43); font-size: 1.3rem; }
.guide-offer p { margin: 10px 0 0; color: var(--app-muted, #627d98); line-height: 1.65; }
.guide-offer__actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 9px; }

@media (max-width: 600px) {
    .guide-tour__spotlight { transition-duration: 100ms; }
    .guide-tour__bubble { top: auto !important; right: 10px !important; bottom: max(10px, env(safe-area-inset-bottom)) !important; left: 10px !important; width: auto; max-height: min(58vh, calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); border-radius: 16px; }
    .guide-tour__header { padding: 18px 52px 0 18px; }
    .guide-tour__description { max-height: 28vh; margin-right: 18px; margin-left: 18px; overflow-y: auto; }
    .guide-tour__footer { align-items: stretch; flex-direction: column; }
    .guide-tour__counter { padding: 0 2px; }
    .guide-tour__actions { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .guide-tour__button { width: 100%; min-width: 0; }
    .guide-offer__actions { display: grid; grid-template-columns: 1fr 1fr; }
    .customer-app-guide-message { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; max-width: none; }
}

@media (max-width: 360px) {
    .guide-tour__bubble { right: 8px !important; bottom: max(8px, env(safe-area-inset-bottom)) !important; left: 8px !important; }
    .guide-tour__footer { padding-right: 12px; padding-left: 12px; }
    .guide-offer { padding-right: 10px; padding-left: 10px; }
    .guide-offer__panel { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .guide-tour__spotlight { transition: none; }
}
