.cookie-consent,
.cookie-settings-button {
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

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

.cookie-consent {
  position: fixed;
  z-index: 2147483000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 22px;
  color: #1d2a22;
  background: #fff;
  border: 1px solid #d7e4da;
  border-radius: 14px;
  box-shadow: 0 12px 38px rgba(20, 56, 32, .22);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

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

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

.cookie-consent__title {
  display: block;
  margin: 0 0 5px;
  color: #173f24;
  font-size: 18px;
  line-height: 1.3;
}

.cookie-consent__text {
  margin: 0;
}

.cookie-consent__link {
  color: #236f38;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.cookie-consent__button,
.cookie-settings-button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #2d8144;
  border-radius: 8px;
  font: 700 14px/1.2 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.cookie-consent__button--accept {
  color: #fff;
  background: #2d8144;
}

.cookie-consent__button--reject {
  color: #245d34;
  background: #fff;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible,
.cookie-settings-button:hover,
.cookie-settings-button:focus-visible {
  outline: 3px solid rgba(45, 129, 68, .22);
  outline-offset: 2px;
}

.cookie-settings-button {
  position: fixed;
  z-index: 2147482999;
  left: 14px;
  bottom: 14px;
  min-height: 38px;
  padding: 8px 12px;
  color: #245d34;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 18px rgba(20, 56, 32, .16);
  font-size: 12px;
}

.cookie-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 24px;
  color: #33483a;
  background: #f1f6f2;
  border: 1px solid #d7e4da;
  text-align: center;
}

@media (max-width: 760px) {
  .cookie-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: block;
    width: calc(100% - 20px);
    padding: 16px;
    font-size: 14px;
  }

  .cookie-consent__title {
    font-size: 17px;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
  }

  .cookie-consent__button {
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (max-width: 390px) {
  .cookie-consent__actions {
    grid-template-columns: 1fr;
  }
}
