.cookie-consent-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 420px;
  max-width: calc(100vw - 48px);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  z-index: 999999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}

.cookie-consent-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-consent-content {
  padding: 24px;
}

.cookie-consent-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cookie-consent-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-text);
}

.cookie-icon {
  font-size: 1.4rem;
  color: var(--clr-brand);
}

.cookie-consent-text {
  font-size: 0.88rem;
  color: var(--clr-text-2);
  line-height: 1.5;
  margin-bottom: 18px;
}

.cookie-policy-link {
  color: var(--clr-brand);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-policy-link:hover {
  color: var(--clr-brand-2);
}

/* Settings section */
.cookie-consent-settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--clr-border-light);
  max-height: 250px;
  overflow-y: auto;
}

.cookie-consent-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cookie-switch-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-text);
}

.cookie-option-title small {
  font-weight: normal;
  color: var(--clr-text-3);
  font-size: 0.75rem;
}

.cookie-option-desc {
  font-size: 0.78rem;
  color: var(--clr-text-3);
  line-height: 1.4;
}

/* Custom Toggle Switch */
.cookie-switch-label input {
  display: none;
}

.cookie-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--clr-light);
  border-radius: 99px;
  transition: background 0.2s ease;
}

.cookie-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--clr-white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.cookie-switch-label input:checked + .cookie-switch {
  background: var(--clr-brand);
}

.cookie-switch-label input:checked + .cookie-switch::after {
  transform: translateX(20px);
}

.cookie-switch.disabled {
  background: var(--clr-light) !important;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Buttons */
.cookie-consent-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-btn {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: all 0.2s ease;
  text-align: center;
}

.cookie-btn.btn-accept {
  background: var(--clr-brand);
  color: var(--clr-white);
}

.cookie-btn.btn-accept:hover {
  background: var(--clr-brand-2);
}

.cookie-btn.btn-reject {
  background: var(--clr-light);
  color: var(--clr-text-2);
}

.cookie-btn.btn-reject:hover {
  background: var(--clr-silver);
}

.cookie-btn.btn-customize {
  background: transparent;
  color: var(--clr-text-2);
  border: 1px solid var(--clr-border);
}

.cookie-btn.btn-customize:hover {
  background: var(--clr-lighter);
}

@media (max-width: 480px) {
  .cookie-consent-banner {
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-bottom: none;
    transform: translateY(100%);
  }
}

#n360-cookie-settings { position:fixed; bottom:1px; left:8px; z-index:9998; border:1px solid #64748b; border-radius:50%; width:36px; height:36px; padding:0; display:flex; align-items:center; justify-content:center; background:#fff; color:#334155; font:18px/1 system-ui; cursor:pointer; }
.cookie-consent-banner { --clr-text:#172b3a; --clr-text-2:#334155; --clr-text-3:#64748b; --clr-brand:#11845b; --clr-border:#cbd5e1; --clr-white:#fff; --clr-bg:#fff; --clr-light:#f1f5f9; --clr-lighter:#f8fafc; --clr-silver:#e2e8f0; --clr-brand-2:#0f704e; --r-sm:8px; --r-lg:16px; z-index:100000; }
.cookie-consent-banner .hidden { display:none !important; }
.cookie-consent-banner * { box-sizing:border-box; }

.cookie-consent-banner { max-height:calc(100dvh - 16px); overflow-y:auto; font-family:system-ui,sans-serif; background:#fff; --glass-bg:#fff; --shadow-xl:0 12px 40px #0003; }
.cookie-consent-banner button { cursor:pointer; border:1px solid #cbd5e1; }

#n360-cookie-settings:focus-visible { outline:2px solid #0f766e; outline-offset:3px; }

body .site-footer { padding-left:56px; }
