/* /schowek/ — only what main.css (the live site's stylesheet, copied) does not already carry.
   schowek.php wrote most of this inline on the elements, and its page <style> held the focus rings. */

/* main.css gives .clipboard-summary display:flex, which outranks the browser's rule for [hidden]. */
.clipboard-page [hidden] {
    display: none !important;
}

.clipboard-empty-message {
    padding: 3rem;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 20px;
    border: 1px dashed #ccc;
}

/* "Zapisz do PDF" is a link here (it opens the sheet), not the button that filled localStorage first. */
a.btn-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
}

#form-message-container {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.75em;
    background-color: #f8d7da;
    color: #721c24;
}

#form-message-container p {
    margin: 0;
}

.field-error {
    margin: 0.25rem 0 0;
    font-size: 0.65rem;
    font-weight: 700;
    color: #721c24;
}

.form-info-text .info-lead {
    color: var(--primary-orange);
    font-weight: bold;
}

/* The honeypot: out of sight, out of the tab order, still a real field for anything that fills forms. */
.form-website {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* The thank-you panel, which schowek.php styled inline on the div. */
.reservation-sent {
    padding: 2.5rem 1.5rem;
    text-align: center;
    max-width: 420px;
    margin: 3rem auto 0;
    background-color: #fff;
    border-radius: 16px;
    border: 2px solid var(--primary-orange);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 6px 6px 0px 0px var(--primary-orange);
}

.reservation-sent-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--black);
    margin: 0;
}

.reservation-sent-text {
    font-size: 0.85rem;
    color: var(--black);
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

.reservation-sent .btn-pdf {
    flex: 0 0 auto;
    margin-top: 1rem;
    padding: 0.85rem 2rem;
    background-color: var(--black);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
}

.btn-back-to-catalog {
    text-decoration: none;
    margin-top: 0.5rem;
    display: inline-block;
    padding: 0.65rem 1.5rem;
    font-size: 0.65rem;
}

/* Keyboard focus rings — WCAG 2.4.7, ported from schowek.php's page <style>. */
.btn-clear-clipboard:focus-visible,
.btn-remove-item:focus-visible,
.btn-qty:focus-visible,
.btn-submit:focus-visible,
.btn-pdf:focus-visible,
.form-input:focus-visible,
.form-textarea:focus-visible,
.checkbox-container input:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}
