/* Ensure WP admin notices are full-width blocks and don't flow inline with our flex header */
.hdmsi-wrap .notice,
.hdmsi-wrap .error,
.hdmsi-wrap .updated,
.hdmsi-wrap .update-nag {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 16px 0;
  flex: 0 0 100%;
}

/* If notices end up inside a flex header, force them onto their own line */
.hdmsi-card-header {
  flex-wrap: wrap;
}

.hdmsi-wrap .hdmsi-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.hdmsi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .hdmsi-grid {
    grid-template-columns: 1fr;
  }
}
.hdmsi-dark-card .hdmsi-preview{
  border: 1px dashed #8f9092;
  background: #282828;
}

.hdmsi-preview {
  width: 96px;
  height: 96px;
  border: 1px dashed #c3c4c7;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f6f7f7;
  margin: 12px 0;
  padding: 5px;
}

.hdmsi-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hdmsi-empty {
  font-size: 12px;
  color: #777d85;
  padding: 8px;
  text-align: center;
}

.hdmsi-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hdmsi-toggle {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 6px 0 10px;
}







.hdmsi-toggle {
	 cursor: pointer;
	 display: inline-block;
}
 .hdmsi-toggle-switch {
	 display: inline-block;
	 background: #ccc;
	 border-radius: 16px;
	 width: 48px;
	 height: 24px;
	 position: relative;
	 vertical-align: middle;
	 transition: background 0.25s;
}
 .hdmsi-toggle-switch:before, .hdmsi-toggle-switch:after {
	 content: "";
}
 .hdmsi-toggle-switch:before {
	 display: block;
	 background: linear-gradient(to bottom, #fff 0%, #eee 100%);
	 border-radius: 50%;
	 box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
	 width: 18px;
	 height: 18px;
	 position: absolute;
	 top: 3px;
	 left: 3px;
	 transition: left 0.25s;
}
 .hdmsi-toggle:hover .hdmsi-toggle-switch:before {
	 background: linear-gradient(to bottom, #fff 0%, #fff 100%);
	 box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}
 .hdmsi-toggle-checkbox:checked + .hdmsi-toggle-switch {
	 background: #2271b1;
}
 .hdmsi-toggle-checkbox:checked + .hdmsi-toggle-switch:before {
	 left: 27px;
}
 .hdmsi-toggle-checkbox {
	 position: absolute;
	 visibility: hidden;
}
 