/* Stable public form geometry: focus changes colour, never border thickness or height. */
form:not(.locale-switcher) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
form:not(.locale-switcher) textarea,
form:not(.locale-switcher) select {
    min-height: 46px;
    padding: .7rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

form:not(.locale-switcher) input:focus,
form:not(.locale-switcher) textarea:focus,
form:not(.locale-switcher) select:focus {
    border-bottom-color: currentColor;
    outline: none;
}

form:not(.locale-switcher) label { font-size: 10px; }
form:not(.locale-switcher) label small,
.form-note { font-size: 11px; }

/* Keep the pre-order state selector visually consistent with the text fields. */
.preorder-page select[name="state"] {
    width: 100%;
    box-sizing: border-box;
    padding-right: 2rem;
    color: inherit;
    cursor: pointer;
    appearance: none;
    background-color: transparent;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 13px) 20px, calc(100% - 8px) 20px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.preorder-page select[name="state"] option {
    background: var(--ink);
    color: var(--paper);
}

.form-wrap--dark .notice--error {
    border-color: #ff8f80;
    background: rgba(255, 143, 128, .12);
    color: #ffd0c9;
    font-weight: 500;
}

.form-wrap--dark .field-error {
    display: block;
    margin-top: 8px;
    padding: 8px 10px;
    border-left: 3px solid #ff7566;
    background: rgba(255, 117, 102, .16);
    color: #fff5f2 !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
}

.checkout-explanation {
    max-width: 620px;
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

@media (min-width: 901px) {
    form:not(.locale-switcher) label { font-size: 11px; }
    form:not(.locale-switcher) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    form:not(.locale-switcher) textarea,
    form:not(.locale-switcher) select { font-size: 16px; }
}
