:root {
    --ytf-main: #ff0033;
    --ytf-bg: #111827;
    --ytf-text: #f9fafb;
    --ytf-gray: #4b5563;
    --ytf-gray-light: #9ca3af;
  }

  /* BANNER ------------------------------------------------------ */
  .ytf-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--ytf-bg);
    color: var(--ytf-text);
    padding: 16px 20px;
    font-family: Inter, system-ui, sans-serif;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
  }

  .ytf-cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
  }

  .ytf-cookie-banner-text a {
    color: var(--ytf-main);
    text-decoration: underline;
  }

  .ytf-cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* BUTTONS ----------------------------------------------------- */
  .ytf-cookie-btn {
    border-radius: 999px;
    padding: 8px 14px;
    border: 1px solid transparent;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    background: var(--ytf-gray);
    color: var(--ytf-text);
  }

  .ytf-cookie-btn:hover {
    background: #5a6475;
  }

  .ytf-cookie-btn-primary {
    background: var(--ytf-main);
    color: #ffffff;
  }

  .ytf-cookie-btn-primary:hover {
    background: #cc002a;
  }

  .ytf-cookie-btn-outline {
    background: transparent;
    border: 1px solid var(--ytf-gray);
  }

  /* MODAL -------------------------------------------------------- */
  .ytf-cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    z-index: 10000;
  }

  .ytf-cookie-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    pointer-events: none;
  }

  .ytf-cookie-modal-content {
    pointer-events: auto;
    background: #0b1120;
    border-radius: 16px;
    max-width: 520px;
    width: 92%;
    padding: 22px 24px 20px;
    color: var(--ytf-text);
    font-family: Inter, system-ui, sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  }

  .ytf-cookie-modal-title {
    font-size: 18px;
    font-weight: 600;
  }

  .ytf-cookie-modal-close {
    background: none;
    border: none;
    color: var(--ytf-gray-light);
    cursor: pointer;
    font-size: 20px;
  }

  .ytf-cookie-category {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #020617;
    border: 1px solid #1f2937;
  }

  .ytf-cookie-category--toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .ytf-cookie-row-title {
    font-size: 13px;
    font-weight: 600;
  }

  .ytf-cookie-row-desc {
    font-size: 12px;
    color: #9ca3af;
  }

  /* TOGGLE -------------------------------------------------------- */
  .ytf-toggle-input {
    display: none;
  }

  .ytf-toggle {
    width: 38px;
    height: 20px;
    border-radius: 999px;
    background: var(--ytf-gray);
    position: relative;
    cursor: pointer;
  }

  .ytf-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #f9fafb;
    transition: transform 0.18s ease;
  }

  .ytf-toggle-input:checked + .ytf-toggle {
    background: var(--ytf-main);
  }

  .ytf-toggle-input:checked + .ytf-toggle .ytf-toggle-knob {
    transform: translateX(18px);
  }

  /* BOLLA SEMPRE VISIBILE --------------------------------------- */
  .ytf-cookie-bubble {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99999;
    background: var(--ytf-main);
    width: 52px;
    height: 52px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.28);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: Inter, system-ui;
    font-size: 12px;
    font-weight: 600;
  }

  .ytf-cookie-bubble:hover {
    background: #cc002a;
  }

  @media (max-width: 640px) {
    .ytf-cookie-banner-inner { flex-direction: column; }
  }

/* Hide Elementor-embedded duplicate cookie widgets when global consent is present */
.elementor-widget-html:has(#ytf-cookie-banner),
.elementor-widget-html:has(.ytf-cookie-bubble) {
  display: none !important;
}

#ytf-cookie-bubble[hidden],
#ytf-cookie-banner[hidden],
#ytf-cookie-modal[hidden],
#ytf-cookie-modal-backdrop[hidden] {
  display: none !important;
}

.ytf-cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ytf-cookie-modal-intro {
  font-size: 13px;
  color: var(--ytf-gray-light);
  margin: 0 0 14px;
}
.ytf-cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.ytf-cookie-locked {
  font-size: 12px;
  color: var(--ytf-gray-light);
}

button.ytf-cookie-bubble {
  border: 0;
  padding: 0;
}

/* Dark landing pages: muted text must stay light (not charcoal). */
.page .hero p,
.page .tl-note,
.page .b-card p,
.page .proof-note,
.page .testi-card .quote,
.page .testi-role,
.page .bio-text p,
.page .bio-stat span,
.page .faq-a,
.page .wb-header span,
.page .wb-footer span,
.page .form-sec .sub,
.page .sec .sub,
.form-sec .sub,
.hero p,
.tl-note,
.b-card p,
.proof-note,
.testi-card .quote,
.testi-role,
.bio-text p,
.bio-stat span,
.faq-a {
  color: #c4c4d0 !important;
}

.page .form-sec h2,
.form-sec h2,
.page .hero h1,
.page .b-card h3 {
  color: #f3f4f6 !important;
}

/* Fluent Forms terms on white card: keep dark and readable */
.frm-fluent-form .ff-el-tc label.ff_tc_label,
.frm-fluent-form .ff-el-tc .ff_t_c,
.frm-fluent-form .ff-el-tc .ff_t_c p,
.frm-fluent-form .ff-el-tc .ff_t_c span {
  color: #1f2937 !important;
  opacity: 1 !important;
}

.frm-fluent-form .ff-el-tc label.ff_tc_label a,
.frm-fluent-form .ff-el-tc .ff_t_c a {
  color: #c41e1e !important;
  text-decoration: underline !important;
}
