.sa-editor-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.sa-editor-heading h1 {
  font-size: 25px;
  line-height: 1.35;
  margin: 12px 0 8px;
  max-width: 800px;
}
.sa-editor-back {
  font-size: 12px;
  font-weight: 600;
}
.sa-editor-save {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}
.sa-editor-save span {
  font-size: 10px;
  color: #8c99ad;
  max-width: 110px;
  text-align: right;
}
.sa-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: start;
}
.sa-editor-main,
.sa-editor-side {
  min-width: 0;
}
.sa-editor-section {
  background: white;
  border: 1px solid var(--sa-line);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
}
.sa-editor-section h2 {
  font-size: 17px;
  margin-bottom: 17px;
}
.sa-editor-section .sa-panel-head {
  border: 0;
  padding: 0 0 16px;
  margin: 0;
  display: flex;
  align-items: center;
}
.sa-editor-section .sa-panel-head h2 {
  margin: 0;
}
.sa-editor-section textarea {
  min-height: 160px;
}
.sa-editor-section .form-label {
  margin-top: 10px;
}
.sa-editor-section > summary {
  padding: 0;
  font-size: 13px;
}
.sa-editor-languages {
  display: flex;
  gap: 5px;
}
.sa-editor-languages button {
  border: 1px solid #e1e7ef;
  border-radius: 7px;
  color: #71809b;
  background: #fff;
  padding: 7px 13px;
  font-size: 12px;
}
.sa-editor-languages button[aria-selected="true"] {
  background: #edf2ff;
  color: #3658ed;
  border-color: #bacafb;
}
.sa-photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 80px;
  margin-top: 18px;
}
.sa-photo {
  position: relative;
  width: 142px;
  min-width: 0;
  background: #fff;
  border: 1px solid #e1e7f1;
  border-radius: 10px;
  padding: 8px;
  margin: 0;
  cursor: grab;
}
.sa-photo img {
  width: 124px;
  height: 125px;
  object-fit: contain;
  display: block;
  background: #fff;
}
.sa-photo-caption {
  display: block;
  color: #8997ad;
  font-size: 10px;
  margin-bottom: 7px;
}
.sa-photo:first-child {
  border-color: #91a7ef;
}
.sa-photo:first-child .sa-photo-caption {
  color: #3658ed;
  font-weight: 650;
}
.sa-photo-controls {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.sa-photo-controls button {
  border: 1px solid #e3e8f0;
  background: #f9fbfe;
  color: #536989;
  border-radius: 5px;
  padding: 2px 8px;
  min-height: 28px;
  flex: 1;
}
.sa-photo.dragging {
  opacity: 0.35;
}
.sa-photo.drag-over {
  outline: 3px solid #8aa3fa;
  outline-offset: 2px;
}
.sa-photo-empty {
  color: #8c99ac;
  padding: 20px;
  font-size: 12px;
}
.sa-photo-add {
  margin-top: 14px;
}
.sa-inline-form {
  display: flex;
  gap: 10px;
}
.sa-editor-side .sa-editor-section {
  font-size: 12px;
  padding: 18px;
}
.sa-editor-side p {
  margin: 12px 0;
  line-height: 1.6;
}
.sa-editor-side .sa-sub {
  display: block;
  color: #8b97ac;
}
.sa-offer-card {
  padding: 10px 0;
  border-bottom: 1px solid #e8edf4;
}
.sa-offer-card:last-child {
  border: 0;
}
.sa-sibling-link {
  display: block;
  padding: 8px 0;
}
.sa-sibling-link small {
  color: #8e9aaf;
  margin-left: 12px;
}
.sa-editor-mobile-save {
  display: none;
}
#sa-product-field-editor {
  padding-top: 12px;
}
#sa-product-field-editor > button {
  margin-top: 16px;
}
@media (max-width: 1150px) {
  .sa-editor-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sa-editor-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .sa-editor-heading {
    align-items: flex-start;
  }
  .sa-editor-save {
    flex-direction: column-reverse;
    align-items: flex-end;
  }
  .sa-editor-save span {
    max-width: none;
  }
  .sa-editor-side .sa-editor-section {
    margin: 0;
  }
}
@media (max-width: 760px) {
  .sa-editor-heading {
    display: block;
  }
  .sa-editor-heading h1 {
    font-size: 21px;
  }
  .sa-editor-save {
    flex-direction: row-reverse;
    margin-top: 15px;
    justify-content: flex-end;
  }
  .sa-editor-section {
    padding: 16px;
  }
  .sa-editor-layout {
    gap: 10px;
  }
  .sa-editor-side {
    display: block;
  }
  .sa-editor-side .sa-editor-section {
    margin-bottom: 16px;
  }
  .sa-photo {
    width: calc(50% - 6px);
  }
  .sa-photo img {
    width: 100%;
    height: 120px;
  }
  .sa-inline-form {
    display: block;
  }
  .sa-inline-form button {
    margin-top: 8px;
  }
  .sa-editor-languages button {
    padding: 6px 10px;
  }
  .sa-editor-mobile-save {
    display: block;
    margin: 18px 0;
  }
  .sa-editor-mobile-save button {
    width: 100%;
  }
}

