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

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

.tm-cookie-consent {
  position: fixed;
  z-index: 100000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
  padding: 20px 22px;
  color: #f7f8fa;
  background: #151a20;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.tm-cookie-consent__copy {
  max-width: 610px;
}

.tm-cookie-consent__copy strong {
  display: block;
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.tm-cookie-consent__copy p {
  margin: 0;
  color: #d8dde3;
  font-size: 14px;
  line-height: 1.55;
}

.tm-cookie-consent__copy a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.tm-cookie-consent__button,
.tm-cookie-settings {
  min-height: 44px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  border-radius: 8px;
}

.tm-cookie-consent__button--accept {
  color: #101419;
  background: #f4c13d;
  border: 1px solid #f4c13d;
}

.tm-cookie-consent__button--decline {
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.tm-cookie-consent__button:hover,
.tm-cookie-consent__button:focus-visible,
.tm-cookie-settings:hover,
.tm-cookie-settings:focus-visible {
  outline: 3px solid rgba(244, 193, 61, 0.45);
  outline-offset: 2px;
}

.tm-cookie-settings {
  position: fixed;
  z-index: 99999;
  right: 16px;
  bottom: 16px;
  min-width: 44px;
  color: #1c252e;
  background: #ffffff;
  border: 1px solid #bac3cc;
  box-shadow: 0 8px 28px rgba(20, 28, 36, 0.18);
}

@media (max-width: 760px) {
  .tm-cookie-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: block;
    width: calc(100% - 24px);
    padding: 18px;
  }

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

  .tm-cookie-consent__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-cookie-consent,
  .tm-cookie-settings {
    scroll-behavior: auto;
  }
}
