.em-cookie-consent [hidden] {
  display: none !important;
}

html[data-cookie-consent-view="trigger"] .em-cookie-banner,
html[data-cookie-consent-view="panel"] .em-cookie-banner,
html[data-cookie-consent-view="banner"] .em-cookie-trigger,
html[data-cookie-consent-view="panel"] .em-cookie-trigger {
  display: none !important;
}

.em-cookie-panel-open {
  overflow: hidden;
}

.em-cookie-banner,
.em-cookie-panel-shell,
.em-cookie-trigger {
  z-index: 9999;
}

.em-cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: var(--bg-surface);
  border-top: 2px solid var(--brand-primary);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.14);
}

.em-cookie-banner__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.em-cookie-banner__mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--brand-primary);
  color: var(--text-on-brand);
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
}

.em-cookie-banner__copy {
  flex: 1 1 260px;
  min-width: 260px;
}

.em-cookie-banner__title {
  margin: 0 0 4px;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.em-cookie-banner__description {
  margin: 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.em-cookie-banner__actions,
.em-cookie-panel__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.em-cookie-banner__actions {
  margin-left: auto;
}

.em-cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  padding: 10px 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    border-color 0.18s ease;
}

.em-cookie-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.em-cookie-btn:active {
  transform: translateY(0);
  filter: brightness(0.97);
}

.em-cookie-btn--brand {
  padding-inline: 22px;
  background: var(--brand-primary);
  color: var(--text-on-brand);
}

.em-cookie-btn--subtle {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1.5px solid var(--border-default);
}

.em-cookie-btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-default);
}

.em-cookie-btn--wide {
  flex: 1 1 220px;
  padding: 12px;
  font-size: 13.5px;
}

.em-cookie-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.em-cookie-links--banner {
  display: inline;
  margin-top: 0;
  margin-left: 4px;
}

.em-cookie-banner__description,
.em-cookie-links--banner,
.em-cookie-links--banner .em-cookie-link {
  display: inline;
}

.em-cookie-links--banner .em-cookie-link + .em-cookie-link::before {
  content: " · ";
  color: var(--text-muted);
}

.em-cookie-links--panel {
  flex: 0 0 auto;
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.em-cookie-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.16s ease;
}

.em-cookie-links--banner .em-cookie-link {
  color: var(--brand-mid);
}

.em-cookie-link:hover {
  opacity: 0.7;
}

.em-cookie-panel-shell {
  position: fixed;
  inset: 0;
}

.em-cookie-panel-shell__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(19, 19, 16, 0.45);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.em-cookie-panel {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  max-height: min(82dvh, 860px);
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.18);
}

