.opd-card {
  --opd-ink: #1D2942;
  --opd-surface: #FFF9F1;
  --opd-ground: #FFF1DF;
  --opd-accent: #FF7A12;
  --opd-muted: #6D6B70;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 20px 0 28px;
  padding: 20px 22px;
  color: var(--opd-ink);
  background: var(--opd-surface);
  border: 1px solid #FF7A12;
  border-radius: 12px;
  font-family: Poppins, sans-serif;
}
.opd-card__icon {
  display: grid;
  width: 54px;
  height: 62px;
  place-items: center;
  color: #fff9f1;
  background: var(--opd-ink);
  clip-path: polygon(0 0, 72% 0, 100% 24%, 100% 100%, 0 100%);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
}
.opd-card__copy { min-width: 0; }
.opd-card__eyebrow {
  margin: 0 0 5px;
  color: var(--opd-muted);
  font-size: 12px;
  font-weight: 600;
}
.opd-card__title {
  margin: 0 0 6px;
  color: var(--opd-ink);
  font-size: 19px;
  line-height: 1.25;
}
.opd-card__description { margin: 0 0 7px; color: var(--opd-ink); font-size: 14px; line-height: 1.55; }
.opd-card__disclaimer { margin: 0; color: var(--opd-muted); font-size: 11px; line-height: 1.5; }
.opd-card__action { display: grid; justify-items: end; gap: 8px; }
.opd-card__price { color: var(--opd-ink); font-size: 20px; }
.opd-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 14px/1.2 Poppins, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease;
}
.opd-button--primary { color: #FFF9F1; background: var(--opd-accent); }
.opd-button--primary:hover:not(:disabled) { color: #FFF9F1; background: var(--opd-accent); filter: brightness(.94); transform: translateY(-1px); }
.opd-button:focus-visible { outline: 3px solid #1D2942; outline-offset: 3px; }
.opd-button:disabled { color: var(--opd-muted); background: var(--opd-ground); cursor: not-allowed; }
.opd-button[hidden] { display: none !important; }
.opd-modal[hidden] { display: none !important; }
.opd-modal { position: fixed; z-index: 999999; inset: 0; display: grid; place-items: center; padding: 20px; font-family: Poppins, sans-serif; }
.opd-modal__shade { position: absolute; inset: 0; background: rgba(18, 26, 42, .64); }
.opd-modal__panel {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  padding: 30px;
  color: #1D2942;
  background: #FFF9F1;
  border: 1px solid #FF7A12;
  border-radius: 14px;
}
.opd-modal__close { position: absolute; top: 10px; right: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; color: #1D2942; background: transparent; font-size: 30px; cursor: pointer; }
.opd-modal__close:focus-visible { outline: 3px solid #FF7A12; }
.opd-modal__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr); gap: 30px; align-items: start; }
.opd-modal__grid[hidden] { display: none !important; }
.opd-modal__preview-wrap { min-width: 0; padding-top: 6px; }
.opd-modal__preview { display: block; width: 100%; max-height: 68vh; object-fit: contain; object-position: top; background: #FFF9F1; border: 1px solid #FF7A12; }
.opd-modal__caption { margin: 8px 0 0; color: #6D6B70; font-size: 11px; line-height: 1.5; }
.opd-modal__details h2 { max-width: 22ch; margin: 5px 0 10px; color: #1D2942; font-size: 25px; line-height: 1.16; }
.opd-modal__details > p:not(.opd-card__eyebrow) { color: #1D2942; font-size: 14px; line-height: 1.6; }
.opd-modal__facts { padding-left: 20px; color: #1D2942; font-size: 13px; line-height: 1.65; }
.opd-modal__disclaimer { padding: 12px; border-left: 3px solid #FF7A12; background: #FFF1DF; font-size: 12px !important; }
.opd-modal__message { min-height: 0; margin: 0 0 10px; font-size: 13px; line-height: 1.55; }
.opd-modal__message:empty { display: none; }
.opd-modal__message.is-error { color: #1D2942; font-weight: 600; }
.opd-modal__message.is-success { color: #1D2942; font-weight: 600; }
.opd-modal__message.is-notice { color: var(--opd-ink); }
.opd-modal__message.is-loading { color: var(--opd-muted); }
.opd-button--retry { color: #1D2942; background: #FFF1DF; border-color: #FF7A12; }
.opd-button--download { width: 100%; color: #FFF9F1; background: #1D2942; }
.opd-button--download:hover { color: #FFF9F1; background: #1D2942; filter: brightness(.94); }
.opd-modal__details > .opd-button { width: 100%; margin-top: 6px; }
.opd-modal-open { overflow: hidden; }
.opd-payment-view { min-width: 0; }
.opd-payment-view[hidden] { display: none !important; }
.opd-payment-view__back { margin: 0 0 12px; }
.opd-payment-view__frame { display: block; width: 100%; height: min(70vh, 680px); min-height: 520px; border: 1px solid #D7DCE4; border-radius: 8px; background: #fff; }
@media (max-width: 700px) {
  .opd-card { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .opd-card__icon { width: 46px; height: 54px; }
  .opd-card__action { grid-column: 2; display: flex; width: 100%; align-items: center; justify-content: space-between; }
  .opd-card__title { font-size: 17px; }
  .opd-modal { align-items: end; padding: 8px; }
  .opd-modal__panel { max-height: 94vh; padding: 22px 16px 18px; border-radius: 14px 14px 8px 8px; }
  .opd-modal__grid { grid-template-columns: 1fr; gap: 16px; }
  .opd-modal__preview-wrap { order: 2; }
  .opd-modal__preview { max-height: 42vh; }
  .opd-payment-view__frame { height: 70vh; min-height: 460px; }
  .opd-modal__details h2 { padding-right: 26px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .opd-button { transition: none; }
}

/* Keep purchase actions readable against theme-level disabled button rules. */
.opd-card .opd-button--primary, .opd-card .opd-button--primary:disabled, .opd-modal .opd-button--primary, .opd-modal .opd-button--primary:disabled { color: var(--opd-surface) !important; background: var(--opd-accent) !important; border-color: var(--opd-accent) !important; opacity: 1 !important; font-weight: 600 !important; }
