/* EGHosting dark cookie consent (TrustFair-style layout) */
.eg-cc-banner {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  pointer-events: none;
}
.eg-cc-banner[hidden] { display: none !important; }
.eg-cc-banner-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, .72);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}
.eg-cc-banner-card,
.eg-cc-modal {
  pointer-events: auto;
  background: linear-gradient(165deg, #152033 0%, #0d1524 100%);
  color: #e8eef5;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .55);
}
.eg-cc-banner-card {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 1.35rem 1.4rem 1.2rem;
}
.eg-cc-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, .18);
  color: #5eead4;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .55rem;
}
.eg-cc-banner-card h2,
.eg-cc-modal h2 {
  margin: 0 0 .4rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}
.eg-cc-banner-card p,
.eg-cc-lead {
  margin: 0 0 .75rem;
  font-size: .9rem;
  line-height: 1.5;
  color: rgba(232, 238, 245, .82);
}
.eg-cc-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  font-size: .8rem;
  margin-bottom: 1rem;
  color: rgba(232, 238, 245, .55);
}
.eg-cc-links a {
  color: #5eead4;
  text-decoration: none;
  font-weight: 650;
}
.eg-cc-links a:hover { text-decoration: underline; }
.eg-cc-banner-actions,
.eg-cc-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.eg-cc-btn {
  appearance: none;
  border-radius: 10px;
  padding: .58rem 1rem;
  font: inherit;
  font-weight: 750;
  font-size: .88rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .1s;
}
.eg-cc-btn:active { transform: scale(.98); }
.eg-cc-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .22);
  color: #e8eef5;
}
.eg-cc-btn-ghost:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .35);
}
.eg-cc-btn-primary {
  background: #14b8a6;
  color: #042f2e;
  border-color: #14b8a6;
}
.eg-cc-btn-primary:hover { background: #2dd4bf; }

.eg-cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 99995;
  background: rgba(5, 10, 20, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: auto;
}
.eg-cc-overlay[hidden] { display: none !important; }
.eg-cc-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 1.35rem 1.35rem 1.2rem;
}
.eg-cc-close {
  position: absolute;
  top: .75rem;
  right: .85rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.eg-cc-necessary-note {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  background: rgba(20, 184, 166, .12);
  border: 1px solid rgba(20, 184, 166, .25);
  color: #99f6e4;
  border-radius: 12px;
  padding: .7rem .85rem;
  font-size: .82rem;
  margin-bottom: .9rem;
}
.eg-cc-cat {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: .85rem .9rem;
  margin-bottom: .55rem;
  background: rgba(255, 255, 255, .03);
}
.eg-cc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.eg-cc-cat-title {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  min-width: 0;
}
.eg-cc-cat-title > i {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(20, 184, 166, .15);
  color: #5eead4;
  flex-shrink: 0;
}
.eg-cc-cat-title strong {
  display: block;
  font-size: .92rem;
  color: #fff;
}
.eg-cc-cat-title small {
  display: block;
  color: rgba(232, 238, 245, .65);
  font-size: .78rem;
  line-height: 1.35;
  margin-top: .15rem;
}
.eg-cc-cookies {
  margin: .55rem 0 0;
  padding: 0 0 0 2.7rem;
  list-style: disc;
  color: rgba(232, 238, 245, .55);
  font-size: .75rem;
}
.eg-cc-cookies code {
  color: #99f6e4;
  font-size: .72rem;
}

/* Toggle */
.eg-cc-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}
.eg-cc-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.eg-cc-switch span {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .15);
  border-radius: 999px;
  transition: background .15s;
}
.eg-cc-switch span::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s;
}
.eg-cc-switch input:checked + span {
  background: #14b8a6;
}
.eg-cc-switch input:checked + span::after {
  transform: translateX(20px);
}
.eg-cc-switch.is-locked {
  cursor: default;
  opacity: .85;
}
.eg-cc-switch.is-locked span {
  background: #0f766e;
}
.eg-cc-switch.is-locked span::after {
  transform: translateX(20px);
}

@media (max-width: 560px) {
  .eg-cc-banner-actions,
  .eg-cc-modal-actions {
    flex-direction: column;
  }
  .eg-cc-btn { width: 100%; }
}
