/* Scope every rule to the widget so theme and Gutenberg content stay independent. */
.msd-utm { --utm-navy: #122d4c; --utm-muted: #536276; --utm-line: #dce3eb; margin: 28px 0; color: #1f3249; font: 400 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; }
.msd-utm *, .msd-utm *::before, .msd-utm *::after { box-sizing: border-box; }
.msd-utm [hidden] { display: none !important; }
.msd-utm .msd-utm-card { padding: clamp(18px, 4vw, 32px); background: #fff; border: 1px solid var(--utm-line); border-top: 4px solid #e2aa40; border-radius: 16px; box-shadow: 0 8px 30px #162f4810; }
.msd-utm h2 { font: 700 clamp(21px, 3vw, 26px)/1.3 system-ui, sans-serif; color: var(--utm-navy); letter-spacing: -.025em; margin: 0 0 12px; }
.msd-utm h3 { font: 700 19px/1.4 system-ui, sans-serif; color: var(--utm-navy); margin: 0 0 12px; }
.msd-utm p { margin: 0 0 16px; }
.msd-utm .msd-utm-kicker { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--utm-muted); margin: 0 0 10px; }
.msd-utm .msd-utm-lead { color: var(--utm-muted); margin-bottom: 26px; }
.msd-utm fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.msd-utm .msd-utm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.msd-utm .msd-utm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.msd-utm .msd-utm-field { min-width: 0; margin-bottom: 18px; }
.msd-utm label { display: block; font-size: 14px; font-weight: 650; margin: 0 0 7px; }
.msd-utm input, .msd-utm textarea { display: block; width: 100%; max-width: 100%; min-width: 0; border: 1px solid #b9c7d6; border-radius: 8px; padding: 12px; background: #fbfcfe; color: #21374e; font: 400 16px/1.5 system-ui, sans-serif; box-shadow: none; }
.msd-utm textarea { resize: vertical; min-height: 110px; overflow-wrap: anywhere; }
.msd-utm input::placeholder { color: #687689; opacity: 1; }
.msd-utm [aria-invalid="true"] { border-color: #a32622; }
.msd-utm :is(input, textarea, button, summary, [tabindex]):focus-visible { outline: 3px solid #2175aa; outline-offset: 3px; }
.msd-utm .msd-utm-help { color: var(--utm-muted); font-size: 12px; margin: 6px 0 0; }
.msd-utm .msd-utm-small { color: var(--utm-muted); font-size: 13px; margin: 10px 0 16px; }
.msd-utm .msd-utm-options { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--utm-line); border-radius: 8px; background: #f5f8fb; }
.msd-utm summary { cursor: pointer; font-size: 14px; font-weight: 650; }
.msd-utm details[open] > summary { margin-bottom: 18px; }
.msd-utm details .msd-utm-field { margin-bottom: 0; }
.msd-utm .msd-utm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.msd-utm button { appearance: none; min-height: 44px; max-width: 100%; border: 1px solid #bdc9d6; border-radius: 8px; padding: 11px 16px; background: #fff; color: var(--utm-navy); font: 600 14px/1.5 system-ui, sans-serif; cursor: pointer; text-transform: none; }
.msd-utm button:hover { background: #edf2f7; }
.msd-utm button.msd-utm-primary { background: var(--utm-navy); border-color: var(--utm-navy); color: #fff; }
.msd-utm button.msd-utm-primary:hover { background: #21486d; }
.msd-utm button:disabled { opacity: .55; cursor: not-allowed; }
.msd-utm .msd-utm-status { font-size: 13px; margin: 14px 0 0; color: #286147; overflow-wrap: anywhere; }
.msd-utm .msd-utm-status:empty { display: none; }
.msd-utm .msd-utm-status[data-state="error"] { color: #a32622; }
.msd-utm .msd-utm-result { padding: clamp(18px, 4vw, 32px); border: 1px solid #b5c8d9; border-radius: 16px; background: #f4f8fc; margin-top: 20px; }
.msd-utm .msd-utm-notices { padding: 14px 18px 14px 32px; margin: 20px 0; background: #fff8e9; border: 1px solid #e7cf9c; border-radius: 8px; font-size: 13px; }
.msd-utm .msd-utm-notices li + li { margin-top: 6px; }
.msd-utm .msd-utm-qr-layout { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; align-items: start; border-top: 1px solid var(--utm-line); padding-top: 24px; margin-top: 24px; }
.msd-utm .msd-utm-qr-preview { display: flex; justify-content: center; min-width: 0; }
.msd-utm .msd-utm-qr-preview canvas { display: block; max-width: 100%; width: 220px; height: auto; background: #fff; image-rendering: pixelated; }
.msd-utm .msd-utm-privacy { font-size: 12px; color: var(--utm-muted); border-top: 1px solid var(--utm-line); margin: 22px 0 0; padding-top: 16px; }
@media (max-width: 580px) {
 .msd-utm .msd-utm-grid, .msd-utm .msd-utm-qr-layout { grid-template-columns: minmax(0, 1fr); }
 .msd-utm .msd-utm-grid { gap: 0; }
 .msd-utm details .msd-utm-field + .msd-utm-field { margin-top: 18px; }
 .msd-utm .msd-utm-actions button { flex: 1 1 auto; }
}
