/* === WASAVI ASSISTANT — shared public-site component === */
.wasavi-assistant,
.wasavi-assistant * { box-sizing: border-box; }

.wasavi-assistant {
    --wasavi-green: #6b7c5e;
    --wasavi-ink: #1a1a1a;
    --wasavi-cream: #fffdf8;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10010;
    font-family: inherit;
}

.wasavi-launcher {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 3px;
    overflow: hidden;
    border: 1px solid rgba(107,124,94,0.22);
    border-radius: 999px;
    color: var(--wasavi-ink);
    background: rgba(255,253,248,0.94);
    box-shadow: 0 16px 38px rgba(47, 57, 34, 0.18), 0 3px 9px rgba(0,0,0,0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    cursor: pointer;
    transition: width 0.42s cubic-bezier(0.16,1,0.3,1), padding 0.42s cubic-bezier(0.16,1,0.3,1), gap 0.42s cubic-bezier(0.16,1,0.3,1), transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
}

.wasavi-launcher[aria-expanded="true"],
.wasavi-launcher:focus-visible {
    width: 218px;
    gap: 8px;
    padding: 3px 10px 3px 3px;
    transform: translateY(-4px);
    box-shadow: 0 20px 46px rgba(47, 57, 34, 0.23), 0 4px 12px rgba(0,0,0,0.08);
}

@media (hover: hover) and (pointer: fine) {
    .wasavi-launcher:hover {
        width: 218px;
        gap: 8px;
        padding: 3px 10px 3px 3px;
        transform: translateY(-4px);
        box-shadow: 0 20px 46px rgba(47, 57, 34, 0.23), 0 4px 12px rgba(0,0,0,0.08);
    }
}

.wasavi-launcher:focus-visible,
.wasavi-close:focus-visible,
.wasavi-quick-link:focus-visible,
.wasavi-form button:focus-visible {
    outline: 2px solid var(--wasavi-green);
    outline-offset: 3px;
}

.wasavi-launcher-avatar {
    position: relative;
    display: block;
    flex: 0 0 46px;
    width: 46px;
    height: 50px;
    margin: 0 1px;
    overflow: visible;
    animation: wasaviBreathe 4.8s ease-in-out infinite;
}

.wasavi-launcher-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wasavi-launcher-blink {
    position: absolute;
    top: 35.5%;
    left: 36.8%;
    width: 10.5%;
    height: 8%;
    border-radius: 50%;
    background: #f2f3c9;
    opacity: 0;
    transform: scaleY(0.2);
    animation: wasaviAssistantBlink 5.4s infinite;
}

.wasavi-launcher-blink::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: 52%;
    height: 1px;
    border-radius: 999px;
    background: #24241f;
}

.wasavi-launcher-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    width: 0;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(6px);
    white-space: nowrap;
    text-align: left;
    transition: width 0.36s cubic-bezier(0.16,1,0.3,1), opacity 0.2s ease, transform 0.36s cubic-bezier(0.16,1,0.3,1);
}

.wasavi-launcher[aria-expanded="true"] .wasavi-launcher-copy,
.wasavi-launcher:focus-visible .wasavi-launcher-copy {
    width: 112px;
    opacity: 1;
    transform: translateX(0);
}

@media (hover: hover) and (pointer: fine) {
    .wasavi-launcher:hover .wasavi-launcher-copy {
        width: 112px;
        opacity: 1;
        transform: translateX(0);
    }
}

