/* Irton Manor mailing list: the sign-up box, the email choice in My stays and the /email/… pages.
   Uses the theme's tokens (--im-*) with plain fallbacks, so it also reads well without the theme. */

/* ---- the sign-up box --------------------------------------------------------------------------- */
.irton-ml-signup { max-width: 420px; }
.irton-ml-signup__h { margin: 0 0 6px; font-family: var(--im-serif, Georgia, serif); font-size: 19px; line-height: 1.3; font-weight: 500; color: var(--im-green-deep, #1C3216); }
.irton-ml-signup__text { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--im-muted, #656b5d); }
.irton-ml-signup__row { display: flex; flex-wrap: wrap; gap: 8px; }
.irton-ml-signup__input {
    flex: 1 1 200px; min-width: 0; box-sizing: border-box; height: 44px; padding: 0 14px;
    border: 1px solid var(--im-stone, #E7E0D2); border-radius: 999px; background: #fff; color: var(--im-ink, #20261F);
    font: inherit; font-size: 15px;
}
.irton-ml-signup__input:focus-visible { outline: 2px solid var(--im-green, #294720); outline-offset: 2px; }
.irton-ml-signup__btn { flex: 0 0 auto; min-height: 44px; justify-content: center; }
.irton-ml-signup__btn[disabled] { opacity: .7; cursor: progress; }
.irton-ml-signup__consent { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--im-muted, #656b5d); }
/* Two classes deep: the theme's footer links are blocks with padding (.im-footer a), which put "privacy notice" on a
   line of its own and its full stop on the next. */
.irton-ml-signup .irton-ml-signup__consent a { display: inline; padding: 0; color: inherit; text-decoration: underline; font-size: inherit; line-height: inherit; }
.irton-ml-signup__msg { margin: 10px 0 0; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--im-green, #294720); }
/* Right under the box and button (forms fix, 18/10/2026); empty, it takes no room but stays on the page to be read out. */
.irton-ml-signup__msg:empty { margin: 0; }
/* An error stands out: the site's error box colours, and the box it is about outlined. */
.irton-ml-signup__msg.is-error { padding: 8px 12px; border: 1px solid #e3bcbc; border-radius: 10px; background: #fbeeee; color: #7a2e2e; }
.irton-ml-signup__input[aria-invalid="true"] { border-color: #a32a2a; box-shadow: 0 0 0 2px rgba(163, 42, 42, .18); }
.irton-ml-signup__check { margin-top: 10px; max-width: 100%; overflow: hidden; }
/* The honeypot: off screen for people, still there for the bots that fill every box. */
.irton-ml-signup__hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* On the deep-green footer. */
.irton-ml-signup--footer .irton-ml-signup__h { color: #fff; }
.irton-ml-signup--footer .irton-ml-signup__text,
.irton-ml-signup--footer .irton-ml-signup__consent { color: #cdd8c3; }
.irton-ml-signup--footer .irton-ml-signup__consent a { color: #fff; }
.irton-ml-signup--footer .irton-ml-signup__input { border-color: rgba(255,255,255,.28); }
.irton-ml-signup--footer .irton-ml-signup__input:focus-visible { outline-color: #fff; }
.irton-ml-signup--footer .irton-ml-signup__msg { color: #fff; }
.irton-ml-signup--footer .irton-ml-signup__msg.is-error { color: #7a2e2e; }
.irton-ml-signup--footer .irton-ml-signup__input[aria-invalid="true"] { border-color: #ffd9cf; box-shadow: 0 0 0 2px rgba(255, 217, 207, .45); }

/* ---- after signing up, and the typo hint (owner, 18/10/2026) ------------------------------------------
   "Check your inbox" takes the form's place: a mail icon in the brand's green on its quiet green disc, beside the words
   on a computer and in the footer, centred above them on a phone's sign-up page. The hint is a soft green pill, a full
   44px to tap. */
.irton-ml-signup__fields[hidden], .irton-ml-signup__done[hidden], .irton-ml-signup__done-h[hidden] { display: none; }
.irton-ml-signup__suggest { margin: 8px 0 0; }
.irton-ml-signup__suggest:empty { margin: 0; }
.irton-email-hint {
    display: inline-block; box-sizing: border-box; max-width: 100%; min-height: 44px;
    margin: 0; padding: 11px 18px; border: 1px solid rgba(41, 71, 32, .28); border-radius: 22px;
    background: var(--im-tint-green, #e9f0e2); color: var(--im-green-deep, #1C3216);
    font: inherit; font-size: 14px; line-height: 1.35; text-align: left; cursor: pointer; overflow-wrap: anywhere;
    transition: background-color .15s ease, border-color .15s ease;
}
.irton-email-hint strong { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.irton-email-hint:hover { background: #dbe7cf; border-color: var(--im-green, #294720); }
.irton-email-hint:focus-visible { outline: 2px solid var(--im-green, #294720); outline-offset: 2px; }
.irton-ml-signup__done { display: flex; align-items: flex-start; gap: 16px; text-align: left; }
.irton-ml-signup__done-icon {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
    background: var(--im-tint-green, #e9f0e2); color: var(--im-green, #294720); box-shadow: inset 0 0 0 1px rgba(41, 71, 32, .14);
}
.irton-ml-signup__done-icon .material-symbols-outlined { font-size: 28px; line-height: 1; }
.irton-ml-signup__done-body { min-width: 0; flex: 1 1 auto; }
.irton-ml-signup__done-h { margin: 2px 0 4px; font-family: var(--im-serif, Georgia, serif); font-size: 21px; line-height: 1.25; font-weight: 500; color: var(--im-green-deep, #1C3216); }
.irton-ml-signup__done-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--im-ink, #20261F); }
.irton-ml-signup__done-h:focus, .irton-ml-signup__done-text:focus { outline: none; }
.irton-ml-signup__onward { margin: 16px 0 0; }
.irton-ml-onward { box-sizing: border-box; gap: 8px; text-decoration: none; }
/* On the deep-green footer: white words, the icon's disc stays light so the green icon shows. */
.irton-ml-signup--footer .irton-ml-signup__done-h { color: #fff; }
.irton-ml-signup--footer .irton-ml-signup__done-text { color: #cdd8c3; }
.irton-ml-signup--footer .irton-email-hint:focus-visible { outline-color: #fff; }

/* ---- the /email/… pages (inside the slim header and footer) -------------------------------------- */
.irton-ml-section { padding-top: 32px; padding-bottom: 48px; }
.irton-ml-card {
    position: relative; box-sizing: border-box; max-width: 560px; margin: 0 auto; padding: 32px 28px;
    background: #fff; border-radius: var(--im-card-radius, 14px); box-shadow: var(--im-lift-soft, 0 10px 30px -14px rgba(28,50,22,.16));
}
.im-main .irton-ml-card__h { margin: 0 0 14px; font-size: clamp(24px, 4vw, 30px); color: var(--im-green-deep, #1C3216); }
.irton-ml-card__p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--im-ink, #20261F); }
.irton-ml-card__saved { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--im-tint-green, #e9f0e2); color: var(--im-green-deep, #1C3216); font-weight: 600; }
.irton-ml-card__form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.irton-ml-card__secondary, .irton-ml-card__link { color: var(--im-green, #294720); text-decoration: underline; font-weight: 600; }
.irton-ml-btn { min-height: 44px; }
.irton-ml-tick { display: flex; gap: 10px; align-items: flex-start; flex: 1 1 100%; font-size: 16px; line-height: 1.5; cursor: pointer; }
.irton-ml-tick input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--im-green, #294720); }

/* ---- the sign-up page (/email/join, 13/10/2026): the box inside the card, mostly opened on a phone from a QR code -- */
.irton-ml-card--join .irton-ml-card__lead { margin-bottom: 18px; color: var(--im-muted, #656b5d); }
.irton-ml-card--join .irton-ml-signup { max-width: none; }
/* 16px and up: a phone doesn't zoom the page when the box is tapped. */
.irton-ml-card--join .irton-ml-signup__input { height: 48px; font-size: 16px; }
.irton-ml-card--join .irton-ml-signup__btn { min-height: 48px; }
.irton-ml-card--join .irton-ml-signup__consent { font-size: 13px; }
.irton-ml-card--join .irton-ml-signup__msg { font-size: 15px; }
/* Signed up on the sign-up page (18/10/2026): a little larger, the button onwards beside the words on a computer. */
.irton-ml-card--join .irton-ml-signup__done { padding: 18px 20px; border-radius: 12px; background: var(--im-warm-white, #FBF9F4); box-shadow: inset 0 0 0 1px var(--im-stone, #E7E0D2); }
.irton-ml-card--join .irton-ml-signup__done-icon { width: 60px; height: 60px; }
.irton-ml-card--join .irton-ml-signup__done-icon .material-symbols-outlined { font-size: 32px; }
.irton-ml-card--join .irton-ml-signup__done-h { font-size: 23px; }
.irton-ml-card--join .irton-ml-signup__done-text { font-size: 16px; }

/* A card with an icon ("You're on the list", 18/10/2026): the brand's mail tick above the heading, one button onwards. */
.irton-ml-card__icon {
    display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: 0 0 14px; border-radius: 50%;
    background: var(--im-tint-green, #e9f0e2); color: var(--im-green, #294720); box-shadow: inset 0 0 0 1px rgba(41, 71, 32, .14);
}
.irton-ml-card__icon .material-symbols-outlined { font-size: 32px; line-height: 1; }
.irton-ml-card__actions { margin: 20px 0 0; }

/* ---- My stays ------------------------------------------------------------------------------------- */
.irton-ml-ms { margin-top: 28px; }
.irton-ml-ms__box { padding: 18px 20px; border: 1px solid var(--im-stone, #E7E0D2); border-radius: 12px; background: var(--im-warm-white, #FBF9F4); }
.irton-ml-ms__state, .irton-ml-ms__consent { margin: 0 0 12px; font-size: 15px; line-height: 1.55; }
.irton-ml-ms__consent { font-size: 13px; color: var(--im-muted, #656b5d); }
.irton-ml-ms__saved { margin: 0 0 12px; font-weight: 600; color: var(--im-green, #294720); }

/* ---- the plain page (no theme) ------------------------------------------------------------------- */
.irton-ml-standalone { margin: 0; background: #F5F1E8; color: #20261F; font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.irton-ml-standalone__main { box-sizing: border-box; padding: 48px 16px; }
.irton-ml-standalone .irton-ml-btn { display: inline-block; padding: 12px 24px; border: 0; border-radius: 999px; background: #294720; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 600px) {
    .irton-ml-card { padding: 24px 18px; }
    .irton-ml-signup__btn { flex: 1 1 100%; }
    /* A phone: "Check your inbox" centred, icon above the words, and the button onwards the full width (18/10/2026). */
    .irton-ml-card--join .irton-ml-signup__done { flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 22px 18px; }
    .irton-ml-signup__onward .irton-ml-onward, .irton-ml-card__actions .irton-ml-onward { display: flex; width: 100%; box-sizing: border-box; justify-content: center; }
}
@media (max-width: 620px) {
    /* The footer centres its sign-up on a phone (theme.css): "Check your inbox" follows. */
    .irton-ml-signup--footer .irton-ml-signup__done { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .irton-email-hint { transition: none; }
}
