#penora-faq-widget {
    --pfw-bottom: min(var(--pfw-desktop-bottom), max(0px, calc(100vh - var(--pfw-size) - 160px)));
    --pfw-surface: #fff;
    --pfw-text: #152238;
    --pfw-muted: #566278;
    --pfw-soft: #f1f5fa;
    --pfw-tint: #edf4ff;
    --pfw-rule: #e5ecf5;
    --pfw-float-gap: 12px;
    position: fixed;
    inset: auto max(var(--pfw-gap), env(safe-area-inset-right, 0px)) calc(var(--pfw-bottom) + env(safe-area-inset-bottom, 0px)) auto;
    z-index: 9990;
    display: grid;
    justify-items: start;
    width: var(--pfw-size);
    padding: 0;
    margin: 0;
    color: var(--pfw-text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.65;
    text-align: right;
    isolation: isolate;
}

#penora-faq-widget.pfw--left {
    inset-inline: auto max(var(--pfw-gap), env(safe-area-inset-left, 0px));
    justify-items: end;
}

#penora-faq-widget *,
#penora-faq-widget *::before,
#penora-faq-widget *::after { box-sizing: border-box; }
#penora-faq-widget[hidden],
#penora-faq-widget [hidden] { display: none !important; }
#penora-faq-widget :is(h2, h3, p, ul) { margin: 0; }
#penora-faq-widget svg { display: block; flex: none; pointer-events: none; }
#penora-faq-widget img { display: block; max-width: none; }
#penora-faq-widget button {
    appearance: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    letter-spacing: normal;
    margin: 0;
    min-width: 0;
    min-height: 0;
    padding: 0;
    text-transform: none;
}

#penora-faq-widget :is(button, summary, a):focus-visible {
    outline: 2px solid #1b69d6;
    outline-offset: 2px;
}

#penora-faq-widget .pfw-panel {
    position: absolute;
    inset-block-end: calc(var(--pfw-size) + var(--pfw-float-gap));
    inset-inline-start: 0;
    display: flex;
    flex-direction: column;
    width: min(366px, calc(100vw - var(--pfw-gap) - max(10px, env(safe-area-inset-left, 0px)) - max(0px, env(safe-area-inset-right, 0px) - var(--pfw-gap))));
    max-height: min(570px, calc(100vh - var(--pfw-bottom) - env(safe-area-inset-bottom, 0px) - var(--pfw-size) - 30px));
    max-height: min(570px, calc(100dvh - var(--pfw-bottom) - env(safe-area-inset-bottom, 0px) - var(--pfw-size) - 30px));
    overflow: hidden;
    border: 1px solid var(--pfw-rule);
    border-radius: 24px;
    background: var(--pfw-surface);
    box-shadow: 0 18px 52px #162b5329, 0 3px 10px #17274212;
}

#penora-faq-widget.pfw--left :is(.pfw-panel, .pfw-nudge) {
    inset-inline: auto 0;
}

#penora-faq-widget.pfw--left .pfw-panel {
    width: min(366px, calc(100vw - var(--pfw-gap) - max(10px, env(safe-area-inset-right, 0px)) - max(0px, env(safe-area-inset-left, 0px) - var(--pfw-gap))));
}

#penora-faq-widget .pfw-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 16px;
    border-bottom: 1px solid var(--pfw-rule);
    background: linear-gradient(135deg, #fff 45%, var(--pfw-tint));
}

#penora-faq-widget .pfw-avatar {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: none;
    background: var(--pfw-accent);
    color: var(--pfw-ink);
}

#penora-faq-widget .pfw-avatar img,
#penora-faq-widget .pfw-launch img { width: 100%; height: 100%; object-fit: cover; }
#penora-faq-widget .pfw-heading { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#penora-faq-widget .pfw-heading h2 { color: var(--pfw-text); font: inherit; font-size: 16px; font-weight: 780; line-height: 1.55; }
#penora-faq-widget .pfw-heading p { color: var(--pfw-muted); font-size: 12px; }
#penora-faq-widget .pfw-close,
#penora-faq-widget .pfw-nudge-close {
    display: grid;
    flex: none;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--pfw-surface);
    color: var(--pfw-muted);
}

#penora-faq-widget .pfw-close svg,
#penora-faq-widget .pfw-nudge-close svg { width: 17px; height: 17px; }
#penora-faq-widget .pfw-close:hover,
#penora-faq-widget .pfw-nudge-close:hover { background: var(--pfw-soft); }
#penora-faq-widget .pfw-scroll {
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #b8c6db transparent;
    overscroll-behavior: contain;
    padding: 14px 15px 16px;
    overflow-wrap: anywhere;
}

#penora-faq-widget .pfw-faqs {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid var(--pfw-rule);
    border-radius: 16px;
    background: #f8fbff;
}

#penora-faq-widget .pfw-intro { padding: 1px 3px 3px; color: var(--pfw-muted); font-size: 12px; }
#penora-faq-widget .pfw-item { border: 1px solid var(--pfw-rule); border-radius: 11px; background: var(--pfw-surface); }
#penora-faq-widget summary {
    display: flex;
    list-style: none;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: 41px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--pfw-text);
    font-size: 13px;
    font-weight: 680;
    cursor: pointer;
}
#penora-faq-widget summary::-webkit-details-marker { display: none; }
#penora-faq-widget summary svg { width: 16px; height: 16px; color: var(--pfw-muted); }
#penora-faq-widget summary:hover,
#penora-faq-widget .pfw-item[open] summary { background: var(--pfw-tint); }
#penora-faq-widget .pfw-item[open] summary svg { transform: rotate(180deg); }
#penora-faq-widget .pfw-answer {
    padding: 10px 10px 12px;
    color: #38465c;
    font-size: 13px;
    line-height: 1.85;
}
#penora-faq-widget .pfw-answer > * + * { margin-block-start: 6px; }
#penora-faq-widget .pfw-answer :is(ul, ol) { padding-inline-start: 20px; }
#penora-faq-widget .pfw-answer a { color: #1256b5; text-decoration: underline; text-underline-offset: 3px; }

