.mgc-gbp-visual-frame {
  isolation: isolate;
  background-color: #f8fafc !important;
  background-image:
    linear-gradient(45deg, #eef1f4 25%, transparent 25%),
    linear-gradient(-45deg, #eef1f4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef1f4 75%),
    linear-gradient(-45deg, transparent 75%, #eef1f4 75%) !important;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0 !important;
  background-size: 8px 8px !important;
}

.mgc-gbp-visual-frame > svg {
  opacity: 0 !important;
  pointer-events: none !important;
}

.mgc-gbp-visual-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
}

.mgc-gbp-empty-state {
  padding-top: 1.5rem !important;
  padding-bottom: 2rem !important;
}

.mgc-gbp-empty-state > svg {
  display: none !important;
}

.mgc-gbp-master-image {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  user-select: none;
}

@media (max-width: 480px) {
  .mgc-gbp-empty-state {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

@media print {
  .mgc-gbp-visual-frame,
  .mgc-gbp-master-image,
  .mgc-gbp-visual-image {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* MGC_GBP_LAYOUT_POLISH_V1_BEGIN */
.mgc-gbp-always-open {
  background: #ffffff !important;
}

.mgc-gbp-always-open > button {
  display: none !important;
}

.mgc-gbp-static-section-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1rem 0.7rem;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
}

.mgc-gbp-static-section-heading::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.7rem;
  line-height: 1;
}

.mgc-gbp-always-open > div[data-state] {
  display: block !important;
  margin-top: 0 !important;
  padding: 0 1rem 1rem !important;
  border-top: 0 !important;
}

.mgc-gbp-results-card > div:first-child {
  padding: 1rem 1rem 0.8rem !important;
}

.mgc-gbp-results-card > div:nth-child(2) {
  padding: 1rem !important;
}

.mgc-gbp-results-card
  > div:nth-child(2)
  > div.space-y-6
  > :not([hidden])
  ~ :not([hidden]) {
  margin-top: 1rem !important;
}

.mgc-gbp-results-card .mgc-gbp-visual-frame {
  width: 100% !important;
  max-width: 300px !important;
}

.mgc-gbp-load-card,
.mgc-gbp-result-case-card {
  padding: 1rem !important;
}

.mgc-gbp-result-case-card h3 {
  margin-bottom: 0.75rem !important;
  font-size: 1rem !important;
}

.mgc-gbp-result-case-card
  > div
  > :not([hidden])
  ~ :not([hidden]) {
  margin-top: 0.45rem !important;
}

@media (max-width: 640px) {
  .mgc-gbp-results-card .mgc-gbp-visual-frame {
    max-width: 280px !important;
  }

  .mgc-gbp-static-section-heading {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .mgc-gbp-always-open > div[data-state] {
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
  }
}
/* MGC_GBP_LAYOUT_POLISH_V1_END */

/* MGC_GBP_WARNING_PLACEMENT_V1_BEGIN */
.mgc-gbp-inline-warning-source {
  display: none !important;
}

#mgc-gbp-page-safety-note {
  display: none !important;
}
/* MGC_GBP_WARNING_PLACEMENT_V1_END */
