/**
 * Rammschutz-Shop: Länderanfrage-Formular ("Ihr Land nicht vorhanden?").
 *
 * Wird nur auf Seiten mit dem Formular geladen (siehe
 * inc/checkout-country-request.php, rscr_enqueue_styles()). Unkompiliert
 * ausgeliefert - nicht Teil von bundled/app.min.css.
 *
 * Farben entsprechen resources/styles/defaults/_variables.scss
 * ($yellow #ebbd1f, $light_grey #f5f5f5) und dem Input-Rahmen #A7A7A7
 * aus _form.scss.
 */

/* Breadcrumb, Titel, Einleitung und Formular teilen sich eine zentrierte Spalte. */
.rscr-page__column {
    /*max-width: 860px;*/
    margin: 0 auto;
}

.rscr-page__column .rs-breadcrumb {
    text-align: center;
}

.rscr-page__title {
    margin-bottom: 1rem;
    text-align: center;
}

.rscr-page__intro {
    max-width: 860px;
    margin: 0 auto 2rem;
    /*text-align: center;*/
}

.rscr-page__form {
    max-width: 860px;
    margin: 0 auto;
}

/* ---------- Formular ---------- */

.rscr-form__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.rscr-form__row {
    width: 100%;
    margin: 0;
}

.rscr-form__row--half {
    width: calc(50% - 0.5rem);
}

@media (max-width: 767px) {
    .rscr-form__row--half {
        width: 100%;
    }
}

.rscr-form__row label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.rscr-form__row .required {
    color: #c0392b;
    text-decoration: none;
    border: none;
}

/* <select> ist in _form.scss nicht enthalten - hier an die Inputs angleichen. */
.rscr-form select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #A7A7A7;
    border-radius: 8px;
    background: #fff;
    outline: none;
    font: inherit;
}

.rscr-form select:focus {
    border-color: #ebbd1f;
}

.rscr-form__row--error input,
.rscr-form__row--error select,
.rscr-form__row--error textarea {
    border-color: #c0392b;
}

.rscr-form__row--checkbox {
    margin-top: 1.5rem;
}

/* Zweite Checkbox (AGB) dichter an die erste rücken. */
.rscr-form__row--checkbox + .rscr-form__row--checkbox {
    margin-top: 0.5rem;
}

.rscr-form__row--checkbox label {
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5;
}

.rscr-form__row--checkbox input[type=checkbox] {
    flex: 0 0 auto;
    margin-top: 0.25rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #ebbd1f;
}

.rscr-form__submit {
    margin-top: 1.5rem;
    text-align: center;
}

/* Honeypot: für Menschen unsichtbar, im Tab-Fluss übersprungen. */
.rscr-form__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Meldungen ---------- */

.rscr-notice {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.rscr-notice p:last-child,
.rscr-notice ul {
    margin-bottom: 0;
}

.rscr-notice ul {
    padding-left: 1.25rem;
}

.rscr-notice--error {
    background: #fdecea;
    border-left: 4px solid #c0392b;
}

.rscr-notice--success {
    background: #f5f5f5;
    border-left: 4px solid #ebbd1f;
}

/* ---------- Warenkorb-Vorschau ---------- */

.rscr-cart {
    margin-top: 2rem;
    padding: 1.25rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.rscr-cart__title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.rscr-cart__note,
.rscr-cart__empty {
    color: #959595;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.rscr-cart__empty {
    margin-bottom: 0;
}

.rscr-cart__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.rscr-cart__table th,
.rscr-cart__table td {
    padding: 0.5rem 0.5rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e0e0e0;
}

.rscr-cart__table th {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rscr-cart__table tfoot td {
    border-bottom: none;
    font-weight: 700;
    padding-top: 0.75rem;
}

.rscr-cart__table small {
    color: #959595;
}

.rscr-cart__amount {
    text-align: right !important;
    white-space: nowrap;
}
