/* Correzione richiesta ordine: caricare dopo css/style.css */
.rq-drawer,
.rq-confirmation {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.rq-drawer[hidden],
.rq-confirmation[hidden] {
    display: none;
}

.rq-drawer__backdrop,
.rq-confirmation__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 51, 49, 0.68);
}

.rq-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 34rem);
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--cream, #FAF6EE);
    padding: calc(var(--nav-h, 72px) + 2rem) clamp(1.5rem, 5vw, 3.5rem) 2rem;
    box-shadow: -12px 0 36px rgba(0, 0, 0, 0.22);
}

.rq-drawer__close {
    position: absolute;
    z-index: 1;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(0, 0, 0, 0.16);
    background: var(--cream, #FAF6EE);
    color: var(--green-dark, #003331);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.rq-drawer__cart-actions {
    display: flex;
    justify-content: flex-end;
    margin: 0.9rem 0 0.25rem;
}

.rq-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    border: 1px solid var(--green-dark, #003331);
    background: transparent;
    color: var(--green-dark, #003331);
    padding: 0.55rem 0.9rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.rq-clear:hover,
.rq-clear:focus-visible {
    background: var(--green-dark, #003331);
    color: #fff;
}

.rq-form__actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.rq-form__error {
    margin: 0;
    color: #a32616;
    font-size: 0.92rem;
    line-height: 1.45;
}

.rq-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.rq-confirmation {
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.rq-confirmation__dialog {
    position: relative;
    width: min(100%, 36rem);
    max-height: min(42rem, 100%);
    overflow-y: auto;
    background: var(--cream, #FAF6EE);
    padding: clamp(2rem, 6vw, 4rem);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.rq-confirmation__dialog h2 {
    margin: 0.5rem 0 1rem;
    color: var(--green-dark, #003331);
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.1;
}

.rq-confirmation__dialog p {
    margin-bottom: 1.5rem;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

@media (max-width: 42rem) {
    .rq-drawer__panel {
        width: 100%;
        padding: calc(var(--nav-h, 72px) + 1.5rem) 1.25rem 1.5rem;
    }
}
