/* index.css for Suggested Prompts App Block */

.mc-suggested-prompts-placeholder {
  display: block;
  padding: .75rem 1rem;
  text-align: center;
  border: 1px dashed #8c9196;
  background: #f4f6f8;
  font-size: .875rem;
  line-height: 1.2;
  color: #6d7175;
  font-style: italic;
}

.microcommerce-geo-summary {
  margin: 12px auto 0;
  padding: 10px 12px;
  max-width: var(--microcommerce-geo-summary-max-width, 760px);
  width: 100%;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.45;
  color: #5f6368;
  border-top: 1px solid #e5e7eb;
  text-align: left;
}

.microcommerce-geo-summary h2,
.microcommerce-geo-summary h3 {
  margin: 0 0 6px;
  color: #4b5563;
  font-weight: 600;
  line-height: 1.3;
}

.microcommerce-geo-summary h2 {
  font-size: 13px;
}

.microcommerce-geo-summary h3 {
  font-size: 12px;
}

.microcommerce-geo-summary p {
  margin: 0 0 8px;
}

.microcommerce-geo-summary ul,
.microcommerce-geo-summary ol {
  margin: 0 0 8px;
  padding-left: 18px;
  list-style-position: outside;
}

.microcommerce-geo-summary li {
  margin: 0 0 4px;
  display: list-item;
}

.microcommerce-geo-summary p:last-child,
.microcommerce-geo-summary ul:last-child,
.microcommerce-geo-summary ol:last-child {
  margin-bottom: 0;
}

.microcommerce-geo-summary__content {
  min-width: 0;
}

