.ml-ic-notice {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid #d8e2ec;
  border-radius: 10px;
  background: #f7fbff;
  color: #243447;
}

.ml-ic-wrapper {
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border: 1px solid #d8e2ec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ml-ic-title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-size: 1rem;
}

.ml-ic-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f1f3f5;
}

.ml-ic-stage img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.ml-ic-box {
  position: absolute;
  left: 10%;
  top: 10%;
  width: 70%;
  height: 70%;
  border: 2px solid #ffffff;
  outline: 9999px solid rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  cursor: move;
  box-sizing: border-box;
}

.ml-ic-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #333333;
  cursor: nwse-resize;
  box-sizing: border-box;
}

.ml-ic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.ml-ic-button {
  appearance: none;
  border: 1px solid #ccd6e0;
  border-radius: 999px;
  background: #f8fafc;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.ml-ic-button:hover,
.ml-ic-button:focus {
  background: #edf4fb;
}

.ml-ic-output {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #596b7d;
}
/* Standard image field action. */
.ml-ic-field-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
}

.ml-ic-open-cropper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #b8c6d4;
  border-radius: 6px;
  background: #ffffff;
  color: #26384a;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.ml-ic-open-cropper:hover,
.ml-ic-open-cropper:focus {
  border-color: #6f8498;
  background: #f4f8fb;
}

.ml-ic-open-cropper svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ml-ic-field-status {
  color: #356b45;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Drupal modal cropper. */
.ml-ic-dialog {
  padding: 0;
}

.ml-ic-dialog__body {
  padding: 0.25rem;
}

.ml-ic-dialog__stage {
  display: block;
  width: 100%;
  max-height: 62vh;
  margin: 0 auto;
}

.ml-ic-dialog__stage img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
}

.ml-ic-dialog__ratios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ml-ic-ratio {
  padding: 0.45rem 0.75rem;
  border: 1px solid #c4d0db;
  border-radius: 6px;
  background: #ffffff;
  color: #32485d;
  cursor: pointer;
}

.ml-ic-ratio:hover,
.ml-ic-ratio:focus,
.ml-ic-ratio.is-active {
  border-color: #526f89;
  background: #eef5fa;
}

.ui-dialog .ml-ic-dialog-save {
  color: #ffffff;
}

.ui-dialog:has(.ml-ic-modal) .ui-dialog-buttonset {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
  width: 100%;
}

.ui-dialog:has(.ml-ic-modal) .ui-dialog-buttonset button {
  width: auto;
  max-width: fit-content;
  flex: 0 0 auto;
}