.consentmode-banner,
.consentmode-modal {
  font-family: 'Lato', sans-serif;
  color: #000;
}

.consentmode-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2147483000;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #eadbdb;
  border-radius: 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.consentmode-banner__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.consentmode-banner__text strong {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.consentmode-banner__privacy {
  font-size: 13px;
}

.consentmode-banner__privacy a {
  color: #000;
  text-decoration: underline;
}

.consentmode-banner__privacy a:hover {
  color: #adadad;
}

.consentmode-banner__actions,
.consentmode-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.consentmode-btn,
.consentmode-preferences-btn {
  border: 1px solid #000;
  border-radius: 0;
  padding: 11px 18px;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.consentmode-btn--primary {
  background: #000 !important;
  background-color: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

.consentmode-btn--primary:hover,
.consentmode-btn--primary:focus {
  background: #adadad !important;
  background-color: #adadad !important;
  border-color: #adadad !important;
  color: #fff !important;
}

.consentmode-modal .consentmode-btn--secondary,
.consentmode-banner .consentmode-btn--secondary,
.consentmode-btn--secondary {
  background: #000 !important;
  background-color: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

.consentmode-modal .consentmode-btn--secondary:hover,
.consentmode-banner .consentmode-btn--secondary:hover,
.consentmode-btn--secondary:hover,
.consentmode-btn--secondary:focus {
  background: #adadad !important;
  background-color: #adadad !important;
  border-color: #adadad !important;
  color: #fff !important;
}

.consentmode-preferences-btn {
  background: #000 !important;
  background-color: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

.consentmode-preferences-btn:hover,
.consentmode-preferences-btn:focus {
  background: #adadad !important;
  background-color: #adadad !important;
  border-color: #adadad !important;
  color: #fff !important;
}

.consentmode-preferences-btn {
  position: fixed;
  left: 16px;
  right: auto;
  bottom: 16px;
  z-index: 2147482999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 11px 16px !important;
  border-radius: 0 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}

.consentmode-preferences-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.consentmode-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}

.consentmode-modal__panel {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 28px 26px 24px;
  background: #fff;
  border: 1px solid #eadbdb;
  border-radius: 0;
}

.consentmode-modal__panel h2 {
  margin: 0 40px 10px 0;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.consentmode-modal__panel p {
  margin: 0 0 18px;
  color: #333;
  font-size: 14px;
  line-height: 1.55;
}

.consentmode-modal__privacy {
  margin: -8px 0 16px;
  font-size: 13px;
}

.consentmode-modal__privacy a {
  color: #000;
  text-decoration: underline;
}

.consentmode-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid #eadbdb;
  border-radius: 0;
  background: #fff;
  color: #000;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.consentmode-modal__close:hover {
  background: #f6f6f6;
}

.consentmode-option {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #eadbdb;
}

.consentmode-option strong {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.consentmode-option span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.consentmode-option small {
  color: #666;
  font-size: 12px;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}

.consentmode-option input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: #000;
}

@media (max-width: 767px) {
  .consentmode-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .consentmode-banner__actions,
  .consentmode-modal__actions {
    justify-content: stretch;
  }

  .consentmode-btn,
  .consentmode-preferences-btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .consentmode-preferences-btn {
    left: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
    white-space: normal;
    text-align: center;
  }
}

.consentmode-modal--corner {
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 24px 24px;
  background: rgba(0, 0, 0, 0.35);
}

.consentmode-modal--corner .consentmode-modal__panel {
  width: min(640px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
}

@media (max-width: 767px) {
  .consentmode-modal--corner {
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
  }

  .consentmode-modal--corner .consentmode-modal__panel {
    width: 100%;
    max-height: calc(100vh - 24px);
  }
}