.microcommerce-geo-summary__guides {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.microcommerce-geo-summary__guides-title {
  margin: 0 0 8px;
}

.microcommerce-geo-summary__guides-list {
  margin: 0;
  padding-left: 18px;
  list-style-position: outside;
}

.microcommerce-geo-summary__guides-list li {
  margin: 0 0 6px;
  display: list-item;
}

.microcommerce-geo-summary__guides-link {
  color: #374151;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.microcommerce-geo-summary--accordion {
  padding: 0;
  border-top: none;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  isolation: isolate;
  margin-left: 0;
  margin-right: 0;
  /* Accordion typography (full block stays 12px). */
  font-size: 15px;
  line-height: 1.55;
  color: #374151;
}

.microcommerce-geo-summary--accordion h2,
.microcommerce-geo-summary--accordion h3 {
  font-size: 1em;
  margin: 0 0 0.5em;
}

.microcommerce-geo-summary--accordion h3 {
  font-size: 0.95em;
}

.microcommerce-geo-summary--accordion p {
  margin: 0 0 0.75em;
}

.microcommerce-geo-summary--accordion ul,
.microcommerce-geo-summary--accordion ol {
  margin: 0 0 0.75em;
  padding-left: 1.25em;
  list-style-position: outside;
}

.microcommerce-geo-summary--accordion li {
  margin: 0 0 0.35em;
  display: list-item;
}

.microcommerce-geo-summary--accordion > .microcommerce-geo-summary__content,
.microcommerce-geo-summary--accordion .microcommerce-geo-summary__content .metafield-rich_text_field {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.microcommerce-geo-summary__section {
  display: block;
  border-top: 1px solid #e5e7eb;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: visible;
}

.microcommerce-geo-summary__section:last-child {
  border-bottom: 1px solid #e5e7eb;
}

.microcommerce-geo-summary--accordion .microcommerce-geo-summary__section {
  width: 100%;
  max-width: 100%;
}

.microcommerce-geo-summary__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.microcommerce-geo-summary--accordion .microcommerce-geo-summary__summary {
  padding: 14px 16px;
  gap: 14px;
}

.microcommerce-geo-summary__summary::-webkit-details-marker {
  display: none;
}

.microcommerce-geo-summary__summary::marker {
  content: '';
  display: none;
}

.microcommerce-geo-summary__summary::after {
  content: '';
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.microcommerce-geo-summary__section[open] > .microcommerce-geo-summary__summary::after {
  transform: rotate(-135deg);
}

.microcommerce-geo-summary__summary-label {
  flex: 1 1 auto;
  min-width: 0;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.microcommerce-geo-summary--accordion .microcommerce-geo-summary__summary-label {
  font-size: 1rem;
  line-height: 1.35;
}

.microcommerce-geo-summary__panel {
  display: block;
  padding: 0 12px 12px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}

.microcommerce-geo-summary--accordion .microcommerce-geo-summary__panel {
  padding: 0 16px 18px;
  font-size: 1em;
  line-height: inherit;
}

/* Rich text from metafield_tag: keep accordion scale; themes often set smaller .rte rules. */
.microcommerce-geo-summary--accordion .microcommerce-geo-summary__panel p,
.microcommerce-geo-summary--accordion .microcommerce-geo-summary__panel li,
.microcommerce-geo-summary--accordion .microcommerce-geo-summary__panel td,
.microcommerce-geo-summary--accordion .microcommerce-geo-summary__panel th {
  font-size: 1em;
  line-height: inherit;
}

.microcommerce-geo-summary__panel > :first-child {
  margin-top: 0;
}

.microcommerce-geo-summary__panel pre {
  white-space: pre-wrap;
}

.microcommerce-geo-summary--accordion .microcommerce-geo-summary__guides {
  margin-top: 0;
  padding: 12px;
}

.microcommerce-geo-summary-host {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Guides widget mirrors the GEO Summary accordion typography stack
   (.microcommerce-geo-summary--accordion + __guides) so it reads as the
   same component when stacked under the GEO block on the PDP. */
.microcasting-guides {
  display: block;
  width: 100%;
  max-width: var(--microcommerce-geo-summary-max-width, 100%);
  box-sizing: border-box;
  margin: 12px 0 0;
  padding: 10px 12px;
  color: #374151;
  font-size: 15px;
  line-height: 1.55;
  text-align: left !important;
}

.microcasting-guides-title {
  margin: 0 0 0.5em;
  padding: 0;
  color: #4b5563;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left !important;
}

.microcasting-guides-related-list {
  margin: 0;
  padding-left: 1.25em;
  list-style-position: outside;
  text-align: left !important;
}

.microcasting-guides-related-list li {
  margin: 0 0 0.35em;
  padding-left: 0;
  display: list-item;
  text-align: left !important;
}

.microcasting-guides-related-list li:last-child {
  margin-bottom: 0;
}

.microcasting-guides-related-link,
.microcasting-guides-related-link:visited {
  color: #374151;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: left !important;
}

/* Theme: column flex + align-items:flex-start sizes the Shopify block wrapper to content, not the column. */
.shopify-app-block:has([data-microcommerce-geo-summary-host]),
.shopify-block:has([data-microcommerce-geo-summary-host]),
[id^='shopify-block-']:has([data-microcommerce-geo-summary-host]) {
  align-self: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.shopify-app-block:has([data-microcasting-guides-host]),
.shopify-block:has([data-microcasting-guides-host]),
[id^='shopify-block-']:has([data-microcasting-guides-host]) {
  align-self: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  text-align: left !important;
}

@media (max-width: 749px) {
  .microcommerce-geo-summary {
    margin-top: 10px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .microcommerce-geo-summary h2 {
    font-size: 12px;
  }

  .microcommerce-geo-summary h3 {
    font-size: 11px;
  }

  .microcommerce-geo-summary__summary {
    padding: 10px;
  }

  .microcommerce-geo-summary__summary-label {
    font-size: 12px;
  }

  .microcommerce-geo-summary__panel {
    padding: 0 10px 10px;
  }

  .microcommerce-geo-summary--accordion .microcommerce-geo-summary__guides {
    padding: 10px;
  }

  .microcommerce-geo-summary--accordion {
    font-size: 14px;
    line-height: 1.5;
  }

  .microcommerce-geo-summary--accordion .microcommerce-geo-summary__summary {
    padding: 12px 14px;
  }

  .microcommerce-geo-summary--accordion .microcommerce-geo-summary__summary-label {
    font-size: 0.9375rem;
  }

  .microcommerce-geo-summary--accordion .microcommerce-geo-summary__panel {
    padding: 0 14px 14px;
  }

  .microcasting-guides {
    margin: 10px 0 0;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.5;
  }

  .microcasting-guides-title {
    font-size: 0.9375rem;
    line-height: 1.35;
  }
}

/* -------------------------------------------------------------------------- */
/* Guide article body — .microcasting-page-generated-content                */
/* Published guide HTML is wrapped in this div (OpenAiFunctions / blog sync). */
/* Keep in sync with: packages/admin-app/src/components/richText/guideArticleContent.css */
/* Blog templates: paste this block into theme CSS if the app stylesheet      */
/* is not loaded on article pages.                                            */
/* -------------------------------------------------------------------------- */

.microcasting-page-generated-content {
  color: #1f2937;
  font-size: 16px;
  line-height: 1.65;
  word-break: break-word;
}

.microcasting-page-generated-content > *:first-child {
  margin-top: 0;
}

.microcasting-page-generated-content > *:last-child {
  margin-bottom: 0;
}

.microcasting-page-generated-content h1,
.microcasting-page-generated-content h2,
.microcasting-page-generated-content h3,
.microcasting-page-generated-content h4,
.microcasting-page-generated-content h5,
.microcasting-page-generated-content h6 {
  color: #111827;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 1.5em 0 0.6em;
}

.microcasting-page-generated-content h1 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 0.75em;
}

.microcasting-page-generated-content h2 {
  font-size: 1.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid #e5e7eb;
}

.microcasting-page-generated-content h3 {
  font-size: 1.2rem;
}

.microcasting-page-generated-content h4 {
  font-size: 1.05rem;
}

.microcasting-page-generated-content p {
  margin: 0 0 1em;
}

.microcasting-page-generated-content strong {
  font-weight: 700;
  color: #111827;
}

.microcasting-page-generated-content em {
  font-style: italic;
}

.microcasting-page-generated-content ul,
.microcasting-page-generated-content ol {
  margin: 0 0 1.1em;
  padding-inline-start: 1.5rem;
  list-style-position: outside;
}

.microcasting-page-generated-content ul {
  list-style-type: disc;
}

.microcasting-page-generated-content ol {
  list-style-type: decimal;
}

.microcasting-page-generated-content li {
  margin: 0 0 0.5em;
  display: list-item;
}

.microcasting-page-generated-content li > ul,
.microcasting-page-generated-content li > ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.microcasting-page-generated-content a {
  color: #0f62fe;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.microcasting-page-generated-content a:hover {
  color: #0b4ed1;
}

.microcasting-page-generated-content a:focus-visible {
  outline: 2px solid #0f62fe;
  outline-offset: 2px;
  border-radius: 2px;
}

.microcasting-page-generated-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.1em;
  font-size: 0.95em;
}

.microcasting-page-generated-content th,
.microcasting-page-generated-content td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.microcasting-page-generated-content pre {
  margin: 0 0 1em;
  padding: 0.75rem 1rem;
  background: #f3f4f6;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.875em;
  line-height: 1.5;
}

.microcasting-page-generated-content .cta {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.microcasting-page-generated-content .cta h3 {
  margin-top: 0;
}

.microcasting-page-generated-content .cta p:last-of-type {
  margin-bottom: 0;
}

.microcasting-page-generated-content .btn {
  display: inline-block;
  margin: 0.25rem 0.5rem 0.25rem 0;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.microcasting-page-generated-content .btn-primary {
  background: #111827;
  color: #ffffff;
  border: 1px solid #111827;
}

.microcasting-page-generated-content .btn-primary:hover {
  background: #000000;
  color: #ffffff;
}

.microcasting-page-generated-content .btn-secondary {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
}

.microcasting-page-generated-content .btn-secondary:hover {
  background: #f3f4f6;
  color: #111827;
}

.microcasting-page-generated-content hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .microcasting-page-generated-content {
    font-size: 15px;
    line-height: 1.6;
  }

  .microcasting-page-generated-content h1 {
    font-size: 1.75rem;
  }

  .microcasting-page-generated-content h2 {
    font-size: 1.35rem;
  }

  .microcasting-page-generated-content h3 {
    font-size: 1.1rem;
  }

  .microcasting-page-generated-content .cta {
    padding: 1rem;
  }

  .microcasting-page-generated-content .btn {
    width: 100%;
    text-align: center;
    margin-right: 0;
  }
}

/* --- MicroCommerce app blocks: article featured image + related products carousel --- */

.mc-article-featured {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  box-sizing: border-box;
}

.mc-article-featured__heading {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.mc-article-featured__frame {
  border-radius: 8px;
  overflow: hidden;
  background: #f4f6f8;
}

.mc-article-featured__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.mc-related-carousel {
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto 0;
  box-sizing: border-box;
}

.mc-related-carousel__title {
  margin: 0 0 1rem;
  color: #111827;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.mc-related-carousel__track {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.mc-related-carousel__card {
  flex: 0 0 min(85vw, 260px);
  scroll-snap-align: start;
  min-width: 0;
}

.mc-related-carousel__link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: box-shadow 0.15s ease;
}

.mc-related-carousel__link:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.mc-related-carousel__media {
  aspect-ratio: 1;
  background: #f4f6f8;
  overflow: hidden;
}

.mc-related-carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mc-related-carousel__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
}

.mc-related-carousel__product-title {
  margin: 0;
  padding: 0.75rem 0.875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}
