body[data-authenticated="true"]:not(.product-detail-open) .app-shell {
  grid-template-columns: 320px minmax(0, 1fr) 0 !important;
}

body[data-authenticated="true"]:not(.product-detail-open) .detail-panel {
  display: none !important;
}

body[data-authenticated="true"].product-detail-open .app-shell {
  display: grid !important;
  grid-template-columns: 320px minmax(0, 1fr) 430px !important;
}

body[data-authenticated="true"].product-detail-open .detail-panel {
  position: sticky !important;
  inset: auto !important;
  top: 0 !important;
  z-index: 3 !important;
  display: block !important;
  width: auto !important;
  height: 100vh !important;
  padding: 18px !important;
  overflow: auto !important;
  border-width: 0 0 0 1px !important;
  border-style: solid !important;
  border-color: #242629 !important;
  background: #111213 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

body[data-authenticated="true"].product-detail-open .detail-content {
  width: 100% !important;
  margin: 0 !important;
  padding: 84px 0 26px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-authenticated="true"].product-detail-open .close-button {
  position: sticky !important;
  top: 0 !important;
  z-index: 7 !important;
  display: grid !important;
  width: 56px !important;
  height: 56px !important;
  margin: 0 0 -64px auto !important;
  border: 1px solid #2a2c30 !important;
  border-radius: 12px !important;
  background: #171819 !important;
  color: #f1f1f1 !important;
  font-size: 34px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

body[data-authenticated="true"].product-detail-open .detail-modal-hero {
  width: 100% !important;
  max-width: 330px !important;
  margin: 0 auto 24px !important;
  aspect-ratio: 1 / 1 !important;
  border: 1px solid #242629 !important;
  border-radius: 8px !important;
  background: #0f1011 !important;
}

body[data-authenticated="true"].product-detail-open .detail-modal-body .detail-source-badge {
  background: #25272a !important;
  color: #e7e7e7 !important;
  border: 1px solid #303236 !important;
}

body[data-authenticated="true"].product-detail-open .detail-modal-body h2 {
  color: #f3f3f3 !important;
  font-size: 30px !important;
  line-height: 1.08 !important;
}

body[data-authenticated="true"].product-detail-open .detail-modal-body .price {
  color: #f3f3f3 !important;
  font-size: 29px !important;
}

body[data-authenticated="true"].product-detail-open .detail-modal-lines .detail-line {
  min-height: 58px !important;
  border-top: 1px solid #242629 !important;
}

body[data-authenticated="true"].product-detail-open .detail-modal-lines .detail-line span:first-child {
  color: #90949c !important;
  font-size: 18px !important;
}

body[data-authenticated="true"].product-detail-open .detail-modal-lines .detail-line span:last-child {
  color: #f1f1f1 !important;
  font-size: 19px !important;
}

body[data-authenticated="true"].product-detail-open .detail-modal-note {
  color: #90949c !important;
  font-size: 18px !important;
}

body[data-authenticated="true"].product-detail-open .detail-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body[data-authenticated="true"].product-detail-open .favorite-detail-button,
body[data-authenticated="true"].product-detail-open .test-lab-detail-button,
body[data-authenticated="true"].product-detail-open .ads-from-product-button,
body[data-authenticated="true"].product-detail-open .llm-button,
body[data-authenticated="true"].product-detail-open .external-link {
  background: #e9eff8 !important;
  color: #111827 !important;
  border: 1px solid #e9eff8 !important;
  box-shadow: none !important;
  min-height: 42px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

body[data-authenticated="true"].product-detail-open .favorite-detail-button.active,
body[data-authenticated="true"].product-detail-open .test-lab-detail-button.active,
body[data-authenticated="true"].product-detail-open .external-link:hover,
body[data-authenticated="true"].product-detail-open .ads-from-product-button:hover,
body[data-authenticated="true"].product-detail-open .llm-button:hover {
  background: #dce6f4 !important;
  color: #0f172a !important;
  border-color: #dce6f4 !important;
}

body[data-authenticated="true"].product-detail-open .llm-section,
body[data-authenticated="true"].product-detail-open .opportunity-card,
body[data-authenticated="true"].product-detail-open .insight-section,
body[data-authenticated="true"].product-detail-open .offer-field {
  background: #131415 !important;
  border: 1px solid #242629 !important;
  color: #eeeeee !important;
}

@media (max-width: 1180px) {
  body[data-authenticated="true"].product-detail-open .app-shell,
  body[data-authenticated="true"]:not(.product-detail-open) .app-shell {
    grid-template-columns: 280px minmax(0, 1fr) !important;
  }

  body[data-authenticated="true"].product-detail-open .detail-panel {
    position: fixed !important;
    inset: 0 0 0 auto !important;
    width: min(430px, 100vw) !important;
    z-index: 20 !important;
  }
}

@media (max-width: 520px) {
  body[data-authenticated="true"].product-detail-open .detail-actions {
    grid-template-columns: 1fr !important;
  }
}
