/**
 * "Änderung melden" button and dialog — restaurant singles only.
 *
 * Every selector is prefixed .gn-cr. The child theme's main.css prints *before* the
 * parent's font-awesome, magnific and owl stylesheets (see AGENTS.md), so an unprefixed
 * rule here would be a coin toss; a namespace of our own is not.
 */

.gn-cr {
    margin: 10px 0 30px;
}

/* The trigger reads as a quiet utility, not a CTA: it sits a few pixels from
   "Jetzt reservieren" and must not compete with it. */
.gn-cr__trigger {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out;
}

.gn-cr__trigger:hover,
.gn-cr__trigger:focus-visible {
    border-color: #ad3e81;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.gn-cr__trigger-title {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: #222;
}

.gn-cr__trigger-sub {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.4;
    color: #777;
}

.gn-cr__dialog {
    width: min(520px, calc(100vw - 32px));
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 3px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    color: #222;
}

.gn-cr__dialog::backdrop {
    background: rgba(0, 0, 0, .55);
}

.gn-cr__panel {
    padding: 24px;
}

.gn-cr__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.gn-cr__head h3 {
    margin: 0;
    font-family: Baskerville, serif;
    font-size: 24px;
    line-height: 1.2;
}

.gn-cr__close {
    padding: 0 4px;
    border: 0;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: #777;
    cursor: pointer;
}

.gn-cr__close:hover {
    color: #ad3e81;
}

.gn-cr__intro {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.gn-cr__label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
}

.gn-cr__req {
    color: #ad3e81;
}

.gn-cr__opt {
    font-weight: 400;
    color: #888;
}

.gn-cr__select,
.gn-cr__textarea,
.gn-cr__input {
    display: block;
    /* Stated rather than inherited: bootstrap.css sets border-box globally on the site,
       but a control that only fits because of someone else's reset is one refactor away
       from hanging over the edge of the panel. */
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    color: #222;
}

.gn-cr__textarea {
    resize: vertical;
    min-height: 90px;
}

.gn-cr__select:focus,
.gn-cr__textarea:focus,
.gn-cr__input:focus {
    outline: none;
    border-color: #ad3e81;
}

/* Off-screen rather than display:none — some bots skip fields they cannot see at all. */
.gn-cr__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.gn-cr__error {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-left: 3px solid #c0392b;
    background: #fdeaea;
    font-size: 14px;
    color: #a03228;
}

.gn-cr__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.gn-cr__cancel {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    font-size: 15px;
    color: #555;
    cursor: pointer;
}

.gn-cr__cancel:hover {
    border-color: #bbb;
    color: #222;
}

.gn-cr__submit {
    padding: 10px 20px;
    border: 0;
    border-radius: 3px;
    background: #222;
    font-size: 15px;
    color: #fff;
    cursor: pointer;
    transition: background .3s;
}

.gn-cr__submit:hover {
    background: #ad3e81;
}

.gn-cr__submit[disabled] {
    opacity: .6;
    cursor: default;
}

.gn-cr__legal {
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #888;
}

.gn-cr__done {
    padding: 8px 0 0;
    font-size: 15px;
    line-height: 1.5;
}

.gn-cr__done-title {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 18px;
}

.gn-cr__done .gn-cr__submit {
    margin-top: 16px;
}

@media only screen and (max-width: 480px) {
    .gn-cr__panel {
        padding: 18px;
    }

    .gn-cr__actions {
        flex-direction: column-reverse;
    }

    .gn-cr__actions button {
        width: 100%;
    }
}