/* v2 simplified product editor + contextual attention */
.sa-editor-heading-v2 .sa-sub {
  color: #8490a5;
}
.sa-product-readiness-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  margin-bottom: 20px;
  border: 1px solid var(--sa-line);
  border-left-width: 4px;
  border-radius: 12px;
  background: #fff;
}
.sa-product-readiness-banner h2 {
  margin: 7px 0 4px;
  font-size: 16px;
}
.sa-product-readiness-banner p {
  margin: 0;
  color: #78869d;
  font-size: 12px;
  line-height: 1.55;
}
.sa-product-readiness-banner.is-critical {
  border-left-color: #d65a62;
  background: #fffafa;
}
.sa-product-readiness-banner.is-recommended {
  border-left-color: #d39a2f;
  background: #fffdf8;
}
.sa-product-readiness-banner.is-ready {
  border-left-color: #31906c;
  background: #fbfefc;
}
.sa-product-status-pill {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0f3f8;
  color: #66758d;
  font-size: 10px;
  font-weight: 700;
}
.sa-readiness-score {
  min-width: 92px;
  text-align: center;
  padding-left: 18px;
  border-left: 1px solid #e8edf3;
}
.sa-readiness-score strong {
  display: block;
  font-size: 24px;
  color: #22314d;
}
.sa-readiness-score span {
  display: block;
  margin-top: 3px;
  color: #919cb0;
  font-size: 9px;
}
.sa-attention-box {
  position: relative;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px;
  margin: -11px;
}
.sa-attention-box.sa-attention-critical {
  border-color: #efc9cd;
  background: #fff9f9;
}
.sa-attention-box.sa-attention-recommended {
  border-color: #ecdcae;
  background: #fffdf7;
}
.sa-attention-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.sa-attention-label > span {
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .45px;
}
.sa-attention-critical .sa-attention-label > span {
  color: #ba4d56;
}
.sa-attention-recommended .sa-attention-label > span {
  color: #a87518;
}
.sa-attention-label small {
  color: #8b96a9;
  font-size: 9px;
}
.sa-attention-section-critical {
  border-color: #efc9cd;
  box-shadow: inset 3px 0 0 #d65a62;
}
.sa-attention-section-recommended {
  border-color: #ecdcae;
  box-shadow: inset 3px 0 0 #d39a2f;
}
.sa-section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.sa-section-title-row h2 {
  margin-bottom: 5px;
}
.sa-issue-badge {
  flex: 0 0 auto;
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}
.sa-issue-badge.critical {
  color: #b94c55;
  background: #fff0f1;
}
.sa-issue-badge.recommended {
  color: #9f711d;
  background: #fff6df;
}
.sa-editor-side-v2 {
  position: sticky;
  top: 95px;
}
.sa-readiness-card h2 {
  margin: 0;
  font-size: 15px;
}
.sa-readiness-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.sa-readiness-card-head p {
  margin: 4px 0 0;
  color: #8d99ad;
  font-size: 10px;
}
.sa-readiness-circle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eff3ff;
  color: #3658ed;
  font-size: 11px;
  font-weight: 750;
}
.sa-readiness-list {
  border-top: 1px solid #edf0f5;
}
.sa-readiness-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f5;
}
.sa-readiness-mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
}
.sa-readiness-item strong {
  display: block;
  font-size: 11px;
  color: #34435d;
}
.sa-readiness-item small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: #909bad;
  line-height: 1.4;
}
.sa-readiness-item.is-ok .sa-readiness-mark {
  background: #e8f6f0;
  color: #278461;
}
.sa-readiness-item.is-critical .sa-readiness-mark {
  background: #fdecef;
  color: #c34f59;
}
.sa-readiness-item.is-recommended .sa-readiness-mark {
  background: #fff4dc;
  color: #ad791c;
}
.sa-readiness-note {
  margin: 13px 0 0 !important;
  padding-top: 0;
  color: #929db0;
  font-size: 9px !important;
  line-height: 1.55 !important;
}
.sa-editor-tip {
  border-color: #eadcae;
  background: #fffdf7;
}
.sa-editor-tip strong {
  color: #8c671c;
}
.sa-editor-tip p {
  margin-bottom: 0;
  color: #7e7156;
}
.sa-editor-main > details.sa-editor-section {
  background: #fff;
}
.sa-editor-main > details.sa-editor-section[open] {
  padding-bottom: 22px;
}
@media (max-width: 1150px) {
  .sa-editor-side-v2 {
    position: static;
  }
}
@media (max-width: 760px) {
  .sa-product-readiness-banner {
    align-items: flex-start;
    padding: 16px;
  }
  .sa-readiness-score {
    min-width: 70px;
    padding-left: 12px;
  }
  .sa-readiness-score strong {
    font-size: 20px;
  }
  .sa-attention-box {
    margin: -7px;
    padding: 8px;
  }
  .sa-attention-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

/* v2 readiness logic polish */
.sa-editor-save #sa-product-save-state.is-saved {
  color: #6f7d91;
}
.sa-editor-save #sa-product-save-state.is-dirty {
  color: #9a6d1e;
}
.sa-editor-save button:disabled,
.sa-editor-mobile-save button:disabled {
  opacity: .45;
  cursor: default;
}
.sa-product-readiness-banner .sa-fix-first {
  margin-top: 12px;
}
.sa-recommend-field .sa-inline-recommendation {
  margin: 7px 0 0;
  color: #8a7955;
  font-size: 10px;
  line-height: 1.45;
}
.sa-recommend-field .sa-inline-recommendation strong {
  margin-right: 5px;
  color: #a87518;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .35px;
}
.sa-recommendations-title {
  margin-top: 16px;
  padding: 12px 0 6px;
  border-top: 1px solid #edf0f5;
  color: #8c7651;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .55px;
}
.sa-readiness-recommendations {
  border-top: 0;
}
.sa-readiness-recommendations .sa-readiness-item:first-child {
  padding-top: 7px;
}
#sa-critical-category,
#sa-critical-name,
#sa-critical-photos,
#sa-supplier-data {
  scroll-margin-top: 110px;
}
@media (max-width: 760px) {
  .sa-product-readiness-banner .sa-fix-first {
    width: 100%;
  }
}

