.dsgvo-gm-container {
  position: relative;
  width: 100%;
  height: auto;
}

.dsgvo-gm-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0
}

.dsgvo-gm-overlay {

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;


  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  box-sizing: border-box;
  padding: 1rem;
  text-align: center;
}

.dsgvo-gm-load-btn {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

.dsgvo-gm-privacy-info {
  line-height: 1.4;
  margin: 0;
  max-width: 90%;
  text-align: center;
}

.dsgvo-gm-message {
  font-size: 0.9em;
  line-height: 1.4;
  margin: 0;
  max-width: 90%;
  text-align: center;
  white-space: pre-line;
}

.dsgvo-gm-privacy-info a {
  color: inherit;
}

.dsgvo-gm-remember-choice {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 0.85em;
  gap: 0.4rem;
  justify-content: center;
  line-height: 1.3;
  margin: 0;
  max-width: 90%;
  text-align: center;
}

.dsgvo-gm-remember-choice input {
  flex: 0 0 auto;
  margin: 0;
}

.dsgvo-gm-overlay.dsgvo-gm-light {
  background: rgba(211, 211, 211, 0.8);
}

.dsgvo-gm-overlay.dsgvo-gm-dark {
  background: rgba(0, 0, 0, 0.8);
}

.dsgvo-gm-overlay.dsgvo-gm-custom {
  background: rgba(255, 255, 255, 0.8);
}

.dsgvo-gm-load-btn.dsgvo-gm-light {
  background: #191919;
  color: #ffffff;
}

.dsgvo-gm-load-btn.dsgvo-gm-dark {
  background: #ffffff;
  color: #191919;
}

.dsgvo-gm-load-btn.dsgvo-gm-custom {
  background: #0073aa;
  color: #ffffff;
}

.dsgvo-gm-privacy-info.dsgvo-gm-light {
  color: #191919;
}

.dsgvo-gm-message.dsgvo-gm-light {
  color: #191919;
}

.dsgvo-gm-remember-choice.dsgvo-gm-light {
  color: #191919;
}

.dsgvo-gm-privacy-info.dsgvo-gm-dark {
  color: #ffffff;
}

.dsgvo-gm-message.dsgvo-gm-dark {
  color: #ffffff;
}

.dsgvo-gm-remember-choice.dsgvo-gm-dark {
  color: #ffffff;
}

.dsgvo-gm-privacy-info.dsgvo-gm-custom {
  color: #666666;
}

.dsgvo-gm-message.dsgvo-gm-custom {
  color: #666666;
}

.dsgvo-gm-remember-choice.dsgvo-gm-custom {
  color: #666666;
}

#dsgvo_gm_custom_colors.hidden {
  display: none !important;
}
#dsgvo_gm_custom_colors.visible {
  display: block !important;
}

.dsgvo-full-width {
  width: 100% !important;
}

.dsgvo-width-100 {
  width: 100px !important;
}

.dsgvo-height-100px {
  height: 100px !important;
}

.dsgvo-margin-right {
  margin-right: 1em !important;
}

/* Withdrawal controls are opt-in; existing shortcodes retain their original layout. */
.dsgvo-gm-overlay[data-show-reset="1"].dsgvo-gm-loaded {
  padding: 0;
  overflow: hidden;
}
.dsgvo-gm-overlay[data-show-reset="1"].dsgvo-gm-loaded .dsgvo-gm-frame {
  height: calc(100% - 64px);
}
.dsgvo-gm-controls {
  position: absolute;
  inset: auto 0 0;
  height: 64px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: #fff;
  color: #191919;
}
.dsgvo-gm-revoke-btn {
  min-height: 44px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  line-height: 1.25;
  white-space: normal;
  cursor: pointer;
}
.dsgvo-gm-dark .dsgvo-gm-controls {
  background: #191919;
  color: #fff;
}
.dsgvo-gm-revoke-btn:focus-visible {
  outline: 3px solid #191919;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff;
}
.dsgvo-gm-error {
  color: inherit;
  font-size: 0.9em;
  line-height: 1.4;
}

/* Explicit modern design only: existing map labels keep their original styling. */
.dsgvo-gm-remember-choice.dsgvo-gm-remember-choice--modern {
  box-sizing: border-box;
  min-height: 48px;
  padding: 10px 14px;
  gap: 12px;
  justify-content: flex-start;
  border: 1px solid rgba(127, 127, 127, 0.4);
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.08);
  line-height: 1.4;
  text-align: left;
}
.dsgvo-gm-remember-choice--modern span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.dsgvo-gm-remember-choice--modern .dsgvo-gm-remember-checkbox {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  display: grid;
  place-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 2px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.dsgvo-gm-remember-choice--modern .dsgvo-gm-remember-checkbox::before {
  content: "";
  box-sizing: border-box;
  width: 11px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(-45deg);
  visibility: hidden;
}
.dsgvo-gm-remember-choice--modern .dsgvo-gm-remember-checkbox:checked::before {
  visibility: visible;
}
.dsgvo-gm-remember-choice--modern .dsgvo-gm-remember-checkbox:checked {
  background: rgba(127, 127, 127, 0.16);
}
.dsgvo-gm-remember-choice--modern:focus-within {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Standalone shortcode: stays outside the map and takes none of its configured height. */
.dsgvo-gm-reset {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.dsgvo-gm-reset-btn {
  box-sizing: border-box;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.875em;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}
.dsgvo-gm-reset-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.dsgvo-gm-reset-status {
  font-size: 0.85em;
  line-height: 1.4;
}
@media (forced-colors: active) {
  .dsgvo-gm-remember-choice--modern .dsgvo-gm-remember-checkbox {
    -webkit-appearance: auto;
    appearance: auto;
  }
  .dsgvo-gm-remember-choice--modern .dsgvo-gm-remember-checkbox::before {
    content: none;
  }
}
