.rg-cookie-consent {
  position: relative;
  z-index: 9000;
}

.rg-cookie-consent,
.rg-cookie-consent * {
  box-sizing: border-box;
}

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

.rg-cookie-consent .cookie-consent,
.rg-cookie-consent .cookie-settings-overlay,
.rg-cookie-consent .cookie-settings-modal {
  pointer-events: auto;
}

.rg-cookie-consent .cookie-consent {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9000;
  width: min(780px, calc(100vw - 24px));
  padding: 18px 52px 16px 18px;
  border: 1px solid rgba(196, 214, 235, 0.28);
  border-radius: 16px;
  background: rgba(7, 19, 36, 0.96);
  color: #e9f2ff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.rg-cookie-consent .cookie-consent__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(233, 242, 255, 0.76);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.rg-cookie-consent .cookie-consent__close:hover,
.rg-cookie-consent .cookie-consent__close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.rg-cookie-consent .cookie-consent__text {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
}

.rg-cookie-consent .cookie-consent__text a {
  color: #8fc4ff;
  text-decoration: underline;
}

.rg-cookie-consent .cookie-consent__note {
  margin: 0 0 12px;
  color: rgba(222, 235, 252, 0.9);
  font-size: 12px;
  line-height: 1.4;
}

.rg-cookie-consent .cookie-consent__actions,
.rg-cookie-consent .cookie-settings-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.rg-cookie-consent .cookie-btn {
  transition: 0.2s;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
}

.rg-cookie-consent .cookie-btn--ghost {
  background: transparent;
  color: #d6e5f8;
  border-color: rgba(214, 229, 248, 0.45);
}

.rg-cookie-consent .cookie-btn--ghost:hover {
  color: #fff;
  border-color: #fff;
}

.rg-cookie-consent .cookie-btn--primary {
  background: #2f79d2;
  color: #fff;
  border-color: #2f79d2;
}

.rg-cookie-consent .cookie-btn--primary:hover {
  background: #1f5ca4;
  border-color: #1f5ca4;
}

.rg-cookie-consent .cookie-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 9050;
  background: rgba(8, 14, 24, 0.68);
}

.rg-cookie-consent .cookie-settings-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9100;
  width: min(620px, calc(100vw - 24px));
  border: 1px solid #d0e0f4;
  border-radius: 16px;
  background: #fff;
  color: #1d2c3d;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.33);
  transform: translate(-50%, -50%);
}

.rg-cookie-consent .cookie-settings-modal__head {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e6eef8;
}

.rg-cookie-consent .cookie-settings-modal__head h3 {
  margin: 0;
  color: #10243d;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rg-cookie-consent .cookie-settings-modal__close {
  padding: 0;
  border: 0;
  background: transparent;
  color: #6a7b91;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.rg-cookie-consent .cookie-settings-modal__body {
  padding: 16px 18px 10px;
}

.rg-cookie-consent .cookie-settings-modal__intro {
  margin: 0 0 14px;
  color: #35495f;
  font-size: 14px;
  line-height: 1.5;
}

.rg-cookie-consent .cookie-setting-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid #e8eef5;
}

.rg-cookie-consent .cookie-setting-item:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.rg-cookie-consent .cookie-setting-item__content {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.rg-cookie-consent .cookie-setting-item__name {
  display: block;
  margin-bottom: 3px;
  color: #10243d;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.rg-cookie-consent .cookie-setting-item__desc {
  display: block;
  color: #5a6f86;
  font-size: 13px;
  line-height: 1.45;
}

.rg-cookie-consent .cookie-switch {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  width: 48px;
  height: 28px;
}

.rg-cookie-consent .cookie-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.rg-cookie-consent .cookie-switch__track {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #c5d3e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rg-cookie-consent .cookie-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.rg-cookie-consent .cookie-switch input:checked + .cookie-switch__track {
  background: #2f79d2;
}

.rg-cookie-consent .cookie-switch input:checked + .cookie-switch__track::after {
  transform: translateX(20px);
}

.rg-cookie-consent .cookie-switch input:focus-visible + .cookie-switch__track {
  outline: 2px solid #2f79d2;
  outline-offset: 2px;
}

.rg-cookie-consent .cookie-switch input:disabled + .cookie-switch__track {
  cursor: not-allowed;
  background: #9aabbd;
}

.rg-cookie-consent .cookie-setting-item--locked {
  color: #6a7b91;
}

.rg-cookie-consent .cookie-setting-item--locked .cookie-setting-item__name {
  color: #5f738a;
}

.rg-cookie-consent .cookie-setting-item--locked .cookie-setting-item__desc {
  color: #798da3;
}

.rg-cookie-consent .cookie-settings-modal__actions {
  padding: 0 18px 18px;
}

.rg-cookie-consent .cookie-settings-modal .cookie-btn--ghost {
  color: #364a61;
  border-color: rgba(54, 74, 97, 0.35);
}

.rg-cookie-consent .cookie-settings-modal .cookie-btn--ghost:hover {
  color: #1e2f44;
  border-color: #1e2f44;
}

body.rg-cookie-consent-panel-open {
  overflow: hidden;
}

.newfooter--modern .newfooter__bottom-links {
  align-items: center;
}

.newfooter--modern .newfooter__bottom-button {
  display: inline;
  margin: 0;
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
  vertical-align: baseline;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.newfooter--modern .newfooter__bottom-button:hover {
  color: #fff;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .rg-cookie-consent .cookie-consent {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    padding: 12px 42px 12px 14px;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  }

  .rg-cookie-consent .cookie-consent__close {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 20px;
  }

  .rg-cookie-consent .cookie-consent__text {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.46;
  }

  .rg-cookie-consent .cookie-consent__note {
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 1.34;
  }

  .rg-cookie-consent .cookie-consent__actions {
    gap: 8px;
  }

  .rg-cookie-consent .cookie-btn {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .rg-cookie-consent .cookie-consent {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    padding: 14px 42px 14px 14px;
  }

  .rg-cookie-consent .cookie-consent__actions {
    justify-content: stretch;
  }

  .rg-cookie-consent .cookie-consent__actions .cookie-btn,
  .rg-cookie-consent .cookie-settings-modal__actions .cookie-btn {
    flex: 1 1 100%;
  }

  .rg-cookie-consent .cookie-settings-modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    overflow-y: auto;
  }

  .rg-cookie-consent .cookie-settings-modal__head h3 {
    font-size: 17px;
  }

  .rg-cookie-consent .cookie-setting-item {
    gap: 10px;
  }

  .rg-cookie-consent .cookie-setting-item__name {
    font-size: 14px;
  }

  .rg-cookie-consent .cookie-setting-item__desc {
    font-size: 12px;
  }
}
