:root{
  --pc-accent: #FFC526;
  --pc-accent-dark: #e6a700;
  --pc-text: #222222;
  --pc-muted: #6b6b6b;
  --pc-bg: #ffffff;
  --pc-border: #e9e9e9;
  --pc-radius: 8px;
}

/* General wrapper for single protected content */
.pc-paid-content-wrapper {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--pc-text);
}

/* Protected overlay (replace content until purchase/membership) */
.pc-protected-overlay {
  border: 1px solid var(--pc-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.98));
  padding: 22px;
  border-radius: var(--pc-radius);
  box-shadow: 0 6px 18px rgba(28,28,28,0.03);
  text-align: center;
}

.pc-protected-message {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pc-text);
  margin-bottom: 8px;
}

.pc-unpaid-text {
  color: var(--pc-muted);
  font-size: 0.975rem;
  margin-bottom: 16px;
  line-height: 1.45;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* CTA button */
.pc-cta-button {
  display: inline-block;
  background: var(--pc-accent);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: transform .08s ease, box-shadow .08s ease, filter .08s;
}

.pc-cta-button:hover,
.pc-cta-button:focus {
  transform: translateY(-2px);
  filter: brightness(.97);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

.pc-cta-small { padding: 8px 12px; font-size: .95rem; }

/* Price badge to show near CTA or in list */
.pc-price-badge {
  display: inline-block;
  color: var(--pc-accent);
  border: 1px solid var(--pc-accent);
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  margin-left: 12px;
  font-size: .98rem;
}

/* List view (shortcode [paid_content_list]) */
.pc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pc-list .pc-item {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--pc-border);
}

.pc-list .pc-thumb {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 8px;
  overflow: hidden;
  background: #f6f6f6;
}

.pc-list .pc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc-list .pc-main {
  flex: 1 1 auto;
}

.pc-list .pc-title {
  margin: 0;
  color: var(--pc-text);
  font-weight: 700;
  font-size: 1.02rem;
}

.pc-list .pc-excerpt {
  margin: 6px 0 0;
  color: var(--pc-muted);
  font-size: .95rem;
}

/* Right column with CTA */
.pc-list .pc-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

/* Small helper texts */
.pc-small {
  font-size: .9rem;
  color: var(--pc-muted);
}

/* Invoice link / attachment */
.pc-invoice-link {
  display: inline-block;
  color: var(--pc-accent);
  text-decoration: underline;
  margin-top: 10px;
  font-weight: 600;
}

/* Admin notification badge (small) */
.pc-notice {
  display:inline-block;
  background: var(--pc-accent);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: .825rem;
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 720px) {
  .pc-list .pc-item { flex-direction: column; align-items: stretch; }
  .pc-list .pc-actions { justify-content: space-between; margin-top: 12px; }
  .pc-list .pc-thumb { width:100%; height:160px; flex-basis:auto; }
}

/* Protected download/video player wrapper (for assets served via signed URL) */
.pc-protected-asset {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

/* Minimal focus styles for accessibility */
.pc-cta-button:focus {
  outline: 3px solid rgba(255,197,38,0.18);
  outline-offset: 3px;
}

/* Small helper for "price + CTA inline" layout */
.pc-inline-cta { display:inline-flex; align-items:center; gap:10px; }

/* Empty state */
.pc-empty {
  padding: 18px;
  border: 1px dashed var(--pc-border);
  border-radius: var(--pc-radius);
  text-align:center;
  color: var(--pc-muted);
}
/* Estilos para botones y listados Paid Content */
.pmpro-pc-unpaid {
    border: 1px solid rgba(0,0,0,0.06);
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 16px;
}
.pmpro-pc-unpaid-text {
    margin-bottom: 12px;
    color: #333;
}
.pmpro-pc-price {
    margin-bottom: 12px;
    color: #111;
    font-size: 1.05rem;
}
.pmpro-pc-buy-button {
    display: inline-block;
    padding: 10px 16px;
    background: #FFC526; /* color principal */
    color: #111;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.pmpro-pc-buy-button:hover {
    opacity: 0.95;
}
.pmpro-pc-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pmpro-pc-item { border: 1px solid #eee; padding: 12px; border-radius: 8px; background: #fff; display:flex; gap:12px; align-items:flex-start; }
.pmpro-pc-item-thumb img { border-radius:6px; }
.pmpro-pc-item-title { margin:0 0 8px 0; font-size:1.05rem; }
.pmpro-pc-item-footer { margin-top:8px; display:flex; gap:10px; align-items:center; }
.pmpro-pc-item-price { color:#111; font-weight:700; margin-right:8px; }
/* ---- Modal compra rápida (invitados) ---- */
.pmpro-pc-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
}
.pmpro-pc-modal.open { display: flex; }
.pmpro-pc-modal-inner {
  background: #fff;
  border-radius: 8px;
  width: 92%;
  max-width: 520px;
  padding: 22px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  position: relative;
  font-family: inherit;
}
.pmpro-pc-modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
}
.pmpro-pc-modal-title { margin: 0 0 10px 0; font-size: 20px; color: #222; }
.pmpro-pc-form .pmpro-pc-label { display:block; margin: 10px 0; font-size: 14px; color:#333; }
.pmpro-pc-form input[type="text"], .pmpro-pc-form input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  box-sizing: border-box;
}
.pmpro-pc-form .required { color: #ff3b30; margin-left:4px; }
.pmpro-pc-form-actions { margin-top: 14px; display:flex; gap:10px; align-items:center; }
.pmpro-pc-button { padding: 10px 16px; border-radius: 6px; border: none; cursor:pointer; font-weight:600; }
.pmpro-pc-button-primary { background: #FFC526; color: #111; }
.pmpro-pc-button-secondary { background: #f3f3f3; color: #111; }
.pmpro-pc-form-error { margin-top: 10px; color:#b00020; background:#fff0f0; padding:8px; border-radius:6px; }

/* Loading state for buy button (simple) */
.pmpro-pc-buy-button.pmpro-pc-loading { opacity: 0.8; pointer-events: none; }

/* Small responsive tweaks */
@media (max-width:480px) {
  .pmpro-pc-modal-inner { padding: 16px; }
}