/* Nur der eigene CCM19-Hauptdialog. hidden/ccm-show/opacity/visibility bleiben nativ. */
.ccm-root #ccm-widget .ccm-modal-inner {
  position: fixed;
  top: 50%; left: 50%; right: auto; bottom: auto;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 32px));
  max-width: 720px;
  height: auto;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  align-items: stretch;
  border: 1px solid #dedede;
  border-top: 4px solid #ec2526;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgb(0 0 0 / 22%);
  overflow: hidden;
  transition: none;
}
.ccm-root #ccm-widget .ccm-modal-inner > * { width: 100%; max-width: none; }
.ccm-root #ccm-widget .ccm-modal--header {
  position: relative;
  flex: 0 0 auto;
  min-height: 112px;
  padding: 20px 24px 12px;
}
.ccm-root #ccm-widget .ccm-widget--logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 128px;
  max-width: 40%;
  min-height: 60px;
  margin: 0;
  padding: 0;
}
.ccm-root #ccm-widget .ccm-widget--logo img {
  width: 128px; max-width: 100%; height: 60px;
  object-fit: contain;
}
.ccm-root #ccm-widget button.cnr-ccm-necessary {
  position: absolute;
  top: 18px; right: 56px;
  width: auto; min-width: 0; min-height: 36px;
  margin: 0; padding: 8px 10px;
  font-size: 13px; line-height: 1.3;
  text-transform: none; text-shadow: none;
}
.ccm-root #ccm-widget .ccm-widget--language-switch {
  top: 68px; right: 52px; left: auto;
  inset-inline-start: auto; inset-inline-end: 52px;
}
.ccm-root #ccm-widget .ccm-dismiss-button { top: 20px; right: 14px; }
.ccm-root #ccm-widget .ccm-modal--body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 24px 20px;
  overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain;
}
.ccm-root #ccm-widget .ccm-widget--text { flex: 1 1 auto; min-height: 0; margin: 0; padding: 0; }
.ccm-root #ccm-widget .ccm-widget--text::after { content: none; }
.ccm-root #ccm-widget .ccm-inner-overflow { height: auto; max-height: none; padding: 0; overflow: visible; }
.ccm-root #ccm-widget .ccm-widget--title { margin: 0 0 12px; font-size: 22px; line-height: 1.25; }
.ccm-root #ccm-widget .ccm-widget--introduction { overflow-wrap: anywhere; }
.ccm-root #ccm-widget .ccm-widget--buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  flex: 0 0 auto;
  margin: 24px 0 0;
}
.ccm-root #ccm-widget .ccm-widget--buttons > .button {
  width: 100%; max-width: none; min-width: 0; min-height: 48px;
  margin: 0; padding: 12px 16px;
  font-size: 14px; line-height: 1.3;
  text-align: center; text-transform: none;
}
.ccm-root #ccm-widget .ccm-modal--footer {
  flex: 0 0 auto;
  flex-flow: row wrap;
  gap: 8px;
  padding: 12px 24px 16px;
}
.ccm-root #ccm-widget .button:focus-visible,
.ccm-root #ccm-widget button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 480px) {
  .ccm-root #ccm-widget .ccm-modal-inner {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }
  .ccm-root #ccm-widget .ccm-modal--header { min-height: 108px; padding: 16px 16px 12px; }
  .ccm-root #ccm-widget .ccm-widget--logo img { width: 106px; height: 52px; }
  .ccm-root #ccm-widget button.cnr-ccm-necessary { top: 14px; right: 44px; font-size: 12px; }
  .ccm-root #ccm-widget .ccm-dismiss-button { top: 16px; right: 12px; }
  .ccm-root #ccm-widget .ccm-widget--language-switch { top: 60px; right: 44px; inset-inline-end: 44px; }
  .ccm-root #ccm-widget .ccm-modal--body { padding: 0 16px 16px; }
  .ccm-root #ccm-widget .ccm-widget--buttons { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 20px; }
  .ccm-root #ccm-widget .ccm-modal--footer { padding: 12px 16px 16px; }
}
@media (max-height: 480px) {
  .ccm-root #ccm-widget .ccm-modal--header { min-height: 96px; padding-top: 12px; }
  .ccm-root #ccm-widget .ccm-widget--logo img { height: 44px; }
}