/* v2 readable advanced product data */
.sa-supplier-offer-v2 {
  padding: 4px 0 2px;
}
.sa-supplier-offer-v2 + .sa-supplier-offer-v2 {
  border-top: 1px solid #edf0f5;
  margin-top: 16px;
  padding-top: 16px;
}
.sa-supplier-offer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.sa-supplier-offer-head strong,
.sa-variant-summary-v2 strong {
  display: block;
  color: #243451;
  font-size: 13px;
}
.sa-supplier-offer-head small {
  display: block;
  color: #8b96aa;
  font-size: 10px;
  margin-top: 4px;
}
.sa-supplier-stock {
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 8px;
  white-space: nowrap;
}
.sa-supplier-stock.is-available {
  color: #248260;
  background: #eaf7f1;
}
.sa-supplier-stock.is-unavailable {
  color: #b45d64;
  background: #fff0f1;
}
.sa-supplier-offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.sa-supplier-offer-grid > div {
  border: 1px solid #edf0f5;
  background: #fafbfd;
  border-radius: 9px;
  padding: 12px 14px;
}
.sa-supplier-offer-grid span,
.sa-variant-summary-v2 span {
  display: block;
  color: #8b96aa;
  font-size: 10px;
  margin-bottom: 5px;
}
.sa-variant-summary-v2 > p {
  color: #7f8ca2;
  font-size: 11px;
  line-height: 1.55;
  margin: 8px 0 0;
}
.sa-nested-advanced {
  border: 1px solid #e8ecf3;
  border-radius: 9px;
  padding: 0 14px;
  margin-top: 14px;
  background: #fbfcfe;
}
.sa-nested-advanced > summary {
  cursor: pointer;
  padding: 13px 0;
  color: #596984;
  font-size: 11px;
  font-weight: 700;
}
.sa-nested-advanced[open] {
  padding-bottom: 14px;
}
.sa-nested-advanced .sa-form-grid,
.sa-nested-advanced .sa-form-group {
  margin-top: 8px;
}
@media (max-width: 760px) {
  .sa-supplier-offer-head {
    flex-direction: column;
  }
  .sa-supplier-offer-grid {
    grid-template-columns: 1fr;
  }
}
