/* Floating feedback widget (public site). Same dark messenger look as the in-app panel. */
.fbw [hidden] {
    display: none !important;
}

.fbw__launcher {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #1a7fb9;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 3px rgba(17, 17, 17, 0.25), 0 12px 10px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease-in-out;
}

.fbw__launcher:hover {
    background: #0a263b;
}

.fbw__launcher svg {
    width: 22px;
    height: 22px;
}

.fbw__panel {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1001;
    width: 400px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: #0f1011;
    color: #f5f6f7;
    border-radius: 16px;
    overflow: hidden;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
    box-shadow: 0 0 3px rgba(17, 17, 17, 0.3), 0 42px 33px rgba(0, 0, 0, 0.25), 0 12px 10px rgba(0, 0, 0, 0.18);
}

.fbw__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fbw__identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.fbw__avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a7fb9;
    color: #fff;
}

.fbw__avatar::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #0f1011;
}

.fbw__avatar svg {
    width: 20px;
    height: 20px;
}

.fbw__titles {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.fbw__title {
    font-weight: 600;
    line-height: 18px;
}

.fbw__subtitle {
    font-size: 12px;
    line-height: 16px;
    opacity: 0.6;
}

.fbw__close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #f5f6f7;
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.fbw__close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.12);
}

.fbw__close svg {
    width: 16px;
    height: 16px;
}

.fbw__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.fbw__details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fbw__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Guideline text input: 12px 16px, 8px radius, 46px tall */
.fbw__form input[type="text"],
.fbw__form input[type="email"],
.fbw__form input[type="tel"],
.fbw__form textarea {
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #1b1d1f;
    color: #f5f6f7;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    outline: none;
    transition: border-color 0.2s ease-in-out;
}

.fbw__form textarea {
    display: block;
    min-height: 120px;
    resize: vertical;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.fbw__form input::placeholder,
.fbw__form textarea::placeholder {
    color: #f5f6f7;
    opacity: 0.5;
}

.fbw__form input:focus,
.fbw__form textarea:focus {
    border-color: #1a7fb9;
}

.fbw__anonymous {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
}

/* Guideline checkbox: 24px, 4px radius, primary-dark when checked */
.fbw__anonymous input {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin: 0;
    border: 1px solid #d0e4f0;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.fbw__anonymous input:checked {
    background: #0a263b;
}

.fbw__anonymous input::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 8px;
    width: 6px;
    height: 10px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.fbw__anonymous input:checked::before {
    opacity: 1;
}

.fbw__error {
    margin: 0;
    font-size: 12px;
    line-height: 16px;
    color: #cd0000;
}

.fbw__footer {
    display: flex;
    justify-content: flex-end;
}

/* Guideline buttons: 14px/400, 12px 20px, 8px radius, min-width 100px */
.fbw__send,
.fbw__again {
    min-width: 100px;
    padding: 12px 20px;
    border: 1px solid #1a7fb9;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.fbw__send:hover,
.fbw__again:hover {
    opacity: 0.8;
}

.fbw__send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fbw__send {
    background: #1a7fb9;
    color: #fff;
}

.fbw__again {
    background: transparent;
    color: #1a7fb9;
}

.fbw__thanks {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
    text-align: center;
}

.fbw__thanks p {
    margin: 0 0 8px;
    opacity: 0.7;
}

.fbw__thanksIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
}

.fbw__thanksIcon svg {
    width: 24px;
    height: 24px;
}

/* reCAPTCHA badge for the invisible widget stays out of the way */
.grecaptcha-badge {
    visibility: hidden;
}

@media (max-width: 540px) {
    .fbw__panel {
        right: 12px;
        bottom: 12px;
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }

    .fbw__row {
        grid-template-columns: 1fr;
    }
}
