/* =========================================================================
   Plain pages (Polityka prywatności, Regulamin, Newsletter, other pages) and 404.
   Measured from the original site: 126.css / 128.css (Oxygen) and qa/spec/*.txt.
   ========================================================================= */

/* ---------- Page frame ---------- */
.mb-page { background: var(--mb-cream); }
.mb-page__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; }
.mb-page__title {
    margin: 0;
    color: var(--mb-brown);
    font-family: var(--mb-serif);
    font-size: 50px;
    font-weight: 400;
    line-height: 1.125;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.mb-page--polityka-prywatnosci .mb-page__title { font-size: 40px; }

/* ---------- Text ---------- */
.mb-page .mb-prose {
    width: 100%;
    max-width: none;
    color: var(--mb-brown);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    overflow-wrap: break-word;
}
.mb-page .mb-prose > * + * { margin-top: 0; }
.mb-page .mb-prose p,
.mb-page .mb-prose ul,
.mb-page .mb-prose ol { margin: 1em 0; }
.mb-page .mb-prose > :first-child { margin-top: 0; }
.mb-page .mb-prose > :last-child { margin-bottom: 0; }
.mb-page .mb-prose h2,
.mb-page .mb-prose h3 { margin: 1.6em 0 .6em; color: var(--mb-brown); }
.mb-page .mb-prose a { font-weight: 600; }

/* Legal texts: on the original site every line is a paragraph, a section title is a paragraph that starts
   with an empty line. Same look here with real headings and lists. */
.mb-page--legal .mb-prose h2,
.mb-page--legal .mb-prose h3 {
    margin: 2.3em 0 1em; /* 1em paragraph gap + the empty line (1.3) */
    font-family: var(--mb-sans);
    font-size: 1em;
    font-weight: 500;
    line-height: 1.3;
}
.mb-page--legal .mb-prose h2 + h3 { margin-top: 1em; }
.mb-page--legal .mb-prose > h2:first-child { margin-top: 0; }
.mb-page--legal .mb-prose ul,
.mb-page--legal .mb-prose ol { padding: 0; list-style: none; }
.mb-page--legal .mb-prose li { margin: 0; }
.mb-page--legal .mb-prose ul > li::before { content: "- "; }
.mb-page--legal .mb-prose ol { counter-reset: mb-legal; }
.mb-page--legal .mb-prose ol > li { counter-increment: mb-legal; }
.mb-page--legal .mb-prose ol > li::before { content: counter(mb-legal) ". "; }
.mb-page--legal .mb-prose p + ul,
.mb-page--legal .mb-prose p + ol { margin-top: -1em; } /* the list lines continue the paragraph above */
.mb-page--legal .mb-prose a { color: inherit; font-weight: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1600px) {
    .mb-page__title { font-size: 40px; }
    .mb-page--polityka-prywatnosci .mb-page__title { font-size: 35px; }
    .mb-page .mb-prose { font-size: 15px; }
}
@media (max-width: 1249px) {
    .mb-page__inner { gap: 15px; }
    .mb-page__title { font-size: 35px; }
    .mb-page--polityka-prywatnosci .mb-page__title { font-size: 30px; }
}
@media (max-width: 514px) {
    .mb-page .mb-wrap { padding-top: 35px; padding-bottom: 35px; }
    .mb-page__title { font-size: 30px; }
    .mb-page--polityka-prywatnosci .mb-page__title { font-size: 25px; }
    .mb-page .mb-prose { font-size: 14px; }
}

/* Gutenberg leftovers on simple pages (no block CSS is loaded on pages). */
.mb-page .mb-prose img { border-radius: 10px; }
.mb-page .mb-prose figure { margin: 1.5em 0; }
.mb-page .mb-prose figcaption { margin-top: .5em; color: var(--mb-muted); font-size: .85em; }
.mb-page .mb-prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 2px solid var(--mb-gold); }
.mb-page .mb-prose table { width: 100%; border-collapse: collapse; }
.mb-page .mb-prose th, .mb-page .mb-prose td { padding: 10px 12px; border-bottom: 1px solid var(--mb-line); text-align: left; }
.mb-page__parts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2em; }

/* =========================================================================
   The Newsletter plugin (Tnp) on /newsletter/: subscription, profile and
   unsubscribe forms and its messages, dressed like the newsletter band form.
   Selectors are stronger than the plugin's own style.css.
   ========================================================================= */
