/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie__banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #fff;
  border-top: 3px solid #c1185b;
  box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.12);
  padding: 20px 24px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.35s ease;
  pointer-events: none;
}

.cookie__banner.cookie__banner--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.cookie__banner--inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie__banner--icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.cookie__banner--body {
  flex: 1;
  min-width: 240px;
}

.cookie__banner--title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #2d2d2d;
  margin: 0 0 5px;
}

.cookie__banner--text {
  font-size: 0.93rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.cookie__banner--text a {
  color: #c1185b;
  font-weight: 600;
  text-decoration: none;
}

.cookie__banner--text a:hover {
  text-decoration: underline;
}

.cookie__banner--actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.cookie__btn {
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.cookie__btn:active {
  transform: scale(0.97);
}

.cookie__btn--accept {
  background: #c1185b;
  color: #fff;
  box-shadow: 0 4px 14px rgba(193, 24, 91, 0.35);
}

.cookie__btn--accept:hover {
  background: #a01050;
  box-shadow: 0 6px 18px rgba(193, 24, 91, 0.45);
}

.cookie__btn--essential {
  background: #f5f5f5;
  color: #444;
  border: 1.5px solid #ddd;
}

.cookie__btn--essential:hover {
  background: #ebebeb;
  border-color: #bbb;
}

.cookie__btn--customize {
  background: transparent;
  color: #c1185b;
  border: 1.5px solid #c1185b;
}

.cookie__btn--customize:hover {
  background: #fce8ef;
}

.cookie__btn--save {
  background: #f5f5f5;
  color: #444;
  border: 1.5px solid #ddd;
}

.cookie__btn--save:hover {
  background: #ebebeb;
}

/* =========================================================
   COOKIE MODAL
   ========================================================= */
.cookie__modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
}

.cookie__modal.cookie__modal--open {
  display: flex;
}

.cookie__modal--overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

.cookie__modal--box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 580px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  animation: cookieModalIn 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes cookieModalIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cookie__modal--header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 28px 16px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.cookie__modal--icon {
  font-size: 1.7rem;
}

.cookie__modal--header h3 {
  flex: 1;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d2d2d;
}

.cookie__modal--close {
  background: #f5f5f5;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #666;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.cookie__modal--close:hover {
  background: #fce8ef;
  color: #c1185b;
}

.cookie__modal--body {
  padding: 20px 28px;
}

.cookie__modal--desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* =========================================================
   COOKIE CATEGORIES
   ========================================================= */
.cookie__category {
  background: #fdf5f7;
  border: 1.5px solid #f0d0d8;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.cookie__category:last-child {
  margin-bottom: 0;
}

.cookie__category--header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.cookie__category--info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #2d2d2d;
  margin: 0 0 4px;
}

.cookie__category--info p {
  font-size: 0.88rem;
  color: #777;
  margin: 0;
  line-height: 1.55;
}

.cookie__category--tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cookie__tag {
  background: #fff;
  border: 1px solid #e0b0c0;
  color: #c1185b;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* =========================================================
   TOGGLE SWITCH
   ========================================================= */
.cookie__toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
  margin-top: 2px;
}

.cookie__toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie__toggle--slider {
  position: absolute;
  inset: 0;
  background: #ddd;
  border-radius: 28px;
  transition: background 0.25s;
}

.cookie__toggle--slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.cookie__toggle input:checked + .cookie__toggle--slider {
  background: #c1185b;
}

.cookie__toggle input:checked + .cookie__toggle--slider::before {
  transform: translateX(22px);
}

.cookie__toggle--disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.cookie__toggle--disabled input:checked + .cookie__toggle--slider {
  background: #9e9e9e;
}

/* =========================================================
   MODAL FOOTER
   ========================================================= */
.cookie__modal--footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 28px 22px;
  border-top: 1px solid #f0f0f0;
  flex-wrap: wrap;
  position: sticky;
  bottom: 0;
  background: #fff;
}

.cookie__modal--link {
  font-size: 0.88rem;
  color: #c1185b;
  text-decoration: none;
  font-weight: 500;
}

.cookie__modal--link:hover {
  text-decoration: underline;
}

.cookie__modal--btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .cookie__banner--inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

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

  .cookie__btn {
    flex: 1;
    text-align: center;
    padding: 11px 12px;
    font-size: 0.88rem;
  }

  .cookie__modal--footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie__modal--btns {
    flex-direction: column;
  }

  .cookie__modal--btns .cookie__btn {
    width: 100%;
    text-align: center;
  }
}

