:root {
  --swd-sidm-notice-border: #d4a10d;
  --swd-sidm-notice-bg: #fff8e5;
  --swd-sidm-toast-border: #1c6b30;
  --swd-sidm-toast-bg: #b4d8be;
  --swd-sidm-backdrop-color: #000;
  --swd-sidm-backdrop-opacity: 0.55;
  --swd-sidm-backdrop-background: rgba(0, 0, 0, 0.55);
  --swd-sidm-backdrop-blur: 0px;
}

.swd-sidm-native-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000001;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 300ms ease,
    visibility 300ms ease;
}

.swd-sidm-native-overlay.is-open {
  opacity: 1;
  display: block !important;
  visibility: visible;
  pointer-events: auto;
}

.swd-sidm-native-overlay[data-swd-sidm-dismiss-blocked='1'] .swd-sidm-native-overlay__dialog {
  outline-color: transparent !important;
}

.swd-sidm-native-overlay__backdrop {
  position: fixed;
  inset: 0;
  background: var(--swd-sidm-backdrop-background, rgba(0, 0, 0, 0.55));
  opacity: 0;
  -webkit-backdrop-filter: blur(var(--swd-sidm-backdrop-blur, 0px));
  backdrop-filter: blur(var(--swd-sidm-backdrop-blur, 0px));
  transition: opacity 300ms ease;
}

.swd-sidm-native-overlay.is-open .swd-sidm-native-overlay__backdrop {
  opacity: 1;
}

.swd-sidm-native-overlay__dialog {
  position: relative;
  min-height: 100%;
  box-sizing: border-box;
  overflow: auto;
  margin-left: auto;
  margin-right: auto;
}

.swd-sidm-native-overlay.swd-sidm-suppress-initial-focus .swd-sidm-native-overlay__dialog:focus,
.swd-sidm-native-overlay.swd-sidm-suppress-initial-focus .swd-sidm-native-overlay__dialog:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

.has-swd-sidm-native-overlay-open {
  overflow: hidden;
}

.wp-block-swd-sidm-overlay-close {
  position: static;
}
.swd-sidm-native-close__button {
  vertical-align: middle;
  cursor: pointer;
  color: currentColor;
  background: inherit;
  border: none;
  margin: 0;
  padding: 0;
  text-transform: inherit;
}

.swd-sidm-native-close__button svg {
  fill: currentColor;
  pointer-events: none;
  display: block;
  width: 24px;
  height: 24px;
}
.swd-sidm-native-trigger {
  display: inline-flex !important;
}
.swd-sidm-native-trigger__button {
  appearance: none;
  border: 0;
  background: inherit;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.wp-block-swd-sidm-safety-review-notice.swd-sidm-notice,
.wp-block-swd-sidm-safety-consent-button.swd-sidm-consent {
  width: 100%;
  box-sizing: border-box;
}

.swd-sidm-consent .wp-element-button[aria-disabled='true'],
.swd-sidm-consent .wp-block-button__link[aria-disabled='true'] {
  opacity: 0.6;
  cursor: not-allowed;
}

.wp-block-buttons.swd-sidm-page-buttons-disabled {
  opacity: 0.5;
}

[data-swd-sidm-dismiss-blocked='1'] {
  overscroll-behavior: contain;
}

.swd-sidm-inline-toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  max-height: 0;
  margin-top: 0;
  padding: 0 12px;
  overflow: clip;
  font-size: 14px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(6px);
  transition:
    max-height 260ms ease,
    margin-top 260ms ease,
    padding-top 260ms ease,
    padding-bottom 260ms ease,
    border-width 260ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

:where(.swd-sidm-inline-toast) {
  background: #eef8f1;
  color: #164626;
  border: 0 solid #b4d8be;
  border-radius: 8px;
}

.swd-sidm-toast-align-left {
  margin-left: 0;
  margin-right: auto;
}

.swd-sidm-toast-align-center {
  margin-left: auto;
  margin-right: auto;
}

.swd-sidm-toast-align-right {
  margin-left: auto;
  margin-right: 0;
}

.swd-sidm-inline-toast.is-visible {
  max-height: var(--swd-sidm-toast-height, 120px);
  margin-top: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-width: 1px;
  opacity: 1;
  transform: translateY(0);
}

.swd-sidm-inline-toast.is-measuring {
  max-height: none;
  margin-top: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-width: 1px;
  visibility: hidden;
}

.swd-sidm-inline-toast__label {
  flex: 1;
}

.swd-sidm-inline-toast__spinner {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.swd-sidm-inline-toast__spinner svg {
  width: 20px;
  height: 20px;
  transform: rotate(-90deg);
}

.swd-sidm-inline-toast__track {
  fill: none;
  stroke: #c8e4cf;
  stroke-width: 2;
}

.swd-sidm-inline-toast__progress {
  fill: none;
  stroke: var(--swd-sidm-toast-border, #1c6b30);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 50.265;
  stroke-dashoffset: 0;
  animation: swd-sidm-countdown var(--swd-sidm-close-delay-ms, 3000ms) linear forwards;
}

@keyframes swd-sidm-countdown {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 50.265;
  }
}

/*
 * While the countdown is running, keep the overlay forcibly visible so
 * outside handlers cannot close it before the toast finishes.
 */
.swd-sidm-countdown,
.swd-sidm-countdown[hidden] {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.swd-sidm-native-overlay .wp-block-group.is-content-justification-space-between {
  /* align-items: space-between !important; */
  /* justify-content: space-between !important; */
}
