/* Live sample upload — port of portable UploadSkuPreview */

.mkt-try-sample {
  /* inherits .mkt-page-section + .mkt-bg-cream */
}

.mkt-try-sample-inner {
  margin: 0 auto;
  max-width: 1180px;
  width: 100%;
  padding: 2rem 1.5rem;
}

.mkt-try-sample .mkt-h-section em {
  font-style: italic;
  font-weight: inherit;
}

.mkt-s3-card {
  margin-top: 1.5rem;
  border-radius: 1rem;
  background: var(--background);
  padding: 1rem;
  border: 1px solid rgba(185, 105, 145, 0.45);
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.06);
}

@media (min-width: 768px) {
  .mkt-s3-card {
    padding: 1.5rem;
  }
}

.mkt-s3-panel {
  border-radius: 0.75rem;
  padding: 1rem;
  border: 0.5px solid #e8edf5;
  background: #fcfdff;
  min-height: 320px;
}

@media (min-width: 768px) {
  .mkt-s3-panel {
    padding: 1.5rem;
  }
}

.mkt-s3-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mkt-s3-view[hidden] {
  display: none !important;
}

.mkt-s3-upload-grid {
  display: grid;
  gap: 0.875rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .mkt-s3-upload-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mkt-s3-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1.5px dashed rgba(185, 105, 145, 0.55);
  background: #f5f4f0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: filter 0.15s ease;
}

.mkt-s3-drop:hover {
  filter: brightness(0.98);
}

.mkt-s3-drop-visual {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.mkt-s3-drop-visual img {
  max-height: 150px;
  width: auto;
  opacity: 0.8;
}

.mkt-s3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.mkt-s3-btn:hover {
  filter: brightness(1.1);
}

.mkt-s3-btn-primary {
  background: #b96991;
  color: var(--primary-foreground);
}

.mkt-page a.mkt-s3-btn-primary {
  color: var(--primary-foreground);
}

.mkt-s3-btn-secondary {
  background: var(--background);
  color: var(--ink);
  border: 1px solid var(--border);
}

.mkt-s3-btn-secondary:hover {
  background: var(--muted);
  filter: none;
}

.mkt-s3-btn:disabled,
.mkt-s3-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.mkt-s3-drop .mkt-s3-btn-primary {
  margin-top: 0.75rem;
}

.mkt-s3-error {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--down);
}

.mkt-s3-reqs {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 1.25rem;
}

.mkt-s3-reqs ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  flex: 1;
  list-style: decimal;
}

.mkt-s3-reqs li {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.mkt-s3-reqs .mkt-s3-btn {
  margin-top: 1rem;
  width: 100%;
}

.mkt-s3-confirm-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .mkt-s3-confirm-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.mkt-s3-preview-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.75rem;
}

.mkt-s3-preview-frame img {
  max-height: 360px;
  width: auto;
  object-fit: contain;
}

.mkt-s3-confirm-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.mkt-s3-file-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.mkt-s3-file-chip strong {
  margin-left: 0.25rem;
  color: var(--ink);
  font-weight: 600;
}

.mkt-s3-status-box {
  margin-top: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(185, 105, 145, 0.35);
  padding: 1.5rem;
  min-height: 90px;
  color: var(--ink-soft);
}

.mkt-s3-status-text {
  display: inline-block;
  animation: mkt-s3-fade-in 0.5s ease;
}

@keyframes mkt-s3-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mkt-s3-output-cta {
  margin-top: 1rem;
}

.mkt-s3-tagline {
  margin: 1.5rem 0 0;
  font-style: italic;
  color: var(--ink-soft);
}

.mkt-s3-talk-link {
  display: inline-flex;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mkt-page a.mkt-s3-talk-link {
  color: var(--primary);
}

/* —— Section header with completion badge —— */

.mkt-try-sample-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.mkt-try-sample-head-text {
  flex: 1 1 auto;
  min-width: 0;
}

.mkt-s3-complete-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.mkt-s3-complete-badge-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

/* —— Output / enrichment results —— */

.mkt-s3-output-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.mkt-s3-output-eyebrow {
  font-size: 0.75rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.mkt-s3-output-title {
  margin: 0.35rem 0 0;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
}

.mkt-s3-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.mkt-s3-btn-outline {
  background: var(--background);
  color: var(--primary);
  border: 1.5px solid rgba(185, 105, 145, 0.55);
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.mkt-s3-btn-outline svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.mkt-s3-btn-outline:hover {
  background: rgba(185, 105, 145, 0.06);
  filter: none;
}

.mkt-s3-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 9999px;
  background: rgba(185, 105, 145, 0.12);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.mkt-s3-stat-chip svg {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

.mkt-s3-stat-chip[hidden] {
  display: none;
}

.mkt-s3-results {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .mkt-s3-results {
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    gap: 1.5rem;
  }
}

.mkt-s3-results-image-col {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mkt-s3-result-image-wrap {
  position: relative;
  flex: 1;
  min-height: 380px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f5f4f0;
  border: 1px solid var(--border);
}

.mkt-s3-result-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mkt-s3-zoom-btn {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: color 0.15s ease, background 0.15s ease;
}

.mkt-s3-zoom-btn svg {
  width: 1rem;
  height: 1rem;
}

.mkt-s3-zoom-btn:hover {
  color: var(--primary);
  background: #fff;
}

/* Absolutely positioned so the caption doesn't add to the image column's height —
   the image itself drives the column height so it can align with the right column. */
.mkt-s3-image-label {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-align: center;
}

@media (max-width: 899px) {
  .mkt-s3-result-image-wrap {
    flex: none;
    min-height: 0;
    max-width: 280px;
    margin: 0 auto;
  }

  .mkt-s3-result-image-wrap img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .mkt-s3-image-label {
    position: static;
    margin-top: 0.65rem;
  }
}

.mkt-s3-results-detail-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 0;
}

.mkt-s3-section-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.mkt-s3-section-label svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.mkt-s3-result-section {
  margin-bottom: 0;
}

.mkt-s3-taxonomy-path {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  align-items: center;
  gap: 0.3rem;
}

.mkt-s3-taxonomy-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 0.375rem;
  background: rgba(185, 105, 145, 0.12);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.mkt-s3-taxonomy-sep {
  color: var(--ink-soft);
  font-size: 0.75rem;
  user-select: none;
}

.mkt-s3-attrs-block {
  min-width: 0;
}

.mkt-s3-attr-table {
  column-count: 2;
  column-gap: 1.5rem;
  column-rule: 1px solid var(--border);
}

@media (max-width: 520px) {
  .mkt-s3-attr-table {
    column-count: 1;
  }
}

.mkt-s3-attr-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  break-inside: avoid;
}

.mkt-s3-attr-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}

.mkt-s3-attr-icon svg {
  width: 14px;
  height: 14px;
}

.mkt-s3-attr-label {
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.mkt-s3-attr-value {
  flex-shrink: 0;
  max-width: 60%;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  overflow-wrap: break-word;
}

.mkt-s3-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.65rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* Beat `.mkt-page a { color: inherit }` so the CTA stays brand pink */
.mkt-page a.mkt-s3-more-link,
.mkt-page a.mkt-s3-more-link:visited {
  color: var(--primary);
}

.mkt-s3-more-link span {
  color: inherit;
}

.mkt-s3-more-link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: inherit;
}

.mkt-page a.mkt-s3-more-link:hover,
.mkt-page a.mkt-s3-more-link:focus-visible {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mkt-s3-highlights-block[hidden] {
  display: none;
}

.mkt-s3-highlights-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

@media (max-width: 480px) {
  .mkt-s3-highlights-row {
    grid-template-columns: 1fr;
  }
}

.mkt-s3-highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.mkt-s3-highlight-check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.05rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
}

.mkt-s3-highlight-check svg {
  width: 0.625rem;
  height: 0.625rem;
}

.mkt-s3-highlight-text {
  font-size: 0.8125rem;
  line-height: 1.42;
  color: var(--ink);
}

.mkt-s3-cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  background: rgba(185, 105, 145, 0.09);
}

.mkt-s3-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgba(185, 105, 145, 0.15);
  color: var(--primary);
}

.mkt-s3-cta-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mkt-s3-cta-text {
  flex: 1 1 200px;
  min-width: 0;
}

.mkt-s3-cta-text strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.mkt-s3-cta-text p {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.mkt-s3-cta-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .mkt-s3-cta-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .mkt-s3-cta-icon {
    margin: 0 auto;
  }

  .mkt-s3-cta-btn {
    width: 100%;
  }

  .mkt-s3-output-head {
    flex-direction: column;
  }

  .mkt-s3-output-actions {
    width: 100%;
  }

  .mkt-s3-btn-outline {
    width: 100%;
  }
}