.wasavi-launcher-copy strong {
    color: var(--wasavi-ink);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.wasavi-launcher-copy small {
    color: #7a7a72;
    font-size: 0.67rem;
    font-weight: 400;
}

.wasavi-launcher-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    margin-left: 0;
    border-radius: 50%;
    color: white;
    background: var(--wasavi-green);
    font-size: 0.9rem;
    line-height: 1;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

.wasavi-launcher[aria-expanded="true"] .wasavi-launcher-icon,
.wasavi-launcher:focus-visible .wasavi-launcher-icon {
    opacity: 1;
    transform: scale(1);
}

@media (hover: hover) and (pointer: fine) {
    .wasavi-launcher:hover .wasavi-launcher-icon {
        opacity: 1;
        transform: scale(1);
    }
}

.wasavi-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(360px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid rgba(107,124,94,0.18);
    border-radius: 22px;
    color: var(--wasavi-ink);
    background: var(--wasavi-cream);
    box-shadow: 0 24px 70px rgba(37, 47, 27, 0.22);
    transform-origin: bottom right;
    animation: wasaviPanelIn 0.35s cubic-bezier(0.16,1,0.3,1) both;
}

.wasavi-panel[hidden] { display: none; }

@keyframes wasaviPanelIn {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.wasavi-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 15px;
    color: white;
    background: linear-gradient(135deg, #7f936e, #536648);
}

.wasavi-panel-head-copy {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wasavi-panel-head-copy img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.wasavi-panel-head strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
}

.wasavi-panel-head small {
    display: block;
    margin-top: 2px;
    color: rgba(255,255,255,0.68);
    font-size: 0.66rem;
}

.wasavi-close {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 50%;
    color: white;
    background: transparent;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.wasavi-panel-body { padding: 18px 22px 22px; }

.wasavi-panel-intro {
    margin-bottom: 14px;
    color: #67675e;
    font-size: 0.77rem;
    line-height: 1.65;
}

.wasavi-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.wasavi-quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 37px;
    border: 1px solid rgba(107,124,94,0.2);
    border-radius: 10px;
    color: var(--wasavi-green);
    background: #f4f7e9;
    font-size: 0.71rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.wasavi-quick-link:hover { color: white; background: var(--wasavi-green); }

.wasavi-form {
    display: grid;
    gap: 9px;
}

.wasavi-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.wasavi-form label {
    display: grid;
    gap: 5px;
    color: #66675f;
    font-size: 0.67rem;
}

.wasavi-form input,
.wasavi-form select,
.wasavi-form textarea {
    width: 100%;
    border: 1px solid rgba(25,25,25,0.11);
    border-radius: 9px;
    padding: 9px 10px;
    color: var(--wasavi-ink);
    background: white;
    font: inherit;
    font-size: 0.75rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wasavi-form input:focus,
.wasavi-form select:focus,
.wasavi-form textarea:focus {
    border-color: var(--wasavi-green);
    box-shadow: 0 0 0 3px rgba(107,124,94,0.12);
}

.wasavi-form textarea { min-height: 72px; resize: vertical; }

.wasavi-form button {
    min-height: 40px;
    margin-top: 3px;
    border: 0;
    border-radius: 10px;
    color: white;
    background: var(--wasavi-green);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.wasavi-form button:hover { background: #526346; transform: translateY(-1px); }

.wasavi-form button:disabled {
    opacity: 0.62;
    cursor: wait;
    transform: none;
}

.wasavi-form-note {
    margin-top: 10px;
    color: #99998f;
    font-size: 0.62rem;
    line-height: 1.5;
}

.wasavi-form-status {
    margin-top: 8px;
    padding: 9px 10px;
    border-radius: 9px;
    color: #66675f;
    background: #f4f4ef;
    font-size: 0.7rem;
    line-height: 1.5;
}

.wasavi-form-status.is-success { color: #46633b; background: #eef5e8; }
.wasavi-form-status.is-error { color: #8a4a3e; background: #fff0ec; }

@keyframes wasaviBreathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes wasaviAssistantBlink {
    0%, 43%, 49%, 100% { opacity: 0; }
    44%, 48% { opacity: 1; }
}

@media (max-width: 600px) {
    .wasavi-assistant { right: 14px; bottom: 14px; }
    .wasavi-launcher { width: 50px; height: 50px; min-height: 50px; }
    .wasavi-launcher[aria-expanded="true"],
    .wasavi-launcher:focus-visible { width: 188px; gap: 7px; padding-right: 8px; }
    .wasavi-launcher-avatar { flex-basis: 42px; width: 42px; height: 46px; }
    .wasavi-launcher[aria-expanded="true"] .wasavi-launcher-copy,
    .wasavi-launcher:focus-visible .wasavi-launcher-copy { width: 105px; }
    .wasavi-launcher-copy small { display: none; }
    .wasavi-launcher-icon { width: 22px; height: 22px; flex-basis: 22px; }
    .wasavi-panel { width: min(360px, calc(100vw - 28px)); }
}

@media (prefers-reduced-motion: reduce) {
    .wasavi-launcher { transition: none; }
    .wasavi-panel { animation: none; }
    .wasavi-launcher-avatar,
    .wasavi-launcher-blink { animation: none; }
}
