.cookie-banner{
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
}

.cookie-box{
  max-width: 980px;
  margin: 0 auto;
  background: #111827;
  color: #f9fafb;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.30);
  padding: 24px 28px;
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
}

.cookie-text{
  max-width: 700px;
}

.cookie-text h3{
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.cookie-text p{
  margin: 0;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
}

.cookie-text a{
  color: #ffffff;
  text-decoration: underline;
}

.cookie-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-actions .btn,
.cookie-modal-actions .btn{
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all .2s ease;
}

.cookie-actions .btn-primary{
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

.cookie-actions .btn-primary:hover{
  background: #115e59;
  border-color: #115e59;
}

.cookie-actions .btn-outline{
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,.22);
}

.cookie-actions .btn-outline:hover{
  background: rgba(255,255,255,.08);
}

.cookie-modal{
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15,23,42,.60);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.cookie-modal-box{
  width: 100%;
  max-width: 720px;
  background: #ffffff;
  color: #111827;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  overflow: hidden;
}

.cookie-modal-header,
.cookie-modal-body,
.cookie-modal-actions{
  padding: 24px;
}

.cookie-modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
}

.cookie-modal-header h3{
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.2;
}

.cookie-modal-body{
  display: grid;
  gap: 18px;
  padding-bottom: 18px;
}

.cookie-option{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  align-items: center;
  background: #ffffff;
}

.cookie-option strong{
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #111827;
}

.cookie-option p{
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}

.cookie-modal-link{
  margin: 0 24px 24px;
  padding: 14px 18px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: linear-gradient(180deg, #f7fbfa 0%, #f1f8f7 100%);
  border-radius: 14px;
}

.cookie-modal-link p{
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #4b5563;
}

.cookie-modal-link a{
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 118, 110, 0.25);
  transition: all .2s ease;
}

.cookie-modal-link a:hover{
  color: #0b5f59;
  border-bottom-color: rgba(11, 95, 89, 0.45);
}

.cookie-modal-actions{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid #e5e7eb;
}

.cookie-modal-actions .btn{
  width: 100%;
}

.cookie-modal-actions .btn-outline{
  background: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

.cookie-modal-actions .btn-outline:hover{
  background: #f3f4f6;
}

.cookie-modal-actions .btn-primary{
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

.cookie-modal-actions .btn-primary:hover{
  background: #115e59;
  border-color: #115e59;
}

.cookie-close{
  background: none;
  border: none;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  color: #111827;
  padding: 0;
}

.switch{
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
  flex: 0 0 auto;
}

.switch input{
  opacity: 0;
  width: 0;
  height: 0;
}

.slider{
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  transition: .2s;
}

.slider:before{
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 4px;
  top: 4px;
  background: #ffffff;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.switch input:checked + .slider{
  background: #0f766e;
}

.switch input:checked + .slider:before{
  transform: translateX(24px);
}

.cookie-settings-fab{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  min-height: 44px;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,.20);
  cursor: pointer;
}

.cookie-settings-fab:hover{
  background: #1f2937;
}

@media (max-width: 768px){
  .cookie-banner{
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .cookie-box{
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .cookie-actions{
    width: 100%;
    justify-content: stretch;
  }

  .cookie-actions .btn{
    width: 100%;
  }

  .cookie-modal{
    padding: 16px;
  }

  .cookie-modal-header,
  .cookie-modal-body,
  .cookie-modal-actions{
    padding: 18px;
  }

  .cookie-modal-header h3{
    font-size: 1.45rem;
  }

  .cookie-option{
    align-items: flex-start;
  }

  .cookie-modal-link{
    margin: 0 18px 18px;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .cookie-modal-link p{
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .cookie-modal-actions{
    grid-template-columns: 1fr;
  }
}