/*
 * Wagz premium retail design: global layer (white page, type helpers, buttons, footer, dialog).
 * Homepage sections are in home.css, the header in navigation.css.
 */
:root { --wagz-ink: #23302a; --wagz-muted: #5b6b61; --wagz-line: #e1e8e3; }
body { background: #fff; }
.wp-site-blocks > main, .wp-site-blocks > .wp-block-group { background: transparent; }
:where(a, button, summary, input):focus-visible { outline: 3px solid #3b8a65; outline-offset: 5px; }

/* Small uppercase label with the mint rule. */
.wagz-kicker { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--wagz-forest); margin: 0 0 12px !important; line-height: 1.5; }

/* Underlined text link with arrow. */
.wagz-text-link { margin: 0 !important; }
.wagz-text-link a { display: inline-flex; gap: 15px; align-items: center; font-size: 11px; font-weight: 600; color: var(--wagz-forest); text-decoration: underline; text-underline-offset: 5px; }
.wagz-text-link a span { text-decoration: none; }

/* Pill buttons. */
.wagz-btn { display: inline-flex; justify-content: center; align-items: center; gap: 25px; min-height: 46px; padding: 13px 23px; border-radius: 99px; border: 1px solid var(--wagz-forest); background: var(--wagz-forest); color: #fff !important; font-size: 11px; font-weight: 600; line-height: 1.3; text-decoration: none !important; transition: background .15s, color .15s; box-sizing: border-box; }
.wagz-btn:hover { background: #235b45; }
.wagz-btn.is-outline { background: #fff; color: var(--wagz-forest) !important; }
.wagz-btn.is-outline:hover { background: var(--wagz-forest); color: #fff !important; }
.wagz-saving-pill { display: inline-block; background: var(--wagz-sage); color: var(--wagz-forest); border-radius: 99px; padding: 5px 9px; font-size: 10px; font-weight: 600; white-space: nowrap; line-height: 1.2; }

/* ---------- Footer ---------- */
.wagz-site-footer { background: var(--wagz-forest); color: var(--wagz-cream); margin-block-start: 0; padding-top: 42px; }
.wagz-site-footer > * { margin-block-start: 0 !important; }
.wagz-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 35px; }
.wagz-footer-grid > * { margin: 0 !important; }
.wagz-footer-logo { margin: 0 !important; line-height: 0; }
.wagz-footer-logo img { width: 127px; height: auto; }
.wagz-footer-brand p { font-size: 10px; line-height: 1.8; color: #dde9e2; margin: 18px 0 !important; }
.wagz-footer-brand .wagz-footer-help { margin: 0 !important; }
.wagz-footer-help a { font-size: 10px; color: var(--wagz-mint); text-decoration: underline; text-underline-offset: 4px; }
.wagz-footer-col h3 { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--wagz-mint); margin: 0 0 20px !important; line-height: 1.5; }
.wagz-footer-col ul { list-style: none; margin: 0 !important; padding: 0; }
.wagz-footer-col li { margin: 0 0 12px; }
.wagz-footer-col a { font-size: 10px; color: #dde9e2; text-decoration: none; }
.wagz-footer-col a:hover { color: #fff; text-decoration: underline; }
.wagz-footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #ffffff26; padding-top: 19px; padding-bottom: 25px; margin-top: 25px !important; font-size: 9px; color: #dde9e2; }
.wagz-footer-bottom p { margin: 0 !important; }
.wagz-footer-bottom a { color: inherit; text-decoration: underline; margin-left: 17px; }
.wagz-prototype { font-size: 9px; text-align: center; background: #0a3025; color: #c4d8cb; padding: 10px 20px; margin: 0 !important; }
.wagz-site-footer a:focus-visible { outline-color: var(--wagz-mint); }

/* ---------- What's inside dialog ---------- */
.wagz-contents-dialog { border: 1px solid var(--wagz-line); border-radius: 18px; width: min(520px, calc(100% - 32px)); padding: 32px; color: var(--wagz-ink); max-height: 85vh; overflow: auto; }
.wagz-contents-dialog::backdrop { background: #0d3b2e80; }
.wagz-contents-dialog h2 { font-size: 25px; margin: 0 30px 12px 0; color: var(--wagz-forest); letter-spacing: -.04em; }
.wagz-contents-dialog p, .wagz-contents-dialog li { font-size: 12px; line-height: 1.8; }
.wagz-contents-dialog ul { padding-left: 20px; margin: 0 0 12px; }
.wagz-contents-dialog__note { color: var(--wagz-muted); margin: 0 0 18px; }
.wagz-contents-dialog__close { position: absolute; right: 15px; top: 13px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--wagz-sage); color: var(--wagz-forest); font-size: 24px; line-height: 1; cursor: pointer; }

@media (max-width: 650px) {
	.wagz-footer-grid { grid-template-columns: 1fr 1fr; gap: 27px 20px; }
	.wagz-footer-brand { grid-column: 1 / -1; }
	.wagz-footer-brand p { margin: 12px 0 !important; }
	.wagz-footer-bottom { flex-direction: column; font-size: 9px; gap: 12px; }
	.wagz-footer-bottom a { margin: 0 14px 0 0; }
	.wagz-contents-dialog { padding: 28px 23px; }
}
@media (prefers-reduced-motion: reduce) { .wagz-btn { transition: none; } }

/* ---------- Compact footer signup (replaces the homepage newsletter band) ---------- */
.wagz-footer-news { display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; border-top: 1px solid #ffffff26; margin-top: 30px !important; padding-top: 22px; }
.wagz-footer-news > * { margin: 0 !important; }
.wagz-footer-news__text { font-size: 12px; line-height: 1.6; color: #dde9e2; }
.wagz-footer-news__text strong { color: #fff; margin-right: 6px; }
.wagz-footer-news .wagz-newsletter-form { flex: 0 1 460px; margin: 0; }
.wagz-footer-news .wagz-form-row { display: flex; gap: 8px; }
.wagz-footer-news input[type="email"] { flex: 1; min-width: 0; min-height: 44px; box-sizing: border-box; border: 1px solid #ffffff40; border-radius: 99px; background: #fff; color: var(--wagz-forest); padding: 10px 16px; font: inherit; font-size: 13px; }
.wagz-footer-news input[type="email"]:focus-visible { outline: 3px solid var(--wagz-mint); outline-offset: 2px; }
.wagz-footer-news button[type="submit"] { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 20px; border-radius: 99px; border: 0; background: var(--wagz-mint); color: var(--wagz-forest); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.wagz-footer-news button[type="submit"]:hover { background: #a6dec3; }
.wagz-footer-news button[type="submit"]:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.wagz-footer-news .wagz-form-note { font-size: 10px; line-height: 1.6; color: #c4d8cb; margin: 7px 0 0 !important; }
.wagz-footer-news .wagz-form-note a { color: inherit; text-decoration: underline; }
.wagz-footer-news .wagz-hp { position: absolute; left: -9999px; }
@media (max-width: 650px) {
	.wagz-footer-news .wagz-newsletter-form { flex-basis: 100%; }
}
/* Compact, readable footer links. */
.wagz-footer-col a, .wagz-footer-help a, .wagz-footer-brand p { font-size: 12px; }
.wagz-footer-col li { margin: 0 0 6px; }
.wagz-footer-col a { display: inline-block; padding: 4px 0; }
.wagz-footer-col h3 { margin-bottom: 12px !important; }
.wagz-footer-bottom { font-size: 11px; }
@media (max-width: 650px) {
	.wagz-site-footer { padding-top: 30px; }
	.wagz-footer-grid { gap: 22px 20px; }
	.wagz-footer-col li { margin: 0; }
	.wagz-footer-col a { padding: 6px 0; }
}
