/* ================================================
   WEBEY – Cookie Consent Banner
   ================================================ */

/* Banner overlay */
#cookieConsent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3500;
  padding: 0 16px 16px;
  pointer-events: none;

  /* entrance animation */
  transform: translateY(110%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .35s ease;
}

#cookieConsent.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

#cookieConsent.hiding {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

/* Card */
.ck-card {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e8e6e0;
  border-radius: 22px;
  box-shadow: 0 20px 52px rgba(0,0,0,.14), 0 4px 14px rgba(14,165,179,.08);
  padding: 22px 26px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* Icon */
.ck-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(14,165,179,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-top: 2px;
}

/* Text */
.ck-body {
  flex: 1;
  min-width: 0;
}

.ck-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0d0d0d;
  margin: 0 0 5px;
}

.ck-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: #6b6b6b;
  line-height: 1.55;
  margin: 0;
}

.ck-desc a {
  color: #0ea5b3;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color .2s;
}

.ck-desc a:hover {
  color: #0b8a96;
}

/* Buttons */
.ck-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-width: 148px;
}

.ck-btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
  text-align: center;
}

.ck-btn:active {
  transform: scale(.97);
}

.ck-btn-primary {
  background: #0ea5b3;
  color: #fff;
  box-shadow: 0 4px 14px rgba(14,165,179,.35);
}

.ck-btn-primary:hover {
  background: #0b8a96;
  box-shadow: 0 6px 18px rgba(14,165,179,.45);
  transform: translateY(-1px);
}

.ck-btn-secondary {
  background: transparent;
  color: #3d3d3d;
  border: 1.5px solid #e8e6e0;
}

.ck-btn-secondary:hover {
  background: #f4f3ef;
  border-color: #d0cdc7;
}

.ck-btn-text {
  background: none;
  color: #6b6b6b;
  border: none;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 0;
  text-align: center;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: color .2s;
}

.ck-btn-text:hover {
  color: #0d0d0d;
}

/* Preferences panel (expanded) */
.ck-prefs {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0ede8;
  display: none;
  flex-direction: column;
  gap: 12px;
}

.ck-prefs.open {
  display: flex;
}

.ck-pref-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ck-pref-info {
  flex: 1;
}

.ck-pref-label {
  font-size: 13px;
  font-weight: 600;
  color: #0d0d0d;
  font-family: 'Inter', sans-serif;
  margin: 0 0 2px;
}

.ck-pref-sub {
  font-size: 12px;
  color: #6b6b6b;
  font-family: 'Inter', sans-serif;
  margin: 0;
  line-height: 1.5;
}

/* Toggle switch */
.ck-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.ck-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.ck-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #e8e6e0;
  cursor: pointer;
  transition: background .25s;
}

.ck-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .25s;
}

.ck-toggle input:checked + .ck-slider {
  background: #0ea5b3;
}

.ck-toggle input:checked + .ck-slider::before {
  transform: translateX(18px);
}

.ck-toggle input:disabled + .ck-slider {
  opacity: .6;
  cursor: not-allowed;
}

/* Save preferences btn */
.ck-save-prefs {
  padding: 9px 20px;
  background: #0ea5b3;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-end;
  margin-top: 4px;
  transition: background .2s, transform .15s;
}

.ck-save-prefs:hover {
  background: #0b8a96;
  transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 600px) {
  #cookieConsent {
    padding: 0 10px 10px;
  }

  .ck-card {
    flex-direction: column;
    gap: 14px;
    padding: 18px 18px 16px;
    border-radius: 18px;
  }

  .ck-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .ck-actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: unset;
    width: 100%;
  }

  .ck-btn-primary {
    flex: 1;
  }

  .ck-btn-secondary {
    flex: 1;
  }

  .ck-btn-text {
    width: 100%;
    text-align: center;
  }
}