/* The Feedback button next to the like button, and its dialog. See edination.feedback.js. */
.edn-feedback {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    height: 38px;
    margin-right: .5rem;
    padding: 0 .85rem;
    border: 1.5px solid #c3cad8;
    border-radius: 19px;
    background: transparent;
    color: #4a5670;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .2s, color .2s, background-color .2s;
}

.edn-feedback:hover,
.edn-feedback:focus-visible {
    border-color: #e9681a;
    color: #e9681a;
    outline: none;
}

.edn-feedback-dialog {
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #1c273c;
    box-shadow: 0 20px 60px rgba(28, 39, 60, .3);
}

.edn-feedback-dialog::backdrop {
    background: rgba(28, 39, 60, .45);
}

.edn-feedback-dialog form {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    padding: 1.4rem 1.5rem 1.25rem;
}

.edn-feedback-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.edn-feedback-head h2 {
    margin: 0 0 .2rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.edn-feedback-head p {
    margin: 0;
    color: #5b6780;
    font-size: .9rem;
}

.edn-feedback-close {
    flex: none;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #5b6780;
    font-size: 1.1rem;
    cursor: pointer;
}

.edn-feedback-close:hover,
.edn-feedback-close:focus-visible {
    background: rgba(28, 39, 60, .08);
    outline: none;
}

.edn-feedback-types {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.edn-feedback-types legend {
    width: 100%;
    margin-bottom: .35rem;
    font-size: .85rem;
    font-weight: 600;
}

.edn-feedback-types label {
    margin: 0;
    padding: .35rem .8rem;
    border: 1.5px solid #c3cad8;
    border-radius: 999px;
    font-size: .85rem;
    cursor: pointer;
    user-select: none;
}

.edn-feedback-types input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.edn-feedback-types input:checked + span {
    color: #e9681a;
}

.edn-feedback-types label:has(input:checked) {
    border-color: #e9681a;
    background: rgba(233, 104, 26, .1);
}

.edn-feedback-types label:has(input:focus-visible) {
    box-shadow: 0 0 0 3px rgba(233, 104, 26, .35);
}

.edn-feedback-field label {
    display: block;
    margin-bottom: .3rem;
    font-size: .85rem;
    font-weight: 600;
}

.edn-feedback-field label small {
    font-weight: 400;
    color: #5b6780;
}

.edn-feedback-field textarea,
.edn-feedback-field input {
    width: 100%;
    padding: .55rem .7rem;
    border: 1.5px solid #c3cad8;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    font: inherit;
    font-size: .95rem;
}

.edn-feedback-field textarea {
    min-height: 120px;
    resize: vertical;
}

.edn-feedback-field textarea:focus,
.edn-feedback-field input:focus {
    border-color: #e9681a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 104, 26, .2);
}

.edn-feedback-count {
    display: block;
    margin-top: .2rem;
    text-align: right;
    color: #5b6780;
    font-size: .75rem;
}

/* Only bots see and fill this. */
.edn-feedback-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.edn-feedback-privacy {
    margin: 0;
    color: #5b6780;
    font-size: .78rem;
}

.edn-feedback-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
}

.edn-feedback-status {
    margin-right: auto;
    font-size: .85rem;
}

.edn-feedback-status.edn-feedback-error {
    color: #c0392b;
}

.edn-feedback-send {
    padding: .55rem 1.2rem;
    border: 0;
    border-radius: 10px;
    background: #e9681a;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.edn-feedback-send:hover,
.edn-feedback-send:focus-visible {
    background: #cf5b14;
    outline: none;
}

.edn-feedback-send[disabled] {
    opacity: .6;
    cursor: progress;
}

.edn-feedback-thanks {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: .5rem 0;
    text-align: center;
}

.edn-feedback-thanks img {
    width: 96px;
    height: 96px;
}

.edn-feedback-thanks strong {
    font-size: 1.1rem;
}

.edn-feedback-sent .edn-feedback-thanks {
    display: flex;
}

.edn-feedback-sent .edn-feedback-entry {
    display: none;
}

.edn-feedback-reviews {
    margin: 0;
    padding-top: .8rem;
    border-top: 1px solid #e3e7ef;
    color: #5b6780;
    font-size: .85rem;
}

.edn-feedback-reviews a {
    color: #e9681a;
    font-weight: 600;
}

.edn-dark .edn-feedback {
    border-color: #4a5670;
    color: #c3cad8;
}

.edn-dark .edn-feedback-dialog,
.edn-dark .edn-feedback-field textarea,
.edn-dark .edn-feedback-field input {
    background: #24324d;
    color: #e3e7ef;
}

.edn-dark .edn-feedback-head p,
.edn-dark .edn-feedback-close,
.edn-dark .edn-feedback-count,
.edn-dark .edn-feedback-privacy,
.edn-dark .edn-feedback-reviews,
.edn-dark .edn-feedback-field label small {
    color: #97a3b9;
}

.edn-dark .edn-feedback-reviews {
    border-top-color: #34425f;
}

@media (max-width: 575.98px) {
    .edn-feedback-label {
        display: none;
    }

    .edn-feedback {
        padding: 0 .7rem;
    }
}

/* In the full edifabric.com navbar (the Spec Builder and the spec library), on laptop widths, both buttons show
   only their icons, so the navbar still fits. The labels are back on wide screens and in the mobile menu. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .navbar .edn-feedback-label,
    .navbar .edn-like-label {
        display: none;
    }

    .navbar .edn-feedback {
        padding: 0 .7rem;
    }

    .navbar .edn-like-main {
        padding: 0 .55rem 0 .6rem;
    }
}
