/* Kopie von sources/site/styles/cookie-manager.css für die eigenständigen Adventskalender-Seiten,
 * die das Shop-CSS nicht laden. Bei Änderungen am Banner-Design hier mitziehen.
 * Variablen aus sources/site/styles/shoelace/colors.css. */
:root {
  --app-primary-color: #ec6607;
  --app-sand-light: #fff7e9;
}

html.no-scroll {
  overflow-y: hidden;
}

.cookie-popup {
  opacity: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  /*transition: all 0.3s ease;*/
  pointer-events: none;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: .9em;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 99999;
}

.cookie-popup.is-active {
  opacity: 1;
  pointer-events: auto;
}

.cookie-popup-box {
  background-color: var(--app-sand-light);
  width: 100%;
  max-width: 800px;
  padding: 14px 14px;
  border-radius: 20px;
}

.cookie-popup-box.is-hidden {
  display: none;
}

.cookie-popup-header {
  padding: 14px 16px 8px;
  box-sizing: border-box;
  position: relative;
}

.cookie-popup-headline {
  font-size: 1.2em;
  color: var(--app-primary-color);
}

.cookie-popup-subline {
  font-size: 1em;
  margin-bottom: 10px;
}

.cookie-popup-content {
  display: flex;
  flex-direction: column;
  /*background-color: #fff;*/
  box-sizing: border-box;
  width: 100%;
  padding: 0 16px;
  overflow-y: auto;
  max-height: 60vh;
  margin-bottom: 15px;
}

.cookie-popup-content p {
  line-height: 1.35;
}

.cookie-popup-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  padding: 14px 4px;
  box-sizing: border-box;
}

.cookie-input-group {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.cookie-input-group p {
  margin-top: 0;
}

.cookie-input-group .switch {
  margin-right: 15px;
}

.cookie-popup-overview .cookie-input-group + .cookie-input-group {
  border-top: 1px solid #e4e4e4;
  margin-top: 8px;
  padding-top: 8px;
}

.cookie-popup-overview .cookie-input-group {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-popup-overview .cookie-input-group p {
  margin: 0;
  flex: 1;
}

.cookie-input-group.is-locked {
  opacity: 0.62;
}

.cookie-input-group.is-locked .switch-label {
  cursor: not-allowed;
}

.cookie-row-info {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 1px solid #7f7f7f;
  border-radius: 50%;
  background: transparent;
  color: #444;
  font-size: 0.9em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  display: none;
}

.cookie-popup-meta {
  border-top: 1px solid #e4e4e4;
  margin-top: 6px;
  padding-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.cookie-popup-meta a:first-child {
  justify-self: start;
}

.cookie-popup-meta .js-cookie-clear-all {
  justify-self: center;
}

.cookie-popup-meta a:last-of-type {
  justify-self: end;
}

.cookie-banner-close {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.cookie-banner-close:focus-visible {
  outline: 2px solid #666;
  outline-offset: 4px;
}

.cookie-banner-close-line {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 15px;
  height: 2px;
  background: #666;
  transform-origin: center;
}

.cookie-banner-close-line:first-child {
  transform: rotate(45deg);
}

.cookie-banner-close-line:last-child {
  transform: rotate(-45deg);
}

.btncta {
  letter-spacing: 0.02em;
  margin: 5px 10px 0 5px;
  font-size: 1em;
  padding: 8px 12px 10px 12px;
  background-color: var(--app-primary-color);
  border-radius: 999px;
  white-space: nowrap;
  display: inline-block;
  text-align: center;
  color: #fff;
  min-width: 90px;
  box-sizing: border-box;
  text-decoration: none;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

.btncta:hover {
  background-color: var(--app-primary-color);
}

.footer-meta-button {
  appearance: none;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.footer-meta-button:hover {
  text-decoration: underline;
}

.footer-meta-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.switch {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0.15rem 0;
  border: 0;
  background: transparent;
}

.switch-input {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  opacity: 0;
}

.switch-label {
  position: relative;
  display: inline-flex;
  width: 2.75rem;
  height: 1.55rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #c7cbd1;
  background: #d4d8de;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.switch-label::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #c7cbd1;
  transition: transform 0.2s ease;
}

.switch-input:checked + .switch-label {
  background: var(--app-primary-color);
  border-color: color-mix(in srgb, var(--app-primary-color) 82%, #000 18%);
}

.switch-input:checked + .switch-label::after {
  left: 1px;
  transform: translateX(1.18rem);
}

.switch-input:focus-visible + .switch-label {
  outline: 2px solid rgba(178, 136, 72, 0.65);
  outline-offset: 2px;
}

.videoframe {
  position: relative;
}

.videoframe::after {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}

.videoiframe {
  width: 100%;
  height: 100%;
  position: absolute;
  display: block;
  inset: 0;
}

.video-nocookie {
  display: flex;
  position: absolute;
  inset: 0;
  background-color: #eee;
  z-index: 8;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-size: 0.9em;
  text-align: center;
  overflow: auto;
}

.video-nocookie p {
  font-size: 0.9em;
  color: #222;
}

.video-nocookie p a {
  text-decoration: underline !important;
}

.video-nocookie.has-cookie {
  display: none;
}

.video-nocookie .btn_novideo {
  display: inline-block;
  cursor: pointer;
  margin-top: 15px;
  margin-bottom: 15px;
}

@media (max-width: 767px) {
  .cookie-popup {
    padding: 16px;
    align-items: flex-end;
  }

  .cookie-popup-box {
    max-width: 100%;
  }
}
