#snami-cc,
.snami-cc-place,
.snami-cc-formnote,
.snami-cc-noscript {
  --snami-navy: #2b3661;
  --snami-gold: #cbb26a;
  --snami-text: #24304f;
  --snami-muted: #4d5872;
  --snami-bg: #f7f8fb;
  --snami-line: #d5dbe8;
  color: var(--snami-text);
  font-family: Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
}

#snami-cc *,
#snami-cc *::before,
#snami-cc *::after,
.snami-cc-place *,
.snami-cc-place *::before,
.snami-cc-place *::after {
  box-sizing: border-box;
}

#snami-cc[hidden],
#snami-cc [hidden] {
  display: none !important;
}

#cookie-notice {
  display: none !important;
}

#snami-cc {
  position: static;
}

.snami-cc__banner,
.snami-cc__modal,
.snami-cc__fab {
  font-family: Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
}

.snami-cc__banner {
  position: fixed;
  z-index: 2147483000;
  left: 12px;
  right: 12px;
  bottom: 12px;
  max-width: 760px;
  max-height: calc(100vh - 16px);
  overflow: auto;
  margin: 0 auto;
  background: #fff;
  color: var(--snami-text);
  border: 1px solid var(--snami-line);
  border-top: 4px solid var(--snami-gold);
  box-shadow: 0 12px 40px rgba(43, 54, 97, 0.18);
}

.snami-cc__card,
.snami-cc__dialog {
  padding: 18px 18px 16px;
}

.snami-cc__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

#snami-cc h2,
#snami-cc h3,
#snami-cc h4 {
  font-family: inherit;
  color: var(--snami-navy);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
  padding: 0;
  line-height: 1.3;
}

#snami-cc h2 {
  font-size: 1.25rem;
}

#snami-cc h3 {
  font-size: 1.05rem;
}

#snami-cc h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

#snami-cc p {
  margin: 0 0 10px;
  padding: 0;
  color: var(--snami-text);
}

.snami-cc__intro {
  font-size: 1rem;
}

.snami-cc__lang {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.snami-cc__lang-label {
  font-size: 0.95rem;
  color: var(--snami-muted);
}

.snami-cc__lang-btn,
.snami-cc__btn,
.snami-cc__close,
.snami-cc-place__btn,
.snami-cc__switch {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 2px;
}

#snami-cc button::before,
#snami-cc button::after,
.snami-cc-place button::before,
.snami-cc-place button::after {
  content: none !important;
  display: none !important;
}

.snami-cc__lang-btn {
  min-height: 44px;
  padding: 8px 12px;
  background: #fff;
  color: var(--snami-navy);
  border: 1px solid var(--snami-navy);
}

.snami-cc__lang-btn[aria-checked="true"] {
  background: var(--snami-navy);
  color: #fff;
}

.snami-cc__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 12px 0;
}

.snami-cc__btn,
.snami-cc__close,
.snami-cc-place__btn {
  min-height: 48px;
  padding: 10px 14px;
  background: var(--snami-navy);
  color: #fff;
  border: 1px solid var(--snami-navy);
  text-align: center;
}

.snami-cc__close {
  min-height: 44px;
  background: #fff;
  color: var(--snami-navy);
  flex: 0 0 auto;
}

#snami-cc a {
  color: var(--snami-navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.snami-cc__docnote {
  color: var(--snami-muted);
  font-size: 0.95rem;
}

.snami-cc__modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
}

.snami-cc__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 48, 79, 0.45);
}

.snami-cc__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  margin: 12px auto;
  background: #fff;
  border-top: 4px solid var(--snami-gold);
  box-shadow: 0 16px 50px rgba(43, 54, 97, 0.25);
}

.snami-cc__cat {
  border-top: 1px solid var(--snami-line);
  padding: 14px 0;
}

.snami-cc__cat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.snami-cc__badge {
  display: inline-block;
  white-space: nowrap;
  background: var(--snami-gold);
  color: var(--snami-navy);
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 2px;
}

.snami-cc__switch-row {
  margin-bottom: 8px;
}

.snami-cc__switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 140px;
  padding: 6px 10px;
  background: var(--snami-bg);
  color: var(--snami-navy);
  border: 1px solid var(--snami-line);
}

.snami-cc__knob {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #c5c9d4;
  position: relative;
  flex: 0 0 auto;
}

.snami-cc__knob::after {
  content: "" !important;
  display: block !important;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 3px;
}

.snami-cc__switch.is-on .snami-cc__knob {
  background: var(--snami-navy);
}

.snami-cc__switch.is-on .snami-cc__knob::after {
  left: 23px;
}

.snami-cc__switch-text {
  white-space: nowrap;
  font-weight: 700;
}

.snami-cc__field p {
  margin-bottom: 8px;
}

.snami-cc__fab {
  position: fixed;
  z-index: 2147482999;
  left: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--snami-navy);
  background: #fff;
  box-shadow: 0 0 0 2px var(--snami-gold), 0 8px 20px rgba(43, 54, 97, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.snami-cc__fab img {
  width: 36px;
  height: 36px;
  display: block;
}

.snami-cc__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#snami-cc :focus {
  outline: none;
}

#snami-cc :focus-visible,
.snami-cc-place button:focus-visible {
  outline: 3px solid var(--snami-navy);
  outline-offset: 2px;
}

.snami-cc-place {
  margin: 16px 0;
  padding: 16px;
  background: var(--snami-bg);
  border: 1px solid var(--snami-line);
  border-top: 4px solid var(--snami-gold);
  color: var(--snami-text);
}

.snami-cc-place__title {
  font-weight: 700;
  color: var(--snami-navy);
  margin: 0 0 8px;
}

.snami-cc-formnote,
.snami-cc-noscript {
  margin: 0 0 12px;
  padding: 12px;
  background: var(--snami-bg);
  border: 1px solid var(--snami-line);
  color: var(--snami-text);
}

.snami-cc-noscript[hidden] {
  display: none !important;
}

@media (min-width: 860px) {
  .snami-cc__actions {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  #snami-cc *,
  .snami-cc-place * {
    transition: none !important;
    animation: none !important;
  }
}
