/* CONFLUA v174 — 4K media workflow and explicit network publication targets. */

.product-availability-fieldset {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cfe5d8;
  border-radius: 16px;
  background: #f5fbf7;
}

.product-availability-fieldset legend {
  padding: 0 7px;
  color: #164f3b;
  font-weight: 900;
}

.product-availability-fieldset > small {
  color: #60766b;
  line-height: 1.45;
}

.product-availability-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-availability-button {
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid #b8d9c6;
  border-radius: 13px;
  background: #fff;
  color: #1a6148;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.product-availability-button.is-active {
  border-color: #267452;
  background: linear-gradient(100deg, #176248, #8df329);
  color: #fff;
  box-shadow: 0 8px 20px rgba(33, 111, 78, .16);
}

.product-photo-sortable {
  cursor: grab;
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.product-photo-sortable:active {
  cursor: grabbing;
}

.product-photo-sortable.is-dragging {
  opacity: .48;
}

.product-photo-sortable.is-drop-target {
  border-color: #48a46c;
  box-shadow: 0 0 0 3px rgba(72, 164, 108, .18);
}

.product-media-manager .product-media-thumb {
  width: 132px;
  height: 99px;
  border: 1px solid #d7e9df;
  background: #eaf7ef;
}

.product-media-manager .product-media-manage-item {
  grid-template-columns: 132px minmax(160px, 1fr) minmax(260px, auto);
}

.product-media-meta small {
  color: #38805d;
  font-size: 11px;
  font-weight: 750;
}

@media (max-width: 680px) {
  .product-availability-actions {
    grid-template-columns: 1fr;
  }

  .product-photo-sortable {
    cursor: default;
  }

  .product-media-manager .product-media-manage-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .product-media-manager .product-media-thumb {
    width: 92px;
    height: 72px;
  }
}
