/* ============== ADMIN ============== */
.vcs-admin-wrap .vcs-media-field {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.vcs-admin-wrap .vcs-preview {
  width: 140px;
  height: 90px;
  border: 1px solid #ccd0d4;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vcs-admin-wrap .vcs-preview img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.vcs-admin-wrap .vcs-preview.vcs-preview-swatch {
  width: 90px;
  height: 90px;
}

.vcs-admin-wrap .vcs-empty {
  color: #777;
  font-size: 12px;
}


/* ============== FRONTEND ============== */
.vcs-switcher {
  max-width: 900px;
  margin: 0 auto;
}

.vcs-title {
  margin: 0 0 12px 0;
}

.vcs-main-wrap {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
}

.vcs-main-image {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity .18s ease;
}

.vcs-main-image.is-loading {
  opacity: 0.45;
}

.vcs-main-placeholder {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(0,0,0,.2);
  border-radius: 14px;
  color: #777;
}

/* Swatches */
.vcs-swatches {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Reset fuerte para Astra/temas que pintan los botones */
.vcs-switcher .vcs-swatches button.vcs-swatch{
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  padding: 0 !important;
  border: 2px solid rgba(0,0,0,.12) !important;
  box-shadow: none !important;
  outline: none !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  line-height: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, border-color .12s ease;
}

.vcs-switcher .vcs-swatches button.vcs-swatch:hover{
  transform: translateY(-1px);
}

.vcs-switcher .vcs-swatches button.vcs-swatch.is-active{
  border-color: rgba(0,0,0,.55) !important;
}

.vcs-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vcs-swatch-fallback {
  width: 100%;
  height: 100%;
  background: #ddd;
  display: block;
}
