.scm-root,
.scm-root * {
  box-sizing: border-box;
}

.scm-root {
  --scm-primary: #c72c41;
  --scm-background: #fff;
  --scm-text: #1f2933;
  --scm-font-size: 14px;
  color: var(--scm-text);
  font-family: inherit;
  font-size: var(--scm-font-size);
  line-height: 1.5;
  position: relative;
  z-index: 2147483000;
}

.scm-root [hidden] {
  display: none !important;
}

.scm-banner {
  align-items: center;
  background: var(--scm-background);
  border: 1px solid color-mix(in srgb, var(--scm-text) 18%, transparent);
  bottom: 18px;
  box-shadow: 0 12px 42px rgba(0, 0, 0, .22);
  display: flex;
  gap: 24px;
  left: 18px;
  max-width: calc(100% - 36px);
  padding: 22px;
  position: fixed;
  right: 18px;
}

.scm-position-bottom-left,
.scm-position-bottom-right {
  align-items: stretch;
  flex-direction: column;
  max-width: 520px;
}

.scm-position-bottom-left {
  right: auto;
}

.scm-position-bottom-right {
  left: auto;
}

.scm-banner-copy {
  flex: 1 1 auto;
}

.scm-title,
.scm-preferences h2,
.scm-category-row h3 {
  color: var(--scm-text);
  font-family: inherit;
  line-height: 1.25;
  margin: 0;
  padding: 0;
}

.scm-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.scm-description,
.scm-category-row p {
  color: var(--scm-text);
  margin: 0;
}

.scm-policy-link {
  color: var(--scm-primary);
  display: inline-block;
  font-weight: 600;
  margin-top: 8px;
  text-decoration: underline;
}

.scm-actions,
.scm-preferences-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.scm-button {
  appearance: none;
  border: 2px solid var(--scm-primary);
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 9px 16px;
  text-align: center;
}

.scm-button-primary {
  background: var(--scm-primary);
  color: #fff;
}

.scm-button-secondary {
  background: transparent;
  color: var(--scm-primary);
}

.scm-button:hover,
.scm-button:focus-visible,
.scm-revisit:hover,
.scm-revisit:focus-visible,
.scm-close:focus-visible {
  filter: brightness(.92);
  outline: 3px solid color-mix(in srgb, var(--scm-primary) 35%, transparent);
  outline-offset: 2px;
}

.scm-overlay {
  align-items: center;
  background: rgba(0, 0, 0, .52);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 20px;
  position: fixed;
  right: 0;
  top: 0;
}

.scm-preferences {
  background: var(--scm-background);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .3);
  max-height: min(720px, calc(100vh - 40px));
  max-width: 680px;
  overflow: auto;
  padding: 24px;
  width: 100%;
}

.scm-preferences-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.scm-preferences h2 {
  font-size: 1.45rem;
}

.scm-close {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--scm-text);
  cursor: pointer;
  font-size: 2rem;
  height: 44px;
  line-height: 1;
  width: 44px;
}

.scm-category-row {
  align-items: center;
  border-top: 1px solid color-mix(in srgb, var(--scm-text) 16%, transparent);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 18px 0;
}

.scm-category-copy {
  flex: 1 1 auto;
}

.scm-category-row h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.scm-always-active {
  color: var(--scm-primary);
  flex: 0 0 auto;
  font-size: .9rem;
  font-weight: 700;
}

.scm-switch {
  display: inline-block;
  flex: 0 0 auto;
  height: 28px;
  position: relative;
  width: 50px;
}

.scm-switch input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.scm-slider {
  background: #7b8794;
  border-radius: 28px;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .18s ease;
}

.scm-slider::before {
  background: #fff;
  border-radius: 50%;
  content: '';
  height: 20px;
  left: 4px;
  position: absolute;
  top: 4px;
  transition: .18s ease;
  width: 20px;
}

.scm-switch input:checked + .scm-slider {
  background: var(--scm-primary);
}

.scm-switch input:checked + .scm-slider::before {
  transform: translateX(22px);
}

.scm-switch input:focus-visible + .scm-slider {
  outline: 3px solid color-mix(in srgb, var(--scm-primary) 35%, transparent);
  outline-offset: 2px;
}

.scm-preferences-actions {
  border-top: 1px solid color-mix(in srgb, var(--scm-text) 16%, transparent);
  justify-content: flex-end;
  padding-top: 20px;
}

.scm-revisit {
  align-items: center;
  appearance: none;
  background: var(--scm-primary);
  border: 2px solid #fff;
  border-radius: 50%;
  bottom: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 21px;
  height: 48px;
  justify-content: center;
  left: 18px;
  position: fixed;
  width: 48px;
}

.scm-modal-open {
  overflow: hidden;
}

.scm-embed-placeholder {
  align-items: center;
  background: #f2f4f7;
  display: flex;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
  position: relative;
}

.scm-embed-placeholder iframe {
  height: 100%;
  inset: 0;
  min-height: 220px;
  position: absolute;
  width: 100%;
}

.scm-embed-message {
  color: #1f2933;
  max-width: 480px;
  padding: 24px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.scm-embed-message p {
  margin: 0 0 12px;
}

.scm-embed-loaded {
  background: transparent;
}

.scm-cookie-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.scm-cookie-table {
  border-collapse: collapse;
  width: 100%;
}

.scm-cookie-table th,
.scm-cookie-table td {
  border: 1px solid #d8dee4;
  padding: .65rem;
  text-align: left;
  vertical-align: top;
}

.scm-settings-link {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

@media (max-width: 820px) {
  .scm-banner {
    align-items: stretch;
    bottom: 10px;
    flex-direction: column;
    gap: 16px;
    left: 10px;
    max-height: calc(100vh - 20px);
    max-width: calc(100% - 20px);
    overflow: auto;
    padding: 18px;
    right: 10px;
  }

  .scm-actions,
  .scm-preferences-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .scm-button {
    width: 100%;
  }

  .scm-preferences {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scm-root *,
  .scm-root *::before,
  .scm-root *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
