/* ==========================================
   COOKIE CONSENT BANNER STYLES
   ========================================== */
#wp-cookie-banner *,
#wp-cookie-banner *::before,
#wp-cookie-banner *::after { box-sizing: border-box; margin: 0; padding: 0; }

#wp-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999999;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #2a2a2a;
  pointer-events: none;
}

#wp-cb-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(9,38,74,.55);
  backdrop-filter: blur(3px);
  z-index: -1;
  animation: wpCbFadeIn .25s ease;
  pointer-events: auto;
}
#wp-cb-backdrop.active { display: block; }

#wp-cb-bar {
  display: none;
  background: #ffffff;
  border-top: 3px solid #F37321;
  box-shadow: 0 -8px 40px rgba(15,59,110,.15);
  padding: 1.5rem 2rem;
  animation: wpCbSlideUp .3s cubic-bezier(.16,1,.3,1);
  pointer-events: auto;
}

#wp-cb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

#wp-cb-logo { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
#wp-cb-logo-mark {
  width: 36px; height: 36px;
  background: #0F3B6E;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; flex-shrink: 0;
}
#wp-cb-logo-mark::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 11px 11px;
  border-color: transparent transparent #F37321 transparent;
}
#wp-cb-logo-mark span {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 800; color: #fff; font-size: .95rem;
  position: relative; z-index: 1;
}

#wp-cb-text { flex: 1; min-width: 280px; }
#wp-cb-text strong {
  display: block;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700; font-size: 1rem;
  color: #0F3B6E; letter-spacing: .03em;
  margin-bottom: .25rem;
}
#wp-cb-text p { font-size: .88rem; color: #555555; }
#wp-cb-text a { color: #0F3B6E; text-decoration: underline; }
#wp-cb-text a:hover { color: #F37321; }

#wp-cb-actions {
  display: flex; align-items: center;
  gap: .75rem; flex-wrap: wrap; flex-shrink: 0;
}

.wp-cb-btn {
  display: inline-flex; align-items: center;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700; font-size: .95rem;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .6rem 1.3rem;
  border-radius: 3px; border: none;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  line-height: 1;
}
.wp-cb-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.wp-cb-btn:focus-visible { outline: 2px solid #F37321; outline-offset: 2px; }

#wp-cb-btn-accept { background: #F37321; color: #ffffff; }
#wp-cb-btn-accept:hover { background: #d4601a; }
#wp-cb-btn-reject { background: transparent; color: #0F3B6E; border: 1.5px solid #e0e4ea; }
#wp-cb-btn-reject:hover { border-color: #0F3B6E; background: #f7f8fa; }
#wp-cb-btn-settings {
  background: transparent; color: #555555;
  border: 1.5px solid transparent;
  font-size: .85rem; padding: .5rem .9rem;
  text-decoration: underline; letter-spacing: .02em;
}
#wp-cb-btn-settings:hover { color: #0F3B6E; box-shadow: none; transform: none; }

/* ── DETAIL MODAL ── */
#wp-cb-modal {
  display: none;
  position: fixed; inset: 0;
  z-index: 1000000;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
}
#wp-cb-modal.open { display: flex; animation: wpCbFadeIn .2s ease; }

#wp-cb-modal-box {
  background: #ffffff;
  border-top: 4px solid #F37321;
  border-radius: 6px 6px 0 0;
  width: 100%; max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 -12px 60px rgba(9,38,74,.22);
  animation: wpCbSlideUp .3s cubic-bezier(.16,1,.3,1);
  padding: 2rem;
  pointer-events: auto;
}

#wp-cb-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; gap: 1rem;
}
#wp-cb-modal-title {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700; font-size: 1.35rem;
  color: #0F3B6E; letter-spacing: .02em;
}
#wp-cb-modal-close {
  background: #f7f8fa; border: 1.5px solid #e0e4ea;
  border-radius: 3px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #555555; flex-shrink: 0;
  font-size: 1.1rem; line-height: 1;
  transition: background .15s, border-color .15s;
}
#wp-cb-modal-close:hover { background: #0F3B6E; border-color: #0F3B6E; color: #fff; }

#wp-cb-modal-intro {
  font-size: .875rem; color: #555555;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e0e4ea;
}
#wp-cb-modal-intro a { color: #0F3B6E; }

.wp-cb-cat {
  border: 1px solid #e0e4ea;
  border-radius: 4px;
  margin-bottom: .75rem;
  overflow: hidden;
}
.wp-cb-cat-head {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem;
  background: #f7f8fa;
  cursor: pointer; user-select: none;
}
.wp-cb-cat-head:hover { background: #edf2fb; }

.wp-cb-cat-icon {
  width: 36px; height: 36px;
  border-radius: 4px;
  background: #0F3B6E;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff; font-size: 1rem;
}

.wp-cb-cat-label { flex: 1; }
.wp-cb-cat-label strong {
  display: block;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700; font-size: 1rem;
  color: #0F3B6E; letter-spacing: .02em;
}
.wp-cb-cat-label small { font-size: .78rem; color: #555555; }

.wp-cb-toggle {
  position: relative; width: 42px; height: 24px; flex-shrink: 0;
}
.wp-cb-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.wp-cb-toggle-track {
  position: absolute; inset: 0;
  background: #e0e4ea;
  border-radius: 12px; cursor: pointer;
  transition: background .2s;
}
.wp-cb-toggle input:checked + .wp-cb-toggle-track { background: #F37321; }
.wp-cb-toggle input:disabled + .wp-cb-toggle-track { background: #0F3B6E; opacity: .7; cursor: not-allowed; }
.wp-cb-toggle-track::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff; border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.wp-cb-toggle input:checked + .wp-cb-toggle-track::after { transform: translateX(18px); }
.wp-cb-toggle input:focus-visible + .wp-cb-toggle-track { outline: 2px solid #F37321; outline-offset: 2px; }

.wp-cb-chevron { font-size: .7rem; color: #555555; margin-left: .25rem; transition: transform .2s; flex-shrink: 0; }
.wp-cb-cat.expanded .wp-cb-chevron { transform: rotate(180deg); }

.wp-cb-cat-body {
  display: none;
  padding: .9rem 1.1rem 1.1rem;
  font-size: .845rem; color: #555555;
  border-top: 1px solid #e0e4ea;
  line-height: 1.6;
}
.wp-cb-cat.expanded .wp-cb-cat-body { display: block; }
.wp-cb-cat-body ul { margin: .6rem 0 0 1rem; display: flex; flex-direction: column; gap: .3rem; }
.wp-cb-cat-body li::marker { color: #F37321; }

#wp-cb-modal-actions {
  display: flex; gap: .75rem; flex-wrap: wrap;
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid #e0e4ea;
}
#wp-cb-modal-actions .wp-cb-btn { flex: 1; justify-content: center; min-width: 130px; }

#wp-cb-float {
  display: none;
  position: fixed; bottom: 1.5rem; left: 1.5rem;
  z-index: 99998;
  background: #0F3B6E; color: #ffffff;
  border: none; border-radius: 50%;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(243, 115, 33, 0.4);
  transition: background .2s, transform .2s, box-shadow .2s;
  font-size: 1.1rem;
  pointer-events: auto;
}
#wp-cb-float:hover {
  background: #F37321;
  box-shadow: 0 6px 24px rgba(243, 115, 33, 0.6);
  transform: scale(1.08);
}
#wp-cb-float.visible { display: flex; }

@keyframes wpCbSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes wpCbFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

@media (max-width: 700px) {
  #wp-cb-bar { padding: 1.25rem 1rem; }
  #wp-cb-inner { gap: 1rem; }
  #wp-cb-actions { width: 100%; }
  .wp-cb-btn { flex: 1; justify-content: center; text-align: center; }
  #wp-cb-modal-box { padding: 1.5rem 1rem; border-radius: 0; max-height: 95vh; }
  #wp-cb-modal-actions .wp-cb-btn { font-size: .85rem; padding: .55rem .8rem; }
}

/* Position Cookie Float Button safely above mobile bottom bar */
@media (max-width: 992px) {
  #wp-cb-float {
    bottom: calc(68px + 1.2rem) !important;
    left: 1.2rem !important;
  }
}
