/* W-Forge consent: deliberately scoped to avoid conflicts with Elementor. */
body.wfc-modal-open { overflow: hidden !important; }
.wfc-overlay[hidden], .wfc-hint[hidden] { display: none !important; }
.wfc-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  background: rgba(1, 20, 40, .62);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: #08233e;
}
.wfc-dialog {
  box-sizing: border-box; width: min(840px, 100%); max-height: min(92dvh, 960px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 28px; border-radius: 12px;
  background: #fff; box-shadow: 0 18px 65px rgba(0, 17, 34, .32);
  font-size: 14px; line-height: 1.5; outline: none;
}
.wfc-dialog *, .wfc-dialog *::before, .wfc-dialog *::after { box-sizing: border-box; }
.wfc-dialog .wfc-header { display: flex; justify-content: space-between; align-items: center; }
.wfc-dialog h2 { margin: 0 0 12px; font-size: clamp(23px, 3vw, 29px); line-height: 1.2; font-weight: 750; color: #08233e; }
.wfc-dialog p { margin: 0 0 11px; color: #263d54; }
.wfc-dialog a { color: #0861c6; text-decoration: underline; }
.wfc-dialog a:focus-visible, .wfc-dialog button:focus-visible, .wfc-dialog .wfc-toggle:focus-visible + .wfc-switch {
  outline: 3px solid #17a8d9; outline-offset: 3px;
}
.wfc-categories { border: 1px solid #e0e6ec; border-radius: 8px; overflow: hidden; margin: 20px 0 22px; }
.wfc-category {
  margin: 0; padding: 15px 17px; min-height: 69px;
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-bottom: 1px solid #e0e6ec;
  position: relative; cursor: pointer;
}
.wfc-category:last-child { border-bottom: 0; }
.wfc-category.wfc-necessary { background: #eaf4fd; cursor: default; }
.wfc-category-icon { flex: 0 0 36px; font-size: 26px; font-family: Arial, sans-serif; color: #06335c; text-align: center; line-height: 1; }
.wfc-category-description { flex: 1; min-width: 0; display: block; }
.wfc-category-description strong { display: block; color: #08233e; font-weight: 700; font-size: 14px; }
.wfc-category-description small { display: block; color: #5a6879; font-size: 12px; line-height: 1.4; margin-top: 2px; }
.wfc-chip { background: #f1f3f6; color: #526071; border-radius: 20px; padding: 4px 8px; white-space: nowrap; font-size: 11px; }
.wfc-chip-required { background: #d5eaff; color: #0861c6; }
.wfc-category .wfc-toggle {
  position: absolute; width: 44px; height: 24px; right: 16px; top: 50%;
  transform: translateY(-50%); opacity: 0; cursor: pointer; margin: 0; z-index: 2;
}
.wfc-switch { width: 44px; height: 24px; border-radius: 30px; flex: 0 0 44px; background: #9aa3ad; position: relative; transition: background .18s ease; }
.wfc-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; height: 18px; width: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0002; transition: transform .18s ease;
}
.wfc-toggle:checked + .wfc-switch, .wfc-switch-required { background: #0e77d8; }
.wfc-toggle:checked + .wfc-switch::after, .wfc-switch-required::after { transform: translateX(20px); }
.wfc-category:has(.wfc-toggle:focus-visible) { position: relative; z-index: 1; }
.wfc-hint { border-left: 3px solid #18a2cd; background: #f0f9fc; padding: 10px 12px; margin: 0 0 16px; }
.wfc-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.wfc-dialog .wfc-button {
  min-height: 48px; margin: 0; padding: 11px 13px; border-radius: 7px;
  font: inherit; font-weight: 700; cursor: pointer; text-align: center;
  box-shadow: none; text-transform: none; letter-spacing: 0;
}
.wfc-dialog .wfc-button-outline { border: 1px solid #00284a; background: #fff; color: #08233e; }
.wfc-dialog .wfc-button-primary { border: 1px solid #052746; background: #052746; color: #fff; }
.wfc-dialog .wfc-button-primary:hover { border-color: #0a4c80; background: #0a4c80; color: #fff; }
.wfc-dialog .wfc-button-outline:hover { background: #edf6fb; color: #08233e; }
.wfc-bottom { text-align: right; padding-top: 11px; }
.wfc-dialog .wfc-save { appearance: none; border: 0; padding: 3px 1px; background: transparent; font: inherit; color: #0861c6; text-decoration: underline; cursor: pointer; }
.wfc-register { border-top: 1px solid #e7edf2; padding-top: 9px; font-size: 12px; color: #516475; }
.wfc-register summary { cursor: pointer; color: #3d5062; }
.wfc-register table { border-collapse: collapse; margin: 10px 0; width: 100%; font-size: 11px; display: block; overflow-x: auto; }
.wfc-register th, .wfc-register td { padding: 8px; border: 1px solid #dde4ea; text-align: left; white-space: normal; }
.wfc-register p { font-size: 11px; }
.wfc-open-settings { cursor: pointer; }
@media (max-width: 630px) {
  .wfc-overlay { padding: 8px; }
  .wfc-dialog { max-height: calc(100dvh - 16px); padding: 20px 15px; border-radius: 10px; }
  .wfc-dialog h2 { font-size: 21px; }
  .wfc-category { padding: 12px 10px; gap: 8px; }
  .wfc-category-icon { flex-basis: 26px; font-size: 21px; }
  .wfc-category-description strong { font-size: 13px; }
  .wfc-category-description small { font-size: 11px; }
  .wfc-chip { display: none; }
  .wfc-switch, .wfc-switch-required { flex-basis: 40px; width: 40px; }
  .wfc-switch::after { width: 18px; height: 18px; }
  .wfc-toggle:checked + .wfc-switch::after, .wfc-switch-required::after { transform: translateX(16px); }
  .wfc-actions { grid-template-columns: 1fr 1fr; gap: 9px; }
  .wfc-dialog .wfc-button-outline { grid-column: 1 / -1; }
  .wfc-dialog .wfc-button { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .wfc-switch, .wfc-switch::after { transition: none; }
}
