/* Klaro theme override for Mango Mobile Agency.
   Customize only accent color (yellow #F6B31A), font (Panton) and a few
   micro-details. We keep Klaro's default light theme for backgrounds and
   text since it works fine as-is. */

.klaro {
  --font-family: Panton, "Open Sans", -apple-system, "system-ui", "Segoe UI",
    Roboto, "Helvetica Neue", sans-serif;
  --title-font-family: Panton, "Open Sans", -apple-system, "system-ui",
    "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-size: 14px;
  --border-radius: 4px;

  /* Klaro maps "green" onto the primary/accent color. We repaint it yellow. */
  --green1: #f6b31a;
  --green2: #e0a115;
  --green3: #f6b31a;

  /* Link accent inside the notice/modal */
  --blue1: #f6b31a;
  --blue2: #e0a115;
}

/* Yellow top border on the notice, for brand recognition */
.klaro .cookie-notice {
  border-top: 3px solid #f6b31a !important;
  box-shadow: 0 -6px 24px rgba(42, 38, 40, 0.16) !important;
}

/* Primary buttons (accept all, save): Mango yellow with dark label */
.klaro .cm-btn.cm-btn-success {
  background: #f6b31a !important;
  color: #2a2628 !important;
  border: 1px solid #f6b31a !important;
  font-weight: 700;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.klaro .cm-btn.cm-btn-success:hover {
  background: #e0a115 !important;
  border-color: #e0a115 !important;
}
.klaro .cm-btn.cm-btn-success:active {
  transform: translateY(1px);
}

/* Secondary / decline: outline dark, no fill */
.klaro .cm-btn.cn-decline,
.klaro .cm-btn.cm-btn-decline,
.klaro .cn-buttons .cm-btn.cm-btn-info {
  background: transparent !important;
  color: #2a2628 !important;
  border: 1px solid #2a2628 !important;
  font-weight: 600;
}
.klaro .cm-btn.cn-decline:hover,
.klaro .cm-btn.cm-btn-decline:hover,
.klaro .cn-buttons .cm-btn.cm-btn-info:hover {
  background: #2a2628 !important;
  color: #ffffff !important;
}

/* "Customize" learn-more link: underlined in yellow */
.klaro .cn-learn-more,
.klaro a.cn-learn-more {
  color: #2a2628 !important;
  text-decoration: underline;
  text-decoration-color: #f6b31a;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 600;
}
.klaro .cn-learn-more:hover {
  color: #f6b31a !important;
}

/* Toggle switch: yellow when ON */
.klaro .cm-list-input:checked + .cm-list-label .slider {
  background: #f6b31a !important;
}
.klaro .cm-list-input:focus + .cm-list-label .slider {
  box-shadow: 0 0 0 3px rgba(246, 179, 26, 0.35);
}

/* Accessible focus ring in translucent yellow */
.klaro button:focus-visible,
.klaro a:focus-visible {
  outline: 3px solid rgba(246, 179, 26, 0.55);
  outline-offset: 2px;
}

/* "Cookie settings" link in the footer: subtle, aligned with the other footer links */
.mango-cookie-settings {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.mango-cookie-settings:hover {
  opacity: 1;
}

/* Mobile: buttons stacked full-width */
@media (max-width: 640px) {
  .klaro .cookie-notice {
    padding: 16px 18px;
  }
  .klaro .cookie-notice .cn-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }
  .klaro .cookie-notice .cn-buttons button {
    flex: 1 1 auto;
    min-width: 120px;
  }
}
