.cookie-consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 99999;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #dce5f1;
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 20px 55px rgba(15, 43, 85, .2);
  font-family: "Inter", Arial, sans-serif;
}

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

.cookie-consent__main {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cookie-consent__copy {
  min-width: 0;
  flex: 1;
}

.cookie-consent__copy strong {
  display: block;
  margin-bottom: 6px;
  color: #101b2d;
  font-size: 15px;
}

.cookie-consent__copy p {
  margin: 0;
  color: #596a81;
  font-size: 12px;
  line-height: 1.6;
}

.cookie-consent__copy a {
  color: #0864f7;
  font-weight: 600;
}

.cookie-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.cookie-consent button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #d6e0ed;
  border-radius: 7px;
  color: #29405f;
  background: #fff;
  font: 600 11px/1 "Inter", Arial, sans-serif;
  cursor: pointer;
}

.cookie-consent button:hover {
  border-color: #9dbcf1;
  color: #0864f7;
}

.cookie-consent .cookie-consent__accept,
.cookie-consent .cookie-consent__save {
  color: #fff;
  border-color: #0864f7;
  background: #0864f7;
}

.cookie-consent__settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e4eaf2;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid #e2e9f2;
  border-radius: 8px;
  background: #f9fbff;
}

.cookie-option input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #0864f7;
}

.cookie-option div {
  min-width: 0;
}

.cookie-option b,
.cookie-option small {
  display: block;
}

.cookie-option b {
  margin-bottom: 4px;
  color: #17253b;
  font-size: 11px;
}

.cookie-option small {
  color: #697991;
  font-size: 10px;
  line-height: 1.45;
}

.cookie-option input:disabled {
  opacity: .65;
}

.cookie-consent__settings-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 3px;
}

.cookie-settings-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 760px) {
  .cookie-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 17px;
  }

  .cookie-consent__main {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-consent__accept {
    grid-column: 1 / -1;
  }

  .cookie-consent__settings {
    grid-template-columns: 1fr;
    max-height: 48vh;
    overflow-y: auto;
  }
}
