:root {
  --nwcm-primary: #004aad;
  --nwcm-accent: #ffd200;
  --nwcm-bg: #ffffff;
  --nwcm-text: #0b1f3a;
  --nwcm-muted: #5f6f86;
  --nwcm-border: #dce7f6;
  --nwcm-soft: #f5f8fc;
}
.nwcm-banner[hidden], .nwcm-modal[hidden] { display: none !important; }
.nwcm-banner, .nwcm-modal, .nwcm-floating-button, .nwcm-cookie-table-wrap, .nwcm-document-acceptance {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.nwcm-banner { position: fixed; z-index: 999990; left: 0; right: 0; bottom: 0; padding: 16px; color: var(--nwcm-text); }
.nwcm-position-center { top: 0; display: flex; align-items: center; justify-content: center; background: rgba(5, 17, 40, .48); backdrop-filter: blur(5px); }
.nwcm-position-bottom_left { right: auto; max-width: 600px; }
.nwcm-banner-card {
  background: var(--nwcm-bg);
  border: 1px solid rgba(0,74,173,.13);
  box-shadow: 0 24px 70px rgba(9, 37, 78, .20);
  border-radius: 20px;
  padding: 19px 20px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 18px;
  max-width: 944px;
  position: relative;
  margin: 0 auto;
}
.nwcm-kicker { color: var(--nwcm-primary); font-size: 10.5px; letter-spacing: .095em; text-transform: uppercase; font-weight: 850; margin: 0 0 6px; }
.nwcm-banner h2, .nwcm-modal h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.18; color: var(--nwcm-primary); font-weight: 750; letter-spacing: -.02em; }
.nwcm-banner-text p { margin: 0 0 7px; font-size: 13px; line-height: 1.48; }
.nwcm-policy-links { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; }
.nwcm-policy-links a { color: var(--nwcm-primary); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.nwcm-banner-actions, .nwcm-modal-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 180px; justify-content: center; }
.nwcm-btn, .nwcm-preferences-shortcode {
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 750;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.nwcm-btn:hover, .nwcm-preferences-shortcode:hover { transform: translateY(-1px); }
.nwcm-btn:focus-visible, .nwcm-preferences-shortcode:focus-visible, .nwcm-floating-button:focus-visible { outline: 3px solid rgba(255,210,0,.75); outline-offset: 3px; }
.nwcm-btn-primary, .nwcm-preferences-shortcode { background: var(--nwcm-primary); color: #fff; box-shadow: 0 10px 22px rgba(0,74,173,.22); }
.nwcm-btn-primary:hover { box-shadow: 0 12px 26px rgba(0,74,173,.28); }
.nwcm-btn-secondary { background: #eef4ff; color: var(--nwcm-primary); }
.nwcm-btn-link { background: transparent; color: var(--nwcm-primary); text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
.nwcm-powered { grid-column: 1/-1; margin: 0; font-size: 10.8px; color: #6b7280; text-align: right; }
.nwcm-floating-button {
  position: fixed;
  z-index: 999989;
  width: auto;
  min-width: 158px;
  max-width: calc(100vw - 32px);
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  background: var(--nwcm-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px 14px;
  box-shadow: 0 16px 34px rgba(0, 36, 95, .20);
  transition: transform .15s ease, box-shadow .15s ease;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.01em;
  text-align: center;
  white-space: nowrap;
}
.nwcm-floating-button span { display: block; text-align: center; }
.nwcm-floating-button:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(0, 36, 95, .26); }
.nwcm-floating-bottom_center { left: 50%; bottom: 22px; transform: translateX(-50%); }
.nwcm-floating-bottom_center:hover { transform: translateX(-50%) translateY(-2px); }
.nwcm-floating-bottom_right { right: 20px; bottom: 20px; }
.nwcm-floating-bottom_left { left: 22px; bottom: 22px; }
.nwcm-modal { position: fixed; inset: 0; z-index: 999991; display: flex; align-items: center; justify-content: center; padding: 16px; }
.nwcm-modal-backdrop { position: absolute; inset: 0; background: rgba(4, 20, 50, .60); backdrop-filter: blur(5px); }
.nwcm-modal-card { position: relative; background: #fff; color: #0b1f3a; border-radius: 21px; box-shadow: 0 24px 70px rgba(0,0,0,.28); max-width: 610px; width: 100%; max-height: 88vh; overflow: auto; padding: 24px; border: 1px solid rgba(255,255,255,.7); }
.nwcm-modal-card > p { color: var(--nwcm-muted); line-height: 1.48; margin-top: 0; font-size: 12.5px; }
.nwcm-modal-close { position: absolute; top: 12px; right: 12px; border: 0; background: #edf2fb; color: #0b1f3a; border-radius: 999px; width: 30px; height: 30px; font-size: 19px; cursor: pointer; }
.nwcm-categories { display: grid; gap: 10px; margin: 16px 0; }
.nwcm-category { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; border: 1px solid #e1eaf7; border-radius: 15px; padding: 13px; background: #f8fbff; }
.nwcm-category h3 { margin: 0 0 5px; font-size: 14px; color: var(--nwcm-primary); font-weight: 750; }
.nwcm-category p { margin: 0; color: #4b5563; line-height: 1.42; font-size: 12.5px; }
.nwcm-switch { display: inline-flex; align-items: center; }
.nwcm-switch input { position: absolute; opacity: 0; }
.nwcm-switch span { width: 42px; height: 24px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .2s ease; }
.nwcm-switch span:before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; left: 3px; top: 3px; background: #fff; transition: transform .2s ease; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.nwcm-switch input:checked + span { background: var(--nwcm-primary); }
.nwcm-switch input:checked + span:before { transform: translateX(18px); }
.nwcm-switch input:disabled + span { opacity: .72; cursor: not-allowed; }
.nwcm-cookie-table-wrap { overflow-x: auto; margin: 20px 0; }
.nwcm-cookie-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; border: 1px solid #dfe7f4; border-radius: 14px; overflow: hidden; }
.nwcm-cookie-table th { background: #06295f; color: #fff; text-align: left; }
.nwcm-cookie-table th, .nwcm-cookie-table td { border-bottom: 1px solid #dfe7f4; padding: 11px; vertical-align: top; }
.nwcm-cookie-table tr:last-child td { border-bottom: 0; }
.nwcm-cookie-table tr:nth-child(even) td { background: #f8fbff; }
.nwcm-cookie-cat-necessary td:first-child { border-left: 4px solid var(--nwcm-primary); }
.nwcm-cookie-detail { border: 1px solid #dfe7f4; border-radius: 14px; padding: 13px; margin: 8px 0; background: #fff; }
.nwcm-cookie-detail summary { cursor: pointer; font-weight: 750; color: var(--nwcm-primary); }
.nwcm-document-acceptance { display: block; padding: 12px 0; line-height: 1.45; }
.nwcm-document-acceptance input { margin-right: 8px; }
.nwcm-document-version { display: block; color: #6b7280; margin-left: 26px; font-size: 12px; }
.nwcm-document-error { display: block; color: #b91c1c; margin-left: 26px; font-size: 13px; }
.nwcm-document-error[hidden] { display: none; }
.nwcm-blocked-content { border: 1px dashed #9bb6e8; background: #f5f8ff; border-radius: 16px; padding: 21px; text-align: center; }
.nwcm-blocked-box p { margin: 0 0 14px; color: #0b1f3a; }
.nwcm-banner-minimize { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 999px; background: #edf2fb; color: var(--nwcm-primary); font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nwcm-banner-minimize:hover { background: #e1eaf7; }
@media (max-width: 780px) {
  .nwcm-banner { padding: 8px; }
  .nwcm-banner-card { grid-template-columns: 1fr; padding: 16px; border-radius: 17px; }
  .nwcm-banner-actions, .nwcm-modal-actions { min-width: 0; }
  .nwcm-modal-card { padding: 20px 15px; }
  .nwcm-floating-button { min-height: 34px; padding: 8px 12px; font-size: 10.5px; min-width: 148px; }
  .nwcm-floating-bottom_center { left: 50%; bottom: 14px; }
  .nwcm-floating-bottom_right { right: 14px; bottom: 14px; }
  .nwcm-floating-bottom_left { left: 14px; bottom: 14px; }
}

/* v0.1.5 final testing polish */
.nwcm-banner-card { border-top: 4px solid var(--nwcm-accent); padding-right: 26px; }
.nwcm-banner-minimize {
  top: -12px;
  right: -12px;
  width: 28px;
  height: 28px;
  background: var(--nwcm-accent);
  color: var(--nwcm-primary);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  font-size: 20px;
  line-height: 1;
}
.nwcm-banner-minimize:hover { background: var(--nwcm-accent); filter: brightness(.96); }
.nwcm-policy-links a:focus-visible, .nwcm-btn:focus-visible, .nwcm-floating-button:focus-visible { outline-color: var(--nwcm-accent); }
.nwcm-floating-button { border-color: var(--nwcm-accent); }
@media (max-width: 780px) {
  .nwcm-banner-card { padding-right: 18px; }
  .nwcm-banner-minimize { top: -10px; right: -8px; }
}

/* v0.1.6 position matrix and consent-flow refinements */
.nwcm-position-top_left, .nwcm-position-top_center, .nwcm-position-top_right,
.nwcm-position-center_left, .nwcm-position-center_right,
.nwcm-position-bottom_left, .nwcm-position-bottom_center, .nwcm-position-bottom_right {
  display: flex;
  background: rgba(5, 17, 40, .48);
  backdrop-filter: blur(5px);
}
.nwcm-position-top_left { top: 0; bottom: auto; justify-content: flex-start; align-items: flex-start; }
.nwcm-position-top_center { top: 0; bottom: auto; justify-content: center; align-items: flex-start; }
.nwcm-position-top_right { top: 0; bottom: auto; justify-content: flex-end; align-items: flex-start; }
.nwcm-position-center_left { top: 0; bottom: 0; justify-content: flex-start; align-items: center; }
.nwcm-position-center_right { top: 0; bottom: 0; justify-content: flex-end; align-items: center; }
.nwcm-position-bottom_left { bottom: 0; justify-content: flex-start; align-items: flex-end; max-width: none; }
.nwcm-position-bottom_center { bottom: 0; justify-content: center; align-items: flex-end; }
.nwcm-position-bottom_right { bottom: 0; justify-content: flex-end; align-items: flex-end; }
.nwcm-position-top_left .nwcm-banner-card,
.nwcm-position-center_left .nwcm-banner-card,
.nwcm-position-bottom_left .nwcm-banner-card { margin-left: 0; margin-right: auto; }
.nwcm-position-top_right .nwcm-banner-card,
.nwcm-position-center_right .nwcm-banner-card,
.nwcm-position-bottom_right .nwcm-banner-card { margin-left: auto; margin-right: 0; }
.nwcm-floating-top_left { left: 20px; top: 20px; }
.nwcm-floating-top_center { left: 50%; top: 20px; transform: translateX(-50%); }
.nwcm-floating-top_center:hover { transform: translateX(-50%) translateY(-2px); }
.nwcm-floating-top_right { right: 20px; top: 20px; }
.nwcm-floating-center_left { left: 20px; top: 50%; transform: translateY(-50%); }
.nwcm-floating-center_left:hover { transform: translateY(-50%) translateY(-2px); }
.nwcm-floating-center { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.nwcm-floating-center:hover { transform: translate(-50%, -50%) translateY(-2px); }
.nwcm-floating-center_right { right: 20px; top: 50%; transform: translateY(-50%); }
.nwcm-floating-center_right:hover { transform: translateY(-50%) translateY(-2px); }
.nwcm-modal-card { padding-top: 24px; }
.nwcm-modal-close { display: none !important; }
@media (max-width: 780px) {
  .nwcm-position-top_left, .nwcm-position-top_center, .nwcm-position-top_right,
  .nwcm-position-center_left, .nwcm-position-center_right,
  .nwcm-position-bottom_left, .nwcm-position-bottom_center, .nwcm-position-bottom_right {
    justify-content: center;
    align-items: flex-end;
    top: auto;
    bottom: 0;
  }
  .nwcm-floating-top_left, .nwcm-floating-top_center, .nwcm-floating-top_right,
  .nwcm-floating-center_left, .nwcm-floating-center, .nwcm-floating-center_right {
    top: auto;
    bottom: 14px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .nwcm-floating-top_left:hover, .nwcm-floating-top_center:hover, .nwcm-floating-top_right:hover,
  .nwcm-floating-center_left:hover, .nwcm-floating-center:hover, .nwcm-floating-center_right:hover {
    transform: translateX(-50%) translateY(-2px);
  }
}

/* v0.4.6 public checkout/subscription preview */
.nwcm-public-pricing,
.nwcm-public-checkout {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #0b1f3a;
  margin: 24px 0;
}
.nwcm-public-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.nwcm-public-plan,
.nwcm-public-checkout {
  background: #fff;
  border: 1px solid #dbe6f6;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(15, 44, 85, .07);
}
.nwcm-public-plan {
  padding: 18px;
  position: relative;
}
.nwcm-public-plan.is-featured { border-top: 4px solid var(--nwcm-accent); }
.nwcm-public-plan h3 { margin: 0 0 10px; color: var(--nwcm-primary); font-size: 20px; }
.nwcm-public-price { margin: 0 0 4px; }
.nwcm-public-price strong { font-size: 24px; color: #06295f; }
.nwcm-public-price span, .nwcm-public-monthly { color: #5f6f86; font-size: 13px; }
.nwcm-public-plan ul { margin: 14px 0; padding-left: 18px; font-size: 13px; line-height: 1.55; }
.nwcm-public-badge { display: inline-block; background: var(--nwcm-accent); color: #06295f; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 800; margin-bottom: 10px; }
.nwcm-public-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  border: 0;
  background: var(--nwcm-primary);
  color: #fff !important;
  text-decoration: none;
  padding: 9px 16px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,74,173,.22);
}
.nwcm-checkout-header {
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--nwcm-primary), #06295f);
  color: #fff;
  border-radius: 18px 18px 0 0;
}
.nwcm-checkout-header p { margin: 0 0 6px; color: var(--nwcm-accent); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 850; }
.nwcm-checkout-header h2 { margin: 0 0 8px; color: #fff; font-size: 26px; }
.nwcm-checkout-header span { color: #dbeafe; font-size: 13px; }
.nwcm-checkout-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; padding: 20px; }
.nwcm-checkout-form h3,
.nwcm-checkout-summary h3 { margin: 0 0 12px; color: #06295f; }
.nwcm-checkout-form label { display: block; font-weight: 700; margin-bottom: 12px; font-size: 13px; }
.nwcm-checkout-form input,
.nwcm-checkout-form select {
  width: 100%;
  margin-top: 7px;
  min-height: 38px;
  border: 1px solid #c6d7ef;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}
.nwcm-payment-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 10px 0 16px; }
.nwcm-payment-choice label { border: 1px solid #dbe6f6; border-radius: 12px; padding: 10px; background: #f8fbff; margin: 0; }
.nwcm-checkout-summary { background: #f8fbff; border: 1px solid #dbe6f6; border-radius: 16px; padding: 18px; }
.nwcm-checkout-summary p { margin: 0 0 8px; font-size: 13px; }
.nwcm-summary-total { border-top: 1px solid #dbe6f6; padding-top: 12px; margin-top: 12px !important; }
.nwcm-summary-total strong { color: var(--nwcm-primary); font-size: 20px; }
.nwcm-checkout-result { margin-top: 14px; border-left: 4px solid var(--nwcm-accent); background: #fff; border-radius: 12px; padding: 12px; font-size: 13px; }
@media (max-width: 980px) {
  .nwcm-public-pricing-grid, .nwcm-checkout-layout, .nwcm-payment-choice { grid-template-columns: 1fr; }
}