.mb-prose .tnp { width: 100%; max-width: 620px; margin: 1.5em 0; color: #5b351f; font-size: 15px; font-weight: 400; line-height: 1.3; }
.mb-prose > .tnp:first-child { margin-top: 0; }
.mb-prose .tnp form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; width: 100%; margin: 0; }
.mb-prose .tnp .tnp-field { flex: 1 1 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.mb-prose .tnp-subscription .tnp-field-email { flex: 1 1 0; }
.mb-prose .tnp .tnp-field-button { flex: 0 0 auto; text-align: left; }
.mb-prose .tnp .tnp-field-privacy,
.mb-prose .tnp .tnp-privacy-field { order: 10; margin-top: -5px; }
.mb-prose .tnp .tnp-field label,
.mb-prose .tnp > form > label {
    display: block;
    margin: 0 0 7px;
    padding: 0;
    color: #7b5139;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
}
.mb-prose .tnp input[type="text"],
.mb-prose .tnp input[type="email"],
.mb-prose .tnp input[type="tel"],
.mb-prose .tnp input[type="number"],
.mb-prose .tnp select,
.mb-prose .tnp textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 38px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #d8c3b3;
    border-radius: 6px;
    background: #fff;
    background-image: none;
    box-shadow: none;
    color: #5b351f;
    font-family: var(--mb-sans);
    font-size: 15px;
    letter-spacing: 0;
    line-height: 38px;
    text-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
.mb-prose .tnp textarea { height: auto; min-height: 110px; padding: 10px 14px; line-height: 1.4; }
.mb-prose .tnp select { padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b351f' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px; }
.mb-prose .tnp input::placeholder { color: #a77f69; opacity: 1; }
.mb-prose .tnp input:focus-visible,
.mb-prose .tnp select:focus-visible,
.mb-prose .tnp textarea:focus-visible { outline: 2px solid var(--mb-gold); outline-offset: 1px; }
.mb-prose .tnp input.tnp-submit,
.mb-prose .tnp button.tnp-submit,
.mb-prose .tnp .tnp-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 38px;
    min-width: 132px;
    margin: 0;
    padding: 0 25px;
    border: 0;
    border-radius: 999px;
    background: #5b351f;
    color: #fff;
    font-family: var(--mb-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, transform .2s;
    -webkit-appearance: none;
    appearance: none;
}
.mb-prose .tnp .tnp-submit:hover { background: #4a2a18; transform: translateY(-1px); }
.mb-prose .tnp .tnp-submit:focus-visible { outline: 2px solid var(--mb-gold); outline-offset: 2px; }

/* consent / privacy checkbox, drawn like the band form */
.mb-prose .tnp .tnp-field-privacy label,
.mb-prose .tnp .tnp-privacy-field label,
.mb-prose .tnp .tnp-field-checkbox label {
    position: relative;
    display: block;
    margin: 0;
    padding-left: 27px;
    color: #5b351f;
    font-size: 13.5px;
    line-height: 1.35;
    cursor: pointer;
}
.mb-prose .tnp input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid #c9aa98;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.mb-prose .tnp input[type="checkbox"]:checked { border-color: #5b351f; background: #5b351f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / 18px 18px; }
.mb-prose .tnp input[type="checkbox"]:focus-visible { outline: 2px solid var(--mb-gold); outline-offset: 2px; }
.mb-prose .tnp .tnp-field-privacy a,
.mb-prose .tnp .tnp-privacy-field a { color: var(--mb-brown); font-weight: 600; text-decoration: none; }

/* radio lists in the profile form (gender, lists) */
.mb-prose .tnp input[type="radio"] { width: 16px; height: 16px; margin: 0 6px 0 0; accent-color: #5b351f; vertical-align: -3px; }
.mb-prose .tnp .tnp-field-list label,
.mb-prose .tnp .tnp-field-lists label { display: flex; align-items: center; gap: 0; }

/* profile and unsubscribe screens: fields stacked, button below */
.mb-prose .tnp-profile form,
.mb-prose .tnp-unsubscribe form,
.mb-prose .tnp-reactivate form,
.mb-prose .tnp-resubscribe form { align-items: flex-start; }
.mb-prose .tnp-profile .tnp-field-button,
.mb-prose .tnp-unsubscribe .tnp-field-button { flex-basis: 100%; }

/* messages printed by [newsletter] (confirmation, unsubscribe, errors) */
.mb-prose .tnp-message,
.mb-prose .tnp-error,
.mb-prose .tnp-success,
.mb-prose .tnp-warning,
.mb-prose .tnp-page-message {
    max-width: 620px;
    margin: 0 0 1.5em;
    padding: 18px 22px;
    border: 1px solid var(--mb-line);
    border-left: 3px solid var(--mb-gold);
    border-radius: 6px;
    background: var(--mb-sand);
    color: var(--mb-brown);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}
.mb-prose .tnp-error { border-left-color: #a8452c; }
.mb-prose .tnp-message p,
.mb-prose .tnp-error p { margin: 0; }
.mb-prose .tnp-message p + p { margin-top: .6em; }
.mb-prose .tnp .tnp-field-button + p,
.mb-prose .tnp p { margin: 0; flex: 1 1 100%; font-size: 13.5px; }

@media (max-width: 640px) {
    .mb-prose .tnp form { flex-direction: column; align-items: stretch; gap: 10px; }
    .mb-prose .tnp .tnp-field { flex: 0 0 auto; }
    .mb-prose .tnp input[type="text"],
    .mb-prose .tnp input[type="email"],
    .mb-prose .tnp select { height: 44px; line-height: 44px; }
    .mb-prose .tnp .tnp-submit { width: 100%; height: 44px; }
    .mb-prose .tnp .tnp-field-privacy,
    .mb-prose .tnp .tnp-privacy-field { margin-top: -1px; }
}

