.am-cookie{
  position:relative;
  z-index:9999;
}

.am-cookie [hidden],
.am-cookie-banner[hidden],
.am-cookie-modal[hidden],
.am-cookie-backdrop[hidden]{
  display:none !important;
}

.am-cookie-backdrop{
  position:fixed;
  inset:0;
  background:rgba(3,8,18,.68);
  backdrop-filter:blur(8px);
  z-index:9998;
}

.am-cookie-banner{
  position:fixed;
  right:24px;
  bottom:24px;
  width:min(720px, calc(100vw - 32px));
  background:linear-gradient(180deg, rgba(10,20,45,.96), rgba(6,14,30,.99));
  border:1px solid rgba(113,184,255,.18);
  border-radius:24px;
  box-shadow:0 0 0 1px rgba(78,170,255,.16), 0 20px 60px rgba(0,0,0,.48);
  color:#ecf5ff;
  overflow:hidden;
  z-index:9999;
}

.am-cookie-banner__inner{
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:24px;
}

.am-cookie-banner__eyebrow{
  color:#7ed8ff;
  text-transform:uppercase;
  letter-spacing:.18em;
  font-size:11px;
  font-weight:800;
  margin-bottom:8px;
}

.am-cookie-banner__copy h2{
  margin:0 0 10px;
  font-size:26px;
  line-height:1.08;
}

.am-cookie-banner__copy p{
  margin:0;
  color:#c3d5ee;
  line-height:1.75;
}

.am-cookie-banner__links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:14px;
}

.am-cookie-banner__links a{
  color:#ffffff;
  text-decoration:none;
  font-weight:600;
}

.am-cookie-banner__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.am-cookie-btn{
  appearance:none;
  border:1px solid rgba(123,185,255,.20);
  border-radius:14px;
  padding:12px 16px;
  font:inherit;
  font-weight:600;
  cursor:pointer;
  transition:.2s ease;
}

.am-cookie-btn:hover{
  transform:translateY(-1px);
}

.am-cookie-btn--primary{
  background:linear-gradient(180deg, rgba(48,132,255,.95), rgba(23,87,233,.88));
  color:#fff;
}

.am-cookie-btn--secondary{
  background:rgba(255,255,255,.06);
  color:#fff;
}

.am-cookie-btn--ghost{
  background:transparent;
  color:#dcecff;
}

.am-cookie-modal{
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  padding:20px;
  z-index:9999;
}

.am-cookie-modal__dialog{
  width:min(860px, 100%);
  max-height:min(88vh, 960px);
  overflow:auto;
  background:linear-gradient(180deg, rgba(10,20,45,.96), rgba(6,14,30,.99));
  border:1px solid rgba(113,184,255,.20);
  border-radius:28px;
  box-shadow:0 0 0 1px rgba(78,170,255,.16), 0 28px 80px rgba(0,0,0,.55);
  color:#ecf5ff;
}

.am-cookie-modal__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:24px 24px 16px;
  border-bottom:1px solid rgba(113,184,255,.10);
}

.am-cookie-modal__eyebrow{
  color:#7ed8ff;
  text-transform:uppercase;
  letter-spacing:.18em;
  font-size:11px;
  font-weight:800;
  margin-bottom:8px;
}

.am-cookie-modal__header h2{
  margin:0;
  font-size:30px;
  line-height:1.08;
}

.am-cookie-modal__close{
  appearance:none;
  border:0;
  background:transparent;
  color:#fff;
  font-size:34px;
  line-height:1;
  cursor:pointer;
  padding:0;
}

.am-cookie-modal__intro{
  padding:20px 24px 0;
}

.am-cookie-modal__intro p{
  margin:0;
  color:#c3d5ee;
  line-height:1.75;
}

.am-cookie-modal__categories{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:20px 24px 24px;
}

.am-cookie-category{
  border:1px solid rgba(113,184,255,.12);
  border-radius:20px;
  background:rgba(255,255,255,.03);
  padding:18px;
}

.am-cookie-category__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.am-cookie-category__copy h3{
  margin:0 0 8px;
  font-size:20px;
}

.am-cookie-category__copy p{
  margin:0;
  color:#c3d5ee;
  line-height:1.7;
}

.am-cookie-category__meta{
  margin-top:10px;
  color:#8dbef5;
  font-size:13px;
  font-weight:700;
}

.am-cookie-switch{
  position:relative;
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
}

.am-cookie-switch input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.am-cookie-switch__slider{
  width:58px;
  height:32px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(113,184,255,.20);
  position:relative;
  transition:.2s ease;
}

.am-cookie-switch__slider::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:24px;
  height:24px;
  border-radius:999px;
  background:#fff;
  transition:.2s ease;
}

.am-cookie-switch input:checked + .am-cookie-switch__slider{
  background:linear-gradient(180deg, rgba(48,132,255,.95), rgba(23,87,233,.88));
}

.am-cookie-switch input:checked + .am-cookie-switch__slider::after{
  transform:translateX(26px);
}

.am-cookie-switch input:disabled + .am-cookie-switch__slider{
  opacity:.8;
}

.am-cookie-modal__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:20px 24px 24px;
  border-top:1px solid rgba(113,184,255,.10);
  flex-wrap:wrap;
}

.am-cookie-modal__footer-links{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.am-cookie-modal__footer-links a{
  color:#fff;
  text-decoration:none;
  font-weight:600;
}

.am-cookie-modal__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

@media (max-width: 760px){
  .am-cookie-banner{
    right:16px;
    bottom:16px;
    width:calc(100vw - 32px);
  }

  .am-cookie-banner__actions,
  .am-cookie-modal__actions{
    flex-direction:column;
  }

  .am-cookie-btn{
    width:100%;
  }

  .am-cookie-category__row{
    align-items:flex-start;
    flex-direction:column;
  }

  .am-cookie-modal__header h2{
    font-size:24px;
  }
}