#penora-faq-widget .pfw-contacts { margin-block-start: 14px; }
#penora-faq-widget .pfw-contacts:first-child { margin-block-start: 0; }
#penora-faq-widget .pfw-contacts h3 {
    margin: 0 2px 8px;
    color: var(--pfw-text);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
}
#penora-faq-widget .pfw-contacts ul { display: grid; gap: 6px; padding: 0; list-style: none; }
#penora-faq-widget .pfw-contacts li { display: block; padding: 0; margin: 0; }
#penora-faq-widget .pfw-contacts li::before { content: none; }
#penora-faq-widget .pfw-contacts a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 7px 6px 11px;
    border-radius: 12px;
    background: var(--pfw-soft);
    box-shadow: none;
    color: var(--pfw-text);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}
#penora-faq-widget .pfw-contacts a:hover { background: var(--pfw-tint); }
#penora-faq-widget .pfw-contacts a > svg { width: 15px; height: 15px; margin-inline-start: auto; color: var(--pfw-muted); }
#penora-faq-widget .pfw-contact-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 33px;
    height: 33px;
    border-radius: 10px;
    background: #e0eaff;
    color: #1853ac;
}
#penora-faq-widget .pfw-contact-icon svg { width: 18px; height: 18px; }
#penora-faq-widget .pfw-contact-icon--phone,
#penora-faq-widget .pfw-contact-icon--whatsapp { background: #d7f5e3; color: #14613b; }
#penora-faq-widget .pfw-contact-icon--instagram { background: #fce4ef; color: #9f2d62; }
#penora-faq-widget .pfw-contact-icon--telegram { background: #dbf2fc; color: #086486; }
#penora-faq-widget .pfw-contact-icon--bale { background: #dbf3ef; color: #12665c; }
#penora-faq-widget .pfw-contact-icon--mail { background: #f5e9d2; color: #855000; }

#penora-faq-widget .pfw-launch {
    display: grid;
    position: relative;
    place-items: center;
    inline-size: var(--pfw-size);
    block-size: var(--pfw-size);
    border-radius: 34%;
    background: var(--pfw-accent);
    box-shadow: 0 6px 18px #173e7540;
    color: var(--pfw-ink);
}
#penora-faq-widget :is(.pfw-launch-symbol, .pfw-launch-close) {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}
#penora-faq-widget .pfw-launch-close,
#penora-faq-widget .pfw-launch[aria-expanded="true"] .pfw-launch-symbol { display: none; }
#penora-faq-widget .pfw-launch[aria-expanded="true"] .pfw-launch-close { display: grid; }
#penora-faq-widget .pfw-launch svg { width: 25px; height: 25px; }
#penora-faq-widget .pfw-badge {
    position: absolute;
    inset: -2px auto auto -2px;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #f75754;
}
#penora-faq-widget .pfw-nudge {
    position: absolute;
    inset-block-end: calc(var(--pfw-size) + 9px);
    inset-inline-start: 0;
    display: flex;
    align-items: center;
    width: max-content;
    max-width: min(270px, calc(100vw - var(--pfw-gap) - 16px));
    min-height: 42px;
    padding: 2px 5px 2px 4px;
    border: 1px solid var(--pfw-rule);
    border-radius: 14px;
    background: var(--pfw-surface);
    box-shadow: 0 8px 26px #162b5324;
}
#penora-faq-widget .pfw-nudge-action {
    padding: 6px;
    text-align: start;
    font-size: 13px;
    font-weight: 650;
    overflow-wrap: anywhere;
    min-width: 0;
    border-radius: 8px;
}

#penora-faq-widget[data-color="red"] {
    --pfw-tint: #fceef1;
    --pfw-rule: #f0e5e9;
    --pfw-soft: #faf4f6;
}
@supports (background: color-mix(in srgb, #fff 90%, #000)) {
    #penora-faq-widget { --pfw-tint: color-mix(in srgb, var(--pfw-accent) 10%, #fff); }
    #penora-faq-widget[data-color="red"] { --pfw-tint: color-mix(in srgb, var(--pfw-accent) 9%, #fff); }
}

@media (max-width: 600px) {
    #penora-faq-widget { --pfw-bottom: min(var(--pfw-mobile-bottom), max(0px, calc(100vh - var(--pfw-size) - 160px))); --pfw-float-gap: 10px; }
    #penora-faq-widget .pfw-header { padding: 12px; }
    #penora-faq-widget .pfw-scroll { padding: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
    #penora-faq-widget .pfw-panel:not([hidden]),
    #penora-faq-widget .pfw-nudge:not([hidden]) { animation: penora-faq-enter 170ms ease-out; }
    #penora-faq-widget .pfw-launch.pfw-pulse { animation: penora-faq-pulse 580ms ease-in-out 2; }
    @keyframes penora-faq-enter {
        from { opacity: 0; transform: translateY(5px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @keyframes penora-faq-pulse {
        50% { transform: translateY(-3px) scale(1.04); }
    }
}
