.camp-chat { max-width: 720px; margin-inline: auto; }
.camp-chat { font-size: .9375rem; line-height: 1.5; }
.camp-chat h1 { font-size: clamp(1.25rem, 4vw, 1.65rem); margin-block: 0 .5rem; }
.camp-chat h2 { font-size: 1.1rem; margin-block: 0 .4rem; }
.camp-chat-message, .camp-chat-question { border-radius: 16px; padding: .55rem .75rem; margin-block: .5rem; }
.camp-chat-message { background: #eef4ea; }
.camp-chat-question { background: #21563a; color: white; width: fit-content; margin-inline-start: auto; overflow-wrap: anywhere; }
.camp-chat .chip { margin: 0 .4rem .5rem 0; }
#camp-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: center; margin-block: 1rem; }
#camp-chat-form label { grid-column: 1 / -1; }
#camp-chat-question { width: 100%; min-width: 0; }
.camp-chat-result { display: flex; gap: .75rem; align-items: center; padding: .65rem; margin-block: .5rem; background: white; border-radius: 10px; }
.camp-chat-result img { object-fit: cover; border-radius: 6px; }
.camp-chat-message ul { padding-inline-start: 0; }
.camp-chat a { text-decoration: underline; }
.camp-chat-float { position: fixed; inset: auto 1rem max(1rem, env(safe-area-inset-bottom)) auto; z-index: 30; display: grid; justify-items: end; gap: .5rem; }
#camp-chat-window { width: min(440px, calc(100vw - 2rem)); padding: .5rem; background: white; border: 1px solid #d5e2d6; border-radius: 16px; box-shadow: 0 6px 30px #173b282c; }
#camp-chat-window[hidden] { display: none; }
#camp-chat-window iframe { display: block; width: 100%; height: min(530px, 65dvh); border: 0; }
.camp-chat-embedded .wrap { width: 100%; padding: .25rem; }
.camp-chat-embedded .camp-chat { padding: .65rem; }
.camp-chat-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: .75rem 0; }
@media (max-width: 420px) { .camp-chat-options { grid-template-columns: 1fr; } }

.camp-chat .chip, .camp-chat .primary, .camp-chat-toolbar .chip {
    font-size: .875rem;
    line-height: 1.35;
    min-height: 36px;
    padding: .35rem .65rem;
}
#camp-chat-question { font-size: 1rem; min-height: 40px; padding: .35rem .65rem; }
.camp-chat-options label { display: flex; align-items: flex-start; gap: .35rem; min-height: 28px; }
.camp-chat-options input { flex: none; margin: .2em 0 0; }
.camp-chat-toolbar { display: flex; align-items: center; justify-content: space-between; padding-inline: .4rem; font-size: .875rem; }
.camp-chat-toolbar .chip, .camp-chat-float [data-chat-toggle] {
    display: inline-grid;
    place-items: center;
    padding: 0;
}
.camp-chat-toolbar .chip { width: 36px; }
.camp-chat-float [data-chat-toggle] {
    width: 56px;
    height: 56px;
    min-height: 56px;
    border: 1px solid #356346;
    border-radius: 50%;
    background: #fff2d8;
    box-shadow: 0 2px 8px #173b2840;
}
.camp-chat-float [data-chat-toggle]:hover,
.camp-chat-float [data-chat-toggle][aria-expanded="true"] { background: #f2e4c7; }
.camp-chat-float [data-chat-toggle]:focus-visible {
    outline: 2px solid #205437;
    outline-offset: 3px;
}
.camp-chat-mascot {
    display: block;
    width: 44px;
    height: 42px;
    object-fit: contain;
    transform-origin: 50% 90%;
    pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
    [data-chat-toggle][aria-expanded="false"] .camp-chat-mascot {
        animation: camp-chat-wiggle .75s ease-in-out 1s both;
    }
    [data-chat-toggle][aria-expanded="false"]:is(:hover, :focus-visible) .camp-chat-mascot {
        animation: camp-chat-greet .75s ease-in-out both;
    }
}
@keyframes camp-chat-wiggle {
    25% { transform: translateY(-3px) rotate(-8deg); }
    55% { transform: translateY(-2px) rotate(7deg); }
    80% { transform: rotate(-3deg); }
}
@keyframes camp-chat-greet {
    25% { transform: translateY(-3px) rotate(8deg); }
    55% { transform: translateY(-2px) rotate(-7deg); }
    80% { transform: rotate(3deg); }
}
