/* Newsletter UI is scoped; existing storefront controls keep their own styles. */
.nl-root { --nl-ink: #143b3b; --nl-muted: #526861; --nl-paper: #fbfaf6; --nl-ocean: #073b3e; --nl-teal: #007e82; }
.nl-root [hidden], .nl-footer [hidden] { display: none !important; }
.nl-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; line-height: 1.6; }
.nl-footer .nl-footer-open { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; color: inherit; background: transparent; border: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.nl-footer .nl-footer-privacy { display: inline; color: inherit; font: inherit; padding-block: 9px; }
.nl-footer a:hover, .nl-footer button:hover { text-decoration: underline; text-underline-offset: 4px; }
html.nl-modal-open { overflow: hidden; }
.nl-backdrop { position: fixed; inset: 0; z-index: 9998; background: #032f32b8; backdrop-filter: blur(4px); }
.nl-dialog { position: fixed; inset: 0; z-index: 9999; width: min(850px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; padding: 0; color: var(--nl-ink); background: var(--nl-paper); border: 0; border-radius: 19px; overflow: auto; box-shadow: 0 30px 100px #00282c4d; font-family: var(--body, Arial, sans-serif); line-height: 1.65; }
.nl-dialog:not([open]) { display: none; }
.nl-dialog[open] { display: grid; grid-template-columns: .82fr 1.18fr; }
.nl-dialog::backdrop { background: #032f32b8; backdrop-filter: blur(4px); }
.nl-dialog a { display: inline; color: var(--nl-teal); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.nl-dialog button, .nl-dialog input, .nl-dialog a, .nl-dialog summary, .nl-footer a, .nl-footer button { outline-offset: 4px; }
.nl-dialog :focus-visible, .nl-footer :focus-visible { outline: 3px solid #00a7aa; }
.nl-close { position: absolute; z-index: 2; top: 11px; right: 11px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: #fbfaf6e8; border: 1px solid #dce3dc; border-radius: 50%; color: var(--nl-ink); cursor: pointer; }
.nl-close > span { font: 26px/1 Arial, sans-serif; margin-top: -2px; }
.nl-close:hover { background: #e5eee0; }
.nl-visual { position: relative; min-height: 100%; overflow: hidden; background: #073b3e; }
.nl-visual > img, .nl-visual-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.nl-visual > img { object-fit: cover; object-position: 56% 50%; }
.nl-visual-shade { background: linear-gradient(0deg, #042f32ba, #042f3212 80%); }
.nl-brand { position: absolute; bottom: 30px; left: 28px; color: white; font: 800 37px/.95 Arial, sans-serif; letter-spacing: -.075em; }
.nl-brand > span { color: #7ce2df; }
.nl-brand > small { display: block; margin-top: 9px; font-size: 8px; font-weight: 600; letter-spacing: .41em; }
.nl-body { min-width: 0; padding: 42px 36px 26px; }
.nl-title { color: var(--nl-ink); font: 500 36px/1.14 var(--display, Georgia, serif); letter-spacing: -.04em; margin: 12px 0 16px; text-wrap: balance; }
:lang(zh-hant) .nl-title, :lang(zh-hans) .nl-title, :lang(ja) .nl-title, :lang(vi) .nl-title { font-family: var(--body, Arial, sans-serif); letter-spacing: -.025em; line-height: 1.35; font-size: 31px; }
.nl-intro { margin: 0; color: var(--nl-muted); font-size: 13px; line-height: 1.85; }
.nl-form { margin-top: 22px; }
.nl-email-label { display: block; margin-bottom: 8px; color: var(--nl-ink); font-size: 12px; font-weight: 600; }
.nl-email { display: block; width: 100%; min-height: 49px; padding: 11px 13px; border: 1px solid #b9cbbd; border-radius: 7px; background: white; color: var(--nl-ink); font: inherit; font-size: 15px; }
.nl-email::placeholder { color: #66766d; opacity: 1; }
.nl-email[aria-invalid=true] { border-color: #a43f2f; }
.nl-trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.nl-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 17px; color: #294b40; font-size: 12px; line-height: 1.8; cursor: pointer; }
.nl-consent input { width: 18px; height: 18px; flex: 0 0 18px; margin: 3px 0 0; accent-color: #007e82; }
.nl-consent input[aria-invalid=true] { outline: 2px solid #a43f2f; outline-offset: 3px; }
.nl-policy-link { font-size: 11px; line-height: 1.8; margin-top: 7px; }
.nl-form-note { margin: 14px 0 0; color: var(--nl-muted); font-size: 10px; line-height: 1.85; }
.nl-status { margin: 13px 0; color: var(--nl-teal); font-size: 12px; line-height: 1.7; }
.nl-status:empty { display: none; }
.nl-status-error { color: #9b382b; padding-left: 11px; border-left: 2px solid #bd7468; }
.nl-submit { display: flex; justify-content: center; align-items: center; gap: 14px; width: 100%; min-height: 49px; padding: 12px 16px; margin-top: 18px; border: 1px solid var(--nl-ocean); border-radius: 7px; background: var(--nl-ocean); color: white; font: 600 13px/1.5 var(--body, Arial, sans-serif); cursor: pointer; }
.nl-submit:hover { background: #00656a; border-color: #00656a; }
.nl-submit:disabled { cursor: progress; opacity: .66; }
.nl-submit svg { flex-shrink: 0; }
.nl-decline { display: block; width: 100%; min-height: 44px; padding: 10px; margin-top: 5px; color: #496057; background: transparent; border: 0; font: 12px/1.7 var(--body, Arial, sans-serif); cursor: pointer; }
.nl-decline:hover { color: var(--nl-ocean); text-decoration: underline; text-underline-offset: 3px; }
.nl-unsubscribe { border-top: 1px solid #dce3dc; padding-top: 14px; margin-top: 16px; }
.nl-unsubscribe summary { color: #446054; font-size: 11px; line-height: 1.8; cursor: pointer; }
.nl-unsubscribe > p { color: var(--nl-muted); font-size: 11px; line-height: 1.85; margin: 12px 0 8px; }
.nl-unsubscribe > a { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; line-height: 1.8; padding-block: 8px; }
.nl-unsubscribe > a svg { width: 14px; height: 14px; }
.nl-business-contact { color: var(--nl-muted); font-size: 10px; line-height: 1.9; margin: 13px 0 0; }
.nl-success { margin-top: 24px; padding-block: 12px; }
.nl-success-symbol { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: #e0edda; color: #246747; font: 25px/1 Arial, sans-serif; margin-bottom: 17px; }
.nl-success h3 { color: var(--nl-ink); font: 600 22px/1.4 var(--body, Arial, sans-serif); letter-spacing: -.025em; margin: 0 0 12px; }
.nl-success p { color: var(--nl-muted); font-size: 13px; line-height: 1.9; margin: 0; }
.nl-privacy { max-width: 880px; padding-block: 42px 80px; }
.nl-privacy-back { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: #526861; margin-bottom: 32px; }
.nl-privacy-back svg { transform: rotate(180deg); }
.nl-privacy-header h1 { font-size: clamp(34px, 4.1vw, 54px); line-height: 1.25; margin: 0 0 22px; }
.nl-privacy-header > p { color: #526861; font-size: 15px; line-height: 1.95; margin: 0; }
.nl-privacy-state { padding: 16px 20px; margin: 27px 0 12px; border-left: 3px solid #719c7b; background: #edf2e8; color: #294b40; font-size: 13px; line-height: 1.8; }
.nl-privacy-section { padding-block: 26px; border-bottom: 1px solid #dce3dc; }
.nl-privacy-section h2 { font: 500 25px/1.4 var(--body, Arial, sans-serif); letter-spacing: -.025em; margin: 0 0 14px; }
.nl-privacy-section p { color: #405b50; font-size: 14px; line-height: 2; margin: 0; white-space: normal; }
.nl-privacy-section p + p { margin-top: 13px; }
.nl-privacy-section a { color: #007e82; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.nl-privacy-hosting { margin-block: 24px 0; color: #607165; font-size: 12px; line-height: 1.9; }
.nl-privacy-contact { border-bottom: 0; }
@media (max-width: 680px) {
  .nl-dialog { width: min(450px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border-radius: 14px; }
  .nl-dialog[open] { grid-template-columns: 1fr; }
  .nl-visual { min-height: 122px; height: 122px; }
  .nl-visual > img { object-position: 50% 47%; }
  .nl-brand { left: 24px; bottom: 18px; font-size: 29px; }
  .nl-brand > small { font-size: 6px; margin-top: 7px; }
  .nl-body { padding: 18px 24px 23px; }
  .nl-title { margin-top: 7px; margin-bottom: 14px; font-size: 31px; }
  :lang(zh-hant) .nl-title, :lang(zh-hans) .nl-title, :lang(ja) .nl-title, :lang(vi) .nl-title { font-size: 26px; }
  .nl-intro { font-size: 12px; line-height: 1.85; }
  .nl-form { margin-top: 19px; }
  .nl-consent { font-size: 11px; }
  .nl-email { font-size: 16px; }
  .nl-close { top: 9px; right: 9px; width: 42px; height: 42px; }
  .nl-unsubscribe { margin-top: 13px; }
  .nl-business-contact { font-size: 10px; }
  .nl-privacy { padding-block: 28px 55px; }
  .nl-privacy-back { margin-bottom: 25px; font-size: 11px; }
  .nl-privacy-header h1 { font-size: 35px; }
  .nl-privacy-header > p { font-size: 14px; }
  .nl-privacy-section h2 { font-size: 23px; }
  .nl-privacy-section p { font-size: 13px; }
}
@media (max-height: 650px) and (min-width: 681px) {
  .nl-dialog { width: min(780px, calc(100% - 30px)); max-height: calc(100dvh - 24px); }
  .nl-body { padding: 24px 30px; }
  .nl-title { font-size: 30px; }
}
@media (prefers-reduced-motion: no-preference) {
  .nl-dialog[open] { animation: nl-appear .18s ease-out; }
  @keyframes nl-appear { from { opacity: 0; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .nl-dialog { animation: none !important; scroll-behavior: auto; }
}
@media print {
  .nl-footer, .nl-root, .nl-dialog, .nl-backdrop { display: none !important; }
  html.nl-modal-open { overflow: visible; }
  .nl-privacy { max-width: none; padding: 0; }
  .nl-privacy-back { display: none; }
  .nl-privacy-header h1 { font-size: 22pt; }
  .nl-privacy-header > p, .nl-privacy-section p { font-size: 10pt; color: #111; }
  .nl-privacy-section { break-inside: avoid; padding-block: 4mm; }
  .nl-privacy-section h2 { font-size: 13pt; break-after: avoid; }
  .nl-privacy-state { background: transparent; border-color: #777; font-size: 10pt; padding: 3mm; }
  .nl-privacy-hosting { font-size: 8pt; }
}
