.opo-pp { --pp-acento: var(--theme-palette-color-1, #111); --pp-linea: var(--theme-palette-color-5, rgba(0,0,0,.12)); --pp-suave: var(--theme-palette-color-6, rgba(0,0,0,.035)); --pp-fondo: var(--theme-palette-color-6, rgba(0,0,0,.035)); --pp-radio: 3px; --pp-ok: #2e7d32; --pp-error: #c62828; margin: 2px 0 4px; }
.opo-pp-paso { display: grid; grid-template-columns: 28px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.opo-pp-paso:last-child { padding-bottom: 0; }
.opo-pp-paso:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 32px; bottom: 6px; width: 2px; background: var(--pp-linea); }
.opo-pp-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pp-acento); color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.opo-pp-paso__body { min-width: 0; }
.opo-pp-paso__tit { margin: 3px 0 8px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.opo-pp-paso__tit .woocommerce-Price-amount { white-space: nowrap; }
.opo-pp-opc { font-weight: 400; opacity: .7; font-size: .9em; }
.opo-pp-paso__txt p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; opacity: .8; }
/* Datos para pagar */
.opo-pp-datos { display: flex; flex-direction: column; gap: 16px; align-items: stretch; margin: 0; padding: 14px; border: 1px solid var(--pp-linea); border-radius: var(--pp-radio); background: var(--pp-fondo); }
.opo-pp-qrbox { margin: 0; padding-top: 14px; border-top: 1px solid var(--pp-linea); text-align: center; }
.opo-pp-qrbox a { display: inline-block; }
.opo-pp-qr { display: block; width: 280px; max-width: 100%; height: auto; max-height: 460px; object-fit: contain; background: transparent; border-radius: var(--pp-radio); padding: 0; box-sizing: border-box; border: 0; }
.opo-pp-qrbox figcaption { margin-top: 8px; font-size: 13px; opacity: .8; }
.opo-pp-qrbox figcaption a { display: inline; text-decoration: underline; color: inherit; }
.opo-pp-lineas { min-width: 0; }
.opo-pp-lineas p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--pp-linea); line-height: 1.4; word-break: break-word; }
.opo-pp-lineas p:first-child { padding-top: 0; }
.opo-pp-lineas p:last-child { padding-bottom: 0; border-bottom: 0; }
.opo-pp-lineas span { flex: 0 0 64px; opacity: .65; font-size: 13px; }
.opo-pp-lineas strong { font-size: 16px; letter-spacing: .02em; }
.opo-pp-copiar { margin-left: auto; padding: 5px 12px !important; min-height: 0 !important; font-size: 12px !important; font-weight: 600; line-height: 1.4 !important; letter-spacing: .04em; text-transform: none !important; border: 1px solid currentColor !important; border-radius: 999px !important; background: transparent !important; color: inherit !important; cursor: pointer; box-shadow: none !important; }
.opo-pp-copiar:hover { background: var(--pp-acento) !important; border-color: var(--pp-acento) !important; color: #fff !important; }
/* Subida de la captura */
.opo-pp-subir { position: relative; }
.opo-pp-file { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.opo-pp-zona { display: flex !important; align-items: center; gap: 14px; margin: 0 !important; padding: 16px; border: 2px dashed var(--pp-linea); border-radius: var(--pp-radio); background: transparent; cursor: pointer; transition: border-color .15s, background .15s; font-weight: 400 !important; }
.opo-pp-zona:hover, .opo-pp-zona.is-arrastre, .opo-pp-file:focus-visible + .opo-pp-zona { border-color: var(--pp-acento); background: var(--pp-fondo); }
.opo-pp-file:focus-visible + .opo-pp-zona { outline: 2px solid var(--pp-acento); outline-offset: 2px; }
.opo-pp-zona[hidden], .opo-pp-listo[hidden] { display: none !important; }
.opo-pp-ico { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--pp-fondo); color: var(--pp-acento); border: 1px solid var(--pp-linea); }
.opo-pp-ico svg { width: 22px; height: 22px; }
.opo-pp-zona__txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.opo-pp-zona__txt strong { font-size: 15px; line-height: 1.3; }
.opo-pp-zona__txt small, .opo-pp-listo__txt small { font-size: 12px; opacity: .7; }
.opo-pp-zona__btn { flex: 0 0 auto; padding: 9px 14px; border-radius: 2px; background: var(--pp-acento); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.opo-pp-listo { display: flex; align-items: center; gap: 12px; padding: 12px; border: 2px solid var(--pp-linea); border-radius: var(--pp-radio); background: var(--pp-fondo); }
.opo-pp-miniatura { position: relative; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 2px; overflow: hidden; background: var(--pp-suave); }
.opo-pp-prev { width: 100%; height: 100%; object-fit: cover; display: block; }
.is-pdf .opo-pp-prev { display: none; }
.is-pdf .opo-pp-miniatura::after { content: "PDF"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: .06em; opacity: .7; }
.opo-pp-listo__txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.opo-pp-listo__txt strong { font-size: 15px; }
.opo-pp-nombre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opo-pp-cambiar { flex: 0 0 auto; padding: 6px 12px !important; min-height: 0 !important; font-size: 13px !important; font-weight: 600; line-height: 1.4 !important; text-transform: none !important; letter-spacing: 0 !important; border: 1px solid var(--pp-linea) !important; border-radius: 2px !important; background: transparent !important; color: inherit !important; cursor: pointer; box-shadow: none !important; }
.opo-pp-cambiar:hover { border-color: currentColor !important; }
.opo-pp-subir.is-ok .opo-pp-listo { border-color: var(--pp-ok); }
.opo-pp-subir.is-ok .opo-pp-listo__est { color: var(--pp-ok); }
.opo-pp-subir.is-ok .opo-pp-listo__est::before { content: "✓ "; }
.opo-pp-subir.is-subiendo .opo-pp-miniatura::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(244,243,238,.7) center / 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23999' stroke-width='3' stroke-dasharray='40 20'/%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.9s' repeatCount='indefinite'/%3E%3C/g%3E%3C/svg%3E"); }
.opo-pp-subir.is-subiendo .opo-pp-cambiar { visibility: hidden; }
.opo-pp-subir.is-error .opo-pp-zona { border-color: var(--pp-error); }
.opo-pp-estado { margin: 8px 0 0; font-size: 13px; color: var(--pp-error); }
.opo-pp-estado:empty { display: none; }
@media (max-width: 480px) {
	.opo-pp-qr { width: 250px; }
	.opo-pp-zona { flex-wrap: wrap; }
	.opo-pp-zona__btn { flex: 1 1 100%; text-align: center; padding: 11px 14px; }
}
/* Página de gracias */
.opo-pp-gracias { margin: 24px 0; }
.opo-pp-gracias img { max-width: 200px; height: auto; }
