:root {
  --mlcc-red: #bc181c;
  --mlcc-beige: #e7e5df;
  --mlcc-blue: #013140;
  --mlcc-ink: #111111;
  --mlcc-white: #ffffff;
}

.mlcc[hidden],
.mlcc [hidden],
.mlcc-manage[hidden] {
  display: none !important;
}

.mlcc {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  font-family: inherit;
}

.mlcc__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 49, 64, 0.48);
  backdrop-filter: blur(2px);
}

.mlcc__box {
  position: relative;
  width: min(100%, 980px);
  max-height: min(86vh, 760px);
  overflow: auto;
  box-sizing: border-box;
  background: var(--mlcc-beige);
  color: var(--mlcc-blue);
  border-top: 7px solid var(--mlcc-red);
  border-radius: 3px;
  padding: 28px 30px 26px;
  box-shadow: 0 18px 55px rgba(1, 49, 64, 0.28);
}

.mlcc__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.mlcc__header h2 {
  margin: 0;
  color: var(--mlcc-blue);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.mlcc__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mlcc-blue);
  font: inherit;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 0 3px;
}

.mlcc__text {
  max-width: 840px;
  margin: 18px 0 24px;
  color: var(--mlcc-ink);
  font-size: 16px;
  line-height: 1.55;
}

.mlcc__text a {
  color: var(--mlcc-red);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.mlcc__preferences {
  border-top: 1px solid rgba(1, 49, 64, 0.25);
  margin: 4px 0 22px;
}

.mlcc__category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(1, 49, 64, 0.18);
}

.mlcc__category strong,
.mlcc__category span {
  display: block;
}

.mlcc__category strong {
  color: var(--mlcc-blue);
  font-size: 17px;
}

.mlcc__category > div > span {
  margin-top: 3px;
  color: var(--mlcc-ink);
  font-size: 14px;
  line-height: 1.4;
}

.mlcc__switch {
  display: grid;
  grid-template-columns: 44px auto;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.mlcc__switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mlcc__switch > span {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 20px;
  background: #a8aaa6;
  transition: background .2s ease;
}

.mlcc__switch > span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mlcc-white);
  transition: transform .2s ease;
}

.mlcc__switch input:checked + span {
  background: var(--mlcc-red);
}

.mlcc__switch input:checked + span::after {
  transform: translateX(20px);
}

