.tcm-banner,
.tcm-modal {
  font-family: inherit;
  color: #1f2933;
}

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

.tcm-banner__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.4;
}

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

.tcm-btn,
.tcm-preferences-btn {
  border: 0;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.tcm-btn--primary {
  background: #2e6ea8;
  color: #fff;
}

.tcm-btn--secondary {
  background: #edf2f7;
  color: #1f2933;
}

.tcm-preferences-btn {
  position: fixed;
  left: 16px;
  right: auto;
  bottom: 16px;
  z-index: 2147482999;
}

.tcm-banner + .tcm-preferences-btn {
  display: none;
}

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

.tcm-modal__panel {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 22px;
  background: #fff;
  border-radius: 8px;
}

.tcm-modal__panel h2 {
  margin: 0 34px 8px 0;
  font-size: 22px;
}

.tcm-modal__panel p {
  margin: 0 0 16px;
  color: #52606d;
  font-size: 14px;
  line-height: 1.45;
}

.tcm-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #edf2f7;
  color: #1f2933;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

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

.tcm-option span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tcm-option small {
  color: #52606d;
  font-size: 12px;
  line-height: 1.35;
}

.tcm-option input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

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

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

  .tcm-btn {
    flex: 1 1 auto;
  }
}

.tcm-modal--corner {
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 24px 24px;
}

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

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

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