.dpr-icon-picker,
.dp-icon-picker {
  position: relative;
}

.dpr-icon-picker-trigger,
.dp-icon-picker-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #cbd7e8;
  border-radius: 7px;
  color: #15284f;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 42px;
  padding: 6px 9px;
  text-align: left;
  width: 100%;
}

.dpr-icon-picker-trigger:hover,
.dpr-icon-picker-trigger[aria-expanded="true"],
.dp-icon-picker-trigger:hover,
.dp-icon-picker-trigger[aria-expanded="true"] {
  border-color: #0756d9;
  box-shadow: 0 0 0 2px #dbe9ff;
}

.dpr-icon-picker-trigger span,
.dp-icon-picker-trigger span {
  display: grid;
  min-width: 0;
}

.dpr-icon-picker-trigger small,
.dp-icon-picker-trigger small {
  color: #687894;
  font-size: 9px;
  font-weight: 500;
}

.dpr-icon-picker-trigger b,
.dp-icon-picker-trigger b {
  font-size: 11px;
}

.dpr-icon-picker-trigger i,
.dp-icon-picker-trigger i {
  font-size: 18px;
  font-style: normal;
}

.dpr-icon-popover,
.dp-icon-popover {
  background: #fff;
  border: 1px solid #d7e1ef;
  border-radius: 9px;
  box-shadow: 0 14px 34px #1024532b;
  left: 0;
  margin-top: 5px;
  max-height: 280px;
  min-width: min(520px, calc(100vw - 72px));
  overflow: auto;
  padding: 8px;
  position: absolute;
  top: 100%;
  width: max-content;
  z-index: 120;
}

.dpr-icon-popover[hidden],
.dp-icon-popover[hidden] {
  display: none;
}

.dpr-icon-popover .dpr-icon-gallery,
.dp-icon-popover .dp-icon-gallery {
  grid-template-columns: repeat(5, minmax(76px, 1fr));
}

.dpr-icon-gallery button:hover,
.dp-icon-gallery button:hover {
  background: #f2f7ff;
  border-color: #75a7eb;
}

.dpr-date-pair,
.dpr-range-pair {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dpr-date-pair > label,
.dpr-range-pair > label {
  color: #425675;
  display: grid;
  font-size: 11px;
  font-weight: 650;
  gap: 4px;
}

.dpr-date-pair small {
  color: #71809a;
  font-weight: 500;
}

.dpr-element-editor > header small {
  color: #687894;
  font-size: 12px;
}

.dpr-element-editor-backdrop {
  align-items: center;
  background: #061b45a8;
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 24px;
  position: fixed;
  z-index: 1000;
}

.dpr-element-editor-backdrop .dpr-element-editor {
  display: grid;
  font-size: 14px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  margin: 0;
  max-height: calc(100vh - 48px);
  max-width: 980px;
  overflow: hidden;
  width: 100%;
}

.dpr-wizard-content .dpr-form-grid > label,
.dpr-element-editor .dpr-form-grid > label,
.dpr-date-pair > label,
.dpr-range-pair > label {
  font-size: 13px;
}

.dpr-wizard-content .dpr-form-grid input,
.dpr-wizard-content .dpr-form-grid select,
.dpr-wizard-content .dpr-form-grid textarea,
.dpr-element-editor .dpr-form-grid input,
.dpr-element-editor .dpr-form-grid select,
.dpr-element-editor .dpr-form-grid textarea {
  font-size: 14px;
  min-height: 40px;
}

.dpr-element-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 12px -12px 0;
  border-block: 1px solid #d7e1ef;
}

.dpr-element-steps button {
  align-items: center;
  background: #fff;
  border: 0;
  border-right: 1px solid #e5ebf4;
  color: #687894;
  display: flex;
  gap: 7px;
  min-height: 48px;
  padding: 8px;
  text-align: left;
}

.dpr-element-steps button:last-child {
  border-right: 0;
}

.dpr-element-steps button b {
  align-items: center;
  background: #e7edf6;
  border-radius: 50%;
  display: flex;
  flex: 0 0 auto;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.dpr-element-steps button.active {
  background: #eef6ff;
  color: #0756d9;
  font-weight: 800;
}

.dpr-element-steps button.active b,
.dpr-element-steps button.done b {
  background: #0756d9;
  color: #fff;
}

.dpr-element-steps button:disabled {
  cursor: default;
  opacity: .62;
}

.dpr-element-step {
  min-height: 285px;
  overflow: auto;
  padding: 18px 4px 8px;
}

.dpr-step-intro {
  margin-bottom: 16px;
}

.dpr-step-intro h4,
.dpr-step-intro p {
  margin: 0 0 4px;
}

.dpr-step-intro h4 {
  color: #102453;
  font-size: 18px;
}

.dpr-step-intro p,
.dpr-step-note {
  color: #60708f;
  font-size: 13px;
}

.dpr-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dpr-choice-grid label,
.dpr-step-note {
  background: #fff;
  border: 1px solid #d7e1ef;
  border-radius: 7px;
  padding: 10px 12px;
}

.dpr-check-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 4px 0;
}

.dpr-check-list label {
  align-items: center;
  display: inline-flex;
  font-size: 14px;
  gap: 8px;
}

.dpr-check-list input[type="checkbox"] {
  height: 18px;
  margin: 0;
  width: 18px;
}

.dpr-required-value {
  background: #e9f8ef;
  border-left: 4px solid #1d9a57;
  color: #176b40;
  font-size: 14px;
  font-weight: 750;
  margin-bottom: 16px;
  padding: 11px 13px;
}

.dpr-element-editor > footer span {
  flex: 1;
}

.dpr-element-summary {
  align-items: start;
  background: #fff;
  border: 1px solid #d7e1ef;
  border-radius: 9px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(180px, 1fr) minmax(300px, 1.3fr);
  padding: 16px;
}

.dpr-element-summary h4,
.dpr-element-summary p {
  margin: 0 0 5px;
}

.dpr-element-summary dl {
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 0;
}

.dpr-element-summary dt,
.dpr-element-summary dd {
  border-bottom: 1px solid #e7edf5;
  margin: 0;
  padding: 6px;
}

.dpr-element-summary dt {
  color: #687894;
}

.dpr-element-summary dd {
  font-weight: 700;
  text-align: right;
}

@media (max-width: 760px) {
  .dpr-icon-popover,
  .dp-icon-popover {
    left: auto;
    min-width: min(420px, calc(100vw - 48px));
    right: 0;
  }

  .dpr-icon-popover .dpr-icon-gallery,
  .dp-icon-popover .dp-icon-gallery {
    grid-template-columns: repeat(4, minmax(68px, 1fr));
  }

  .dpr-date-pair,
  .dpr-range-pair,
  .dpr-element-summary {
    grid-template-columns: 1fr;
  }

  .dpr-element-steps button span {
    display: none;
  }

  .dpr-element-editor-backdrop {
    padding: 0;
  }

  .dpr-element-editor-backdrop .dpr-element-editor {
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
  }
}

.dpr-alert-routing {
  align-items: end;
  margin-bottom: 12px;
}

.dpr-alert-routing .dpr-check-list {
  min-height: 40px;
}

.dpr-alert-channel-layout {
  background: #fff;
  border: 1px solid #cbd8e9;
  border-radius: 9px;
  overflow: hidden;
}

.dpr-alert-channel-tabs {
  background: #eef4fc;
  border-bottom: 1px solid #cbd8e9;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dpr-alert-channel-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #526580;
  display: flex;
  font: inherit;
  font-weight: 750;
  gap: 10px;
  justify-content: space-between;
  min-height: 46px;
  padding: 9px 14px 6px;
}

.dpr-alert-channel-tabs button + button {
  border-left: 1px solid #d7e1ef;
}

.dpr-alert-channel-tabs button.active {
  background: #fff;
  border-bottom-color: #0756d9;
  color: #0756d9;
}

.dpr-alert-channel-tabs small {
  background: #e8edf5;
  border-radius: 99px;
  color: #687894;
  font-size: 10px;
  padding: 3px 7px;
}

.dpr-alert-channel-tabs small.on {
  background: #e4f7eb;
  color: #177242;
}

.dpr-alert-channel-panel {
  gap: 10px;
  padding: 14px;
}

.dpr-alert-channel-panel textarea {
  max-height: 112px;
  min-height: 88px;
  resize: vertical;
}

.dpr-alert-channel-panel .dpr-template-help {
  margin: 0;
}

.dpr-channel-toggle {
  align-items: center;
  background: #f7faff;
  border: 1px solid #d7e1ef;
  border-radius: 7px;
  display: flex !important;
  gap: 10px !important;
  padding: 9px 11px;
}

.dpr-channel-toggle input {
  flex: 0 0 auto;
  height: 18px;
  min-height: 18px !important;
  width: 18px;
}

.dpr-channel-toggle span,
.dpr-channel-toggle small {
  display: block;
}

.dpr-channel-toggle small {
  color: #687894;
  font-weight: 500;
  margin-top: 2px;
}

@media (max-width: 620px) {
  .dpr-alert-channel-tabs button {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

/* Keep the complete action area above the scrollable wizard body. */
.dpr-element-editor-backdrop .dpr-element-editor > footer {
  background: #fff;
  flex: 0 0 auto;
  isolation: isolate;
  overflow: visible;
  pointer-events: auto !important;
  position: relative;
  z-index: 30;
}

.dpr-element-editor-backdrop .dpr-element-editor > footer .btn {
  min-height: 44px;
  pointer-events: auto !important;
  position: relative;
  touch-action: manipulation;
  z-index: 1;
}

.dpr-element-editor-backdrop .dpr-element-editor > .dpr-element-step {
  min-height: 0;
  overflow: auto;
  position: relative;
  z-index: 0;
}