.em-cookie-panel__container {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.em-cookie-panel__handle {
  width: 36px;
  height: 4px;
  margin: 12px auto 0;
  background: var(--border-default);
}

.em-cookie-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.em-cookie-panel__heading-group {
  min-width: 0;
}

.em-cookie-panel__title {
  margin: 0;
  color: var(--text-primary);
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.em-cookie-panel__title em {
  color: var(--brand-primary);
  font-style: italic;
}

.em-cookie-panel__description {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.em-cookie-panel__close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: none;
  background: var(--bg-subtle);
  color: var(--text-muted);
  cursor: pointer;
}

.em-cookie-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  padding: 16px 0;
}

.em-cookie-panel__categories {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.em-cookie-panel__categories::-webkit-scrollbar {
  width: 4px;
}

.em-cookie-panel__categories::-webkit-scrollbar-track {
  background: transparent;
}

.em-cookie-panel__categories::-webkit-scrollbar-thumb {
  background: var(--border-default);
}

.em-cookie-category {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.em-cookie-category + .em-cookie-category {
  margin-top: 10px;
}

.em-cookie-category__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.em-cookie-category__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-primary);
}

.em-cookie-category__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.em-cookie-category__label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.em-cookie-category__label {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.em-cookie-category__pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  background: var(--brand-subtle);
  color: var(--brand-mid);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.em-cookie-category__summary {
  display: block;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.em-cookie-category__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.em-cookie-switch {
  display: inline-flex;
  position: relative;
}

.em-cookie-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.em-cookie-switch__track {
  position: relative;
  width: 40px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 99px;
  background: var(--border-default);
  transition: background 0.22s ease;
}

.em-cookie-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.em-cookie-switch input:checked + .em-cookie-switch__track {
  background: var(--brand-primary);
}

.em-cookie-switch
  input:checked
  + .em-cookie-switch__track
  .em-cookie-switch__thumb {
  transform: translateX(18px);
}

.em-cookie-switch input:disabled + .em-cookie-switch__track {
  opacity: 0.6;
}

.em-cookie-category__chevron {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.em-cookie-category.is-open .em-cookie-category__chevron {
  transform: rotate(180deg);
}

.em-cookie-category__body {
  overflow: hidden;
  padding: 0 16px 16px;
  border-top: 1px solid var(--border-subtle);
}

.em-cookie-category__detail {
  margin: 0 0 12px;
  padding-top: 14px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.em-cookie-category__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.em-cookie-category__examples-label {
  align-self: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.em-cookie-category__example {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  font-size: 11px;
  font-weight: 600;
}

.em-cookie-panel__footer {
  flex: 0 0 auto;
  padding: 14px 0 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.em-cookie-trigger {
  position: fixed;
  right: 16px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1.5px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-muted);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.em-cookie-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.em-cookie-trigger__dot {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.em-cookie-trigger__dot svg {
  display: block;
  width: 18px;
  height: 18px;
}

@media (max-width: 1199px) {
  .em-cookie-banner__inner {
    gap: 22px;
  }

  .em-cookie-banner__copy {
    flex-basis: 100%;
    min-width: 0;
  }

  .em-cookie-banner__actions {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 991px) {
  .em-cookie-banner__inner {
    align-items: flex-start;
    gap: 18px;
    padding: 18px 20px 20px;
  }

  .em-cookie-banner__actions .em-cookie-btn {
    flex: 1 1 180px;
  }

  .em-cookie-panel {
    max-height: min(86dvh, 760px);
  }

  .em-cookie-panel__title {
    font-size: 18px;
  }

  .em-cookie-panel__body {
    gap: 14px;
  }
}

@media (max-width: 767px) {
  .em-cookie-category__copy {
    width: 90%;
  }
  .em-cookie-banner__inner {
    padding: 16px 16px 18px;
    gap: 14px;
  }

  .em-cookie-banner__mark {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .em-cookie-banner__copy {
    min-width: 0;
  }

  .em-cookie-banner__description,
  .em-cookie-links--banner,
  .em-cookie-links--banner .em-cookie-link {
    display: inline;
  }

  .em-cookie-banner__actions {
    width: 100%;
  }

  .em-cookie-banner__actions .em-cookie-btn {
    flex: 1 1 calc(50% - 4px);
  }

  .em-cookie-banner__actions .em-cookie-btn--brand {
    flex-basis: 100%;
  }

  .em-cookie-panel {
    max-height: min(90dvh, 720px);
  }

  .em-cookie-panel__header,
  .em-cookie-panel__body,
  .em-cookie-panel__footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .em-cookie-panel__header {
    gap: 12px;
  }

  .em-cookie-category__header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 13px 14px;
  }

  .em-cookie-category__controls {
    width: 100%;
    justify-content: space-between;
    padding-left: 32px;
  }

  .em-cookie-category__body {
    padding: 0 14px 14px;
  }

  .em-cookie-trigger {
    bottom: calc(93px + env(safe-area-inset-bottom, 0));
  }
}

@media (max-width: 479px) {
  .em-cookie-banner__inner {
    padding: 14px 14px 16px;
  }

  .em-cookie-banner__title {
    font-size: 13px;
  }

  .em-cookie-banner__description {
    font-size: 12px;
  }

  .em-cookie-links--banner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    margin-left: 0;
  }

  .em-cookie-links--banner .em-cookie-link,
  .em-cookie-banner__description {
    display: inline;
  }

  .em-cookie-links--banner .em-cookie-link + .em-cookie-link::before {
    content: none;
  }

  .em-cookie-banner__actions {
    flex-direction: column;
  }

  .em-cookie-banner__actions .em-cookie-btn {
    width: 100%;
    flex: 1 1 100%;
  }

  .em-cookie-panel {
    max-height: 92dvh;
  }

  .em-cookie-panel__handle {
    margin-top: 10px;
  }

  .em-cookie-panel__header,
  .em-cookie-panel__body,
  .em-cookie-panel__footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .em-cookie-panel__title {
    font-size: 17px;
  }

  .em-cookie-panel__description {
    font-size: 12px;
  }

  .em-cookie-panel__close {
    width: 30px;
    height: 30px;
  }

  .em-cookie-category__summary {
    font-size: 12px;
  }

  .em-cookie-category__controls {
    padding-left: 0;
  }

  .em-cookie-category__detail {
    font-size: 12.5px;
  }

  .em-cookie-category__examples {
    gap: 5px;
  }

  .em-cookie-category__example {
    font-size: 10.5px;
    padding: 2px 8px;
  }
}