.mlcc__switch em {
  color: var(--mlcc-blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.mlcc__switch--locked {
  cursor: default;
}

.mlcc__switch--locked > span {
  background: var(--mlcc-blue) !important;
}

.mlcc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.mlcc__button,
.mlcc-inline-open,
.mlcc-media__placeholder button,
.mlcc-manage {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 0;
  font: inherit;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.mlcc__button {
  min-height: 48px;
  padding: 13px 20px;
}

.mlcc__button:hover,
.mlcc-inline-open:hover,
.mlcc-media__placeholder button:hover,
.mlcc-manage:hover {
  transform: translateY(-1px);
}

.mlcc__button--primary {
  background: var(--mlcc-red);
  color: var(--mlcc-white);
  border-color: var(--mlcc-red);
}

.mlcc__button--secondary {
  background: var(--mlcc-blue);
  color: var(--mlcc-white);
  border-color: var(--mlcc-blue);
}

.mlcc__button--outline {
  background: transparent;
  color: var(--mlcc-blue);
  border-color: var(--mlcc-blue);
}

.mlcc__button:focus-visible,
.mlcc__close:focus-visible,
.mlcc-manage:focus-visible,
.mlcc-inline-open:focus-visible,
.mlcc-media__placeholder button:focus-visible {
  outline: 3px solid var(--mlcc-red);
  outline-offset: 3px;
}

.mlcc-manage {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 99990;
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--mlcc-beige);
  color: var(--mlcc-blue);
  border-color: var(--mlcc-blue);
  box-shadow: 0 8px 24px rgba(1, 49, 64, 0.16);
  font-size: 12px;
}

.mlcc-manage__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.mlcc-manage__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.mlcc-manage:hover {
  transform: translateY(-1px);
}

.mlcc-screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mlcc-inline-open {
  padding: 0;
  background: transparent;
  color: inherit;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mlcc-media {
  position: relative;
  width: 100%;
  min-height: 260px;
  background: var(--mlcc-blue);
  overflow: hidden;
}

.mlcc-media iframe {
  width: 100%;
  min-height: inherit;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

.mlcc-media__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  padding: 24px;
  box-sizing: border-box;
  background: var(--mlcc-blue);
  color: var(--mlcc-white);
}

.mlcc-media__placeholder strong {
  font-size: 22px;
}

.mlcc-media__placeholder span {
  font-size: 14px;
  opacity: .9;
}

.mlcc-media__placeholder button {
  margin-top: 5px;
  padding: 10px 15px;
  background: var(--mlcc-red);
  color: var(--mlcc-white);
  border-color: var(--mlcc-red);
}

.mlcc-media.is-allowed .mlcc-media__placeholder {
  display: none;
}

body.mlcc-lock {
  overflow: hidden;
}

@media (max-width: 700px) {
  .mlcc {
    padding: 0;
    align-items: flex-end;
  }

  .mlcc__box {
    width: 100%;
    max-height: 88vh;
    border-radius: 0;
    border-top-width: 6px;
    padding: 22px 18px 18px;
  }

  .mlcc__header h2 {
    font-size: 28px;
  }

  .mlcc__text {
    margin: 14px 0 18px;
    font-size: 14px;
  }

  .mlcc__category {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mlcc__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mlcc__button {
    width: 100%;
  }

  .mlcc-manage {
    left: 8px;
    bottom: 8px;
    font-size: 11px;
  }
}

.mlcc-media__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
}

.mlcc-media__settings {
  background: transparent !important;
  border-color: var(--mlcc-white) !important;
  color: var(--mlcc-white) !important;
}

/* v1.0.4: live YouTube activation must win over theme/embed styles. */
.mlcc-media.is-allowed .mlcc-media__placeholder,
.mlcc-media__placeholder[hidden] {
  display: none !important;
}

.mlcc-media.is-allowed iframe {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}


/* v1.1.1 – only the floating cookie-settings control is configurable.
   The buttons inside the consent dialog intentionally keep the original styling. */

.mlcc-manage--text {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 44px;
  padding: 9px 13px;
  border-radius: 8px;
  background: var(--mlcc-beige);
  color: var(--mlcc-blue);
  border: 2px solid var(--mlcc-blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.mlcc-manage--text:hover {
  background: var(--mlcc-blue);
  color: var(--mlcc-white);
}

.mlcc-manage--cookie {
  background: var(--mlcc-beige);
  color: var(--mlcc-blue);
  border: 2px solid var(--mlcc-blue);
}

.mlcc-manage--cookie:hover {
  background: #f0eee8;
}

.mlcc-manage--cookie-gear {
  position: fixed;
  background: var(--mlcc-blue);
  color: var(--mlcc-beige);
  border: 2px solid var(--mlcc-blue);
}

.mlcc-manage--cookie-gear:hover {
  background: #0a4657;
}

.mlcc-manage--cookie-gear .mlcc-manage__badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--mlcc-red);
  color: var(--mlcc-white);
  border: 2px solid var(--mlcc-beige);
  box-shadow: 0 4px 10px rgba(1, 49, 64, 0.2);
}

.mlcc-manage--cookie-gear .mlcc-manage__badge svg {
  width: 11px;
  height: 11px;
  display: block;
}

.mlcc-manage--outline {
  background: rgba(231, 229, 223, 0.84);
  color: var(--mlcc-blue);
  border: 2px solid rgba(1, 49, 64, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mlcc-manage--outline:hover {
  background: rgba(231, 229, 223, 0.97);
  color: var(--mlcc-red);
  border-color: var(--mlcc-red);
}

.mlcc-manage__text {
  display: inline-block;
}

@media (max-width: 700px) {
  .mlcc-manage--text {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 42px;
    padding: 8px 11px;
  }
}
