.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  height: 104px;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

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

.cookie-consent__container {
  height: 100%;
}

.cookie-consent__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  padding: 16px 0;
  box-sizing: border-box;
}

.cookie-consent__text {
  margin: 0;
  max-width: 920px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: 0;
  color: #384B5F;
}

.cookie-consent__link {
  color: #009FE3;
  text-decoration: underline;
}

.cookie-consent__link:hover {
  color: #0280B6;
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
}

.cookie-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  margin: 0;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  user-select: none;
  background: transparent;
}

.cookie-consent__btn span {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 14px;
}

.cookie-consent__btn.btn-green {
  background: #96C11F;
  margin: 0;
}

.cookie-consent__btn.btn-green span {
  color: #fff;
}

.cookie-consent__btn.btn-green:hover {
  background-color: #80A51A;
}

.cookie-consent__btn--outline {
  background: #fff;
  border: 1px solid #384B5F;
}

.cookie-consent__btn--outline span {
  color:#31445A;
}

.cookie-consent__btn--outline:hover {
  background: #F6F8F7;
}

/* ===== Settings panel (right side) ===== */

.cookie-settings {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10001;
  display: none;
}

.cookie-settings.is-open {
  display: block !important;
}

.cookie-settings__backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(49, 68, 90, 0.35);
}

.cookie-settings__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: 864px;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  padding: 24px 0 24px 24px;
  transform: translateX(0);
}

.cookie-settings__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  padding: 0 24px 0 0;
}

.cookie-settings__title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 130%;
  color: #31445A;
}

.cookie-settings__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #B3B3B3;
  cursor: pointer;
}

.cookie-settings__close:hover {
  color: #384B5F;
}

.cookie-settings__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: scroll;
  padding: 0 16px 0 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #009FE3 #EEF1F3;
}

.cookie-settings__body::-webkit-scrollbar {
  width: 6px;
}

.cookie-settings__body::-webkit-scrollbar-track {
  background: #EEF1F3;
  border-radius: 6px;
}

.cookie-settings__body::-webkit-scrollbar-thumb {
  background: #009FE3;
  border-radius: 6px;
}

.cookie-settings__intro {
  margin: 0 0 24px;
}

.cookie-settings__intro-text {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  color: #384B5F;
}

.cookie-settings__intro .cookie-consent__link {
  display: block;
  margin-top: 16px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
}

.cookie-settings__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-settings__item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.cookie-settings__item-title {
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 130%;
  color: #31445A;
}

.cookie-settings__item-text {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  color: #5A5A5A;
}

.cookie-settings__footer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: auto;
  padding: 24px 0 0;
}

.cookie-settings__footer .cookie-consent__btn {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0 18px;
}

.cookie-settings__footer .cookie-consent__btn span {
  white-space: nowrap;
  text-align: center;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__slider {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #D9D9D9;
  border-radius: 24px;
  transition: background 0.2s ease;
}

.cookie-toggle__slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: #009FE3;
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(20px);
}

.cookie-toggle--locked {
  cursor: default;
}

.cookie-toggle--locked input:disabled + .cookie-toggle__slider {
  background: #009FE3;
  opacity: 0.85;
}

@media screen and (max-width: 1024px) {
  .cookie-consent {
    height: auto;
    min-height: 104px;
  }

  .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-consent__actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 576px) {
  .cookie-consent__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent__btn {
    width: 100%;
  }

  .cookie-settings__panel {
    width: 100%;
    padding: 16px 0 16px 16px;
  }

  .cookie-settings__header {
    padding-right: 16px;
  }

  .cookie-settings__body {
    padding-right: 16px;
  }

  .cookie-settings__footer {
    flex-wrap: wrap;
  }

  .cookie-settings__footer .cookie-consent__btn {
    flex: 1 1 auto;
  }

  .cookie-settings__footer .cookie-consent__btn span {
    white-space: normal;
  }
}
