﻿/* --- Feedback floating button --- */

/* Always honor the HTML hidden attribute */
[hidden] {
    display: none !important;
}

.fb-hidden {
    display: none !important;
}

.fb-fab {
    position: fixed;
    right: 85px;
    bottom: 45px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    /*background: #2b6cb0;*/
    background: #e6e6e6;
    border: 1px solid #696969;
    color: #fff;
    box-shadow: 0 10px 26px rgba(0,0,0,.20);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .fb-fab:hover {
        filter: brightness(1.10);
    }

    .fb-fab:active {
        transform: translateY(1px);
    }

    .fb-fab:focus {
        outline: 3px solid rgba(43,108,176,.35);
        outline-offset: 2px;
    }

.fb-fab-icon {
    font-size: 20px;
    line-height: 1;
}

/* Screen-reader only */
.fb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* --- Modal backdrop + dialog --- */
.fb-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 10000;
}

.fb-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.fb-modal-card {
    width: min(560px, 100%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    overflow: hidden;
    font-family: inherit;
}

.fb-modal-header, .fb-modal-footer {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fb-modal-header {
    border-bottom: 5px solid #e6e6e6;
    width: 90%;
    margin: auto;
}

.fb-modal-footer {
    border-top: 1px solid #e6e6e6;
    width: 90%;
    margin: auto;
    justify-content: flex-end;
}

.fb-modal-title {
    margin: 0;
    font-size: 18px;
}

.fb-close {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    padding: 6px 10px;
    border-radius: 8px;
}

    .fb-close:hover {
        background: rgba(0,0,0,.06);
    }

.fb-modal-body {
    padding: 12px;
}

.fb-field {
    margin-bottom: 0px;
}

.fb-label {
    display: block;
    /*margin-bottom: 6px;*/
    font-weight: 600;
}

.fb-help {
    margin-top: 6px;
    font-size: 12px;
    opacity: .75;
}

.fb-warning {
    color: #ff0000;
    font-size:10px;
}

.fb-input, .fb-textarea {
    width: 95%;
    max-width: 95%;
    max-height: 100px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    /*padding: 10px 12px;*/
    font: inherit;
}

    .fb-input:focus, .fb-textarea:focus {
        /*outline: 3px solid rgba(43,108,176,.25);*/
        border-color: #2b6cb0;
    }

/* Buttons */
.fb-btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font: inherit;
}

.fb-btn-primary {
    background: #2b6cb0;
    color: #fff;
}

.fb-btn-secondary {
    background: #efefef;
    color: #222;
}

.fb-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Alerts */
.fb-alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 10px;
}

.fb-alert-success {
    background: #e7f7ee;
    color: #14532d;
}

.fb-alert-error {
    background: #fdecec;
    color: #7f1d1d;
}
