html[data-codex-buyer-gap-fill="20260612"] body {
  background: #f5f6f8;
}

.codex-gap-section {
  box-sizing: border-box;
  width: calc(100% - 24px);
  max-width: 1200px;
  margin: 12px auto;
  padding: 14px;
  border: 1px solid rgba(20, 20, 20, .08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.codex-gap-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #1f2937;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.codex-gap-title small {
  color: #8a8f98;
  font-size: 12px;
  font-weight: 600;
}

.codex-gap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.codex-gap-card {
  display: block;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 80, 0, .14);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf6, #fff);
  color: #1f2937;
  text-decoration: none;
}

.codex-gap-card strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codex-gap-card span {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
}

.codex-gap-footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.codex-gap-footer a,
.codex-detail-fallback a,
.codex-support-card button,
.codex-support-modal button,
.codex-cart-empty-actions a {
  box-sizing: border-box;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  text-align: center;
  text-decoration: none;
}

.codex-gap-footer a {
  display: block;
  padding: 10px 8px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.codex-detail-fallback {
  box-sizing: border-box;
  width: calc(100% - 24px);
  max-width: 720px;
  margin: 10px auto 76px;
  padding: 12px;
  border: 1px solid rgba(20, 20, 20, .08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.codex-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  color: #4b5563;
  font-size: 13px;
}

.codex-detail-row strong {
  color: #111827;
  font-weight: 800;
}

.codex-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.codex-detail-actions a {
  display: block;
  padding: 11px 10px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.codex-detail-actions a:first-child {
  background: #fff3ed;
  color: #ff5000;
}

.codex-cart-empty {
  width: calc(100% - 24px);
  max-width: 640px;
  margin: 22px auto;
  padding: 24px 16px;
  border: 1px dashed rgba(255, 80, 0, .35);
  border-radius: 8px;
  background: #fffaf6;
  color: #374151;
  text-align: center;
}

.codex-cart-empty strong {
  display: block;
  color: #111827;
  font-size: 16px;
}

.codex-cart-empty p {
  margin: 8px 0 14px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.codex-cart-empty-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.codex-cart-empty-actions a {
  padding: 10px 16px;
  background: #ff5000;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.codex-disabled-action {
  opacity: .45 !important;
  pointer-events: auto !important;
}

.codex-toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 100000;
  max-width: calc(100vw - 40px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .92);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease;
}

.codex-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.codex-support-card {
  width: calc(100% - 24px);
  max-width: 720px;
  margin: 10px auto;
  padding: 12px;
  border: 1px solid rgba(255, 80, 0, .18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.codex-support-card strong {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.4;
}

.codex-support-card span {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
}

.codex-support-card button {
  margin-top: 10px;
  padding: 10px 16px;
  background: #ff5000;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.codex-support-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 39, .46);
}

.codex-support-modal.is-visible {
  display: flex;
}

.codex-support-dialog {
  width: min(360px, 100%);
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.codex-support-dialog strong {
  display: block;
  color: #111827;
  font-size: 16px;
  line-height: 1.4;
}

.codex-support-dialog p {
  margin: 8px 0 14px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.55;
}

.codex-support-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.codex-support-actions button {
  padding: 11px 10px;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.codex-support-actions button:last-child {
  background: #ff5000;
  color: #fff;
}

@media (min-width: 800px) {
  .codex-gap-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .codex-gap-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
