.option-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
}
.option-card {
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  padding: 14px;
  margin: 12px 0;
  background: #fafcff;
}
.option-card summary {
  cursor: pointer;
  font-weight: 650;
  color: #1762ad;
  padding: 5px 0;
}
.option-card input,
.option-card select,
.option-card textarea {
  max-width: 100%;
  width: 100%;
}
.option-row input[type="checkbox"],
.option-field input[type="checkbox"] {
  width: auto;
}
.option-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.option-field small {
  font-weight: 400;
  color: #566479;
}
.option-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.option-messages {
  color: #8e4a13;
  font-size: 14px;
  margin: 8px 0;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow: auto;
  max-width: 100%;
  padding: 10px;
}
.gallery-thumbs button {
  background: white;
  padding: 4px;
  border: 1px solid #cbd5e1;
  flex: 0 0 72px;
}
.gallery-thumbs img {
  width: 64px;
  height: 70px;
  object-fit: contain;
}
.detail-visual img {
  max-width: 100%;
  object-fit: contain;
}
.detail-visual {
  height: auto;
  min-height: 360px;
  overflow: hidden;
  padding: 20px;
}
.detail-visual > div {
  min-width: 0;
}
.detail-visual #gallery-main {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: contain;
}
.detail-visual .gallery-thumbs img {
  width: 64px;
  height: 70px;
  object-fit: contain;
}
.option-editor-fields {
  max-height: 750px;
  overflow: auto;
  padding-right: 8px;
}
[data-option-warnings]:empty {
  display: none;
}
[data-option-result] {
  margin: 16px 0;
  color: #174c82;
}
[data-customer-preview] {
  border-top: 1px solid #cad6e5;
  margin-top: 25px;
}
[data-option-editor] .panel {
  max-width: 100%;
}
@media (max-width: 600px) {
  .detail-visual {
    min-height: 280px;
  }
  .detail-visual #gallery-main {
    height: 250px;
  }
  .option-row {
    grid-template-columns: 1fr;
  }
  .option-card {
    padding: 10px;
  }
  .option-card summary {
    overflow-wrap: anywhere;
  }
  .option-editor-fields {
    max-height: none;
  }
}
.option-fixed{display:flex;flex-direction:column;gap:4px;padding:11px 14px;background:#f2f6f8;border:1px solid #e1e8ee;border-radius:8px;margin:10px 0}.option-fixed span{font-size:12px;color:#526a79}.option-fixed strong{font-size:14px}.option-fixed small{font-size:12px;color:#526a79;line-height:1.5}
.compact-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.compact-options>.option-field,.compact-options>.option-messages,.compact-options>.notice,.compact-options>h3{grid-column:1/-1}.compact-options>.option-fixed{margin:0;padding:9px 12px;min-width:0}.compact-options>.option-fixed strong{overflow-wrap:anywhere}.compact-options>.option-field{margin:0}
