@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

.cookie-consent {
  box-sizing: border-box;
  position: fixed;
  bottom: 50px;
  right: 50px;
  z-index: 10000;
  width: 650px;
  max-width: calc(100vw - 32px);
  background: #f6f6f8;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  color: #000;
}

.cookie-consent--hidden {
  display: none !important;
}

.cookie-consent__banner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  gap: 20px;
  min-height: 250px;
}

.cookie-consent__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
  width: 100%;
}

.cookie-consent__text {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  color: #000;
}

.cookie-consent__text span {
  font-weight: 400;
}

.cookie-consent__links {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 25px;
  flex-wrap: wrap;
}

.cookie-consent__link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  padding-bottom: 3px;
  border-bottom: 1px solid #319ab9;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  color: #319ab9;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cookie-consent__link:hover {
  opacity: 0.8;
}

.cookie-consent__actions {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 19px;
  width: 100%;
}

.cookie-consent__actions-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.cookie-consent__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 17px;
  border-radius: 12px;
  transition: opacity 0.2s ease;
  background: transparent;
}

.cookie-consent__btn:hover {
  opacity: 0.85;
}

.cookie-consent__btn--settings {
  padding: 10px 30px;
  background: rgba(130, 160, 180, 0.15);
  color: #319ab9;
  font-weight: 500;
}

.cookie-consent__btn--decline {
  padding: 10px 25px;
  color: #1c91c0;
  font-weight: 600;
}

.cookie-consent__btn--accept,
.cookie-consent__btn--save {
  padding: 10px 30px;
  background: linear-gradient(89.99deg, #1b91c0 0%, #76c5a3 100%);
  color: #fff;
  font-weight: 600;
}

.cookie-consent__btn--save {
  min-width: 136px;
  height: 40px;
}

.cookie-consent__modal {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  gap: 25px;
}

.cookie-consent__modal--active {
  display: flex;
}

.cookie-consent__modal-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
  width: 100%;
}

.cookie-consent__modal-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.cookie-consent__modal-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  color: #000;
  margin: 0;
}

.cookie-consent__modal-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 15px;
  color: rgba(6, 47, 75, 0.55);
  margin: 0;
}

.cookie-consent__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.cookie-consent__close::before,
.cookie-consent__close::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  background: #000;
}

.cookie-consent__close {
  position: relative;
}

.cookie-consent__close::before {
  transform: rotate(45deg);
}

.cookie-consent__close::after {
  transform: rotate(-45deg);
}

.cookie-consent__divider {
  width: 100%;
  height: 0;
  border: none;
  border-top: 1px solid rgba(6, 47, 75, 0.1);
  margin: 0;
}

.cookie-consent__categories {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
}

.cookie-consent__category {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
}

.cookie-consent__category-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.cookie-consent__category-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  color: #000;
}

.cookie-consent__category-desc {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 15px;
  color: rgba(6, 47, 75, 0.55);
}

.cookie-consent__toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 4px;
  border: none;
  border-radius: 11px;
  padding: 0;
  cursor: pointer;
  background: rgba(6, 47, 75, 0.2);
  transition: background 0.2s ease;
}

.cookie-consent__toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #062f4b;
  transition: transform 0.2s ease;
}

.cookie-consent__toggle--on {
  background: linear-gradient(89.99deg, #1b91c0 0%, #76c5a3 100%);
}

.cookie-consent__toggle--on::after {
  transform: translateX(18px);
}

.cookie-consent__toggle--disabled {
  background: rgba(6, 47, 75, 0.55);
  cursor: not-allowed;
}

.cookie-consent__toggle--disabled.cookie-consent__toggle--on::after {
  transform: translateX(18px);
}

.cookie-consent__modal-footer {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.cookie-consent__revoke-link {
  display: inline-flex;
  align-items: center;
  padding-bottom: 3px;
  border: none;
  border-bottom: 1px solid #319ab9;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  color: #319ab9;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cookie-consent__revoke-link:hover {
  opacity: 0.8;
}

.footer__cookie-revoke {
  margin-top: 12px;
}

@media screen and (max-width: 768px) {
  .cookie-consent {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }

  .cookie-consent__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent__actions-right {
    justify-content: center;
  }

  .cookie-consent__category {
    gap: 16px;
  }
}
