/* =========================================================================
   Cuba Provider — ventana «Pide la reactivación de tu cuenta» (Mi cuenta,
   sin sesión). Usa los colores y botones del tema cubaprovider (variables
   --cp-*, .cp-btn); si faltan, tiene sus propios valores.
   ========================================================================= */
.cpx-react-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	margin: 10px 0 2px; padding: 10px 16px; min-height: 44px;
	border-radius: var(--cp-r-pill, 999px); background: var(--cp-brand, #21a04a); color: #fff !important;
	font-weight: 700; text-decoration: none !important; line-height: 1.2;
}
.cpx-react-btn:hover, .cpx-react-btn:focus-visible { background: var(--cp-brand-dark, #16803a); color: #fff; }
.woocommerce-error .cpx-react-btn { display: flex; width: max-content; max-width: 100%; }

dialog.cpx-react {
	width: min(440px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px);
	margin: auto; padding: 0; border: 0; border-radius: var(--cp-r-xl, 20px);
	background: var(--cp-surface, #fff); color: var(--cp-text, #333);
	box-shadow: var(--cp-shadow-float, 0 12px 40px rgba(17, 17, 17, .16));
	font-family: var(--cp-font, system-ui, sans-serif); overflow: auto; overscroll-behavior: contain;
}
dialog.cpx-react::backdrop { background: var(--cp-scrim, rgba(0, 0, 0, .42)); }
dialog.cpx-react[open] { animation: cpx-react-in .2s var(--cp-ease, ease-out); }
@keyframes cpx-react-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cpx-react__box { position: relative; display: grid; gap: 12px; margin: 0; padding: 28px 22px 20px; }
.cpx-react__close {
	position: absolute; top: 10px; right: 10px; display: grid; place-items: center;
	width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--cp-muted, #767676); cursor: pointer;
}
.cpx-react__close:hover { background: var(--cp-surface-alt, #f7f7f7); color: var(--cp-ink, #111); }
.cpx-react__icon, .cpx-react__ok {
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	background: var(--cp-brand-soft, #e9f7ee); color: var(--cp-brand-dark, #16803a);
}
.cpx-react__title { margin: 0; color: var(--cp-ink, #111); font-size: var(--cp-fs-xl, 1.25rem); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.cpx-react__title:focus { outline: 0; }
.cpx-react__step { display: grid; gap: 10px; }
.cpx-react__step[hidden] { display: none; }
.cpx-react__lead { margin: 0; color: var(--cp-text, #333); font-size: var(--cp-fs-md, .9375rem); line-height: 1.5; }
.cpx-react__label { margin: 4px 0 -4px; color: var(--cp-ink, #111); font-size: var(--cp-fs-sm, .8125rem); font-weight: 700; }
.cpx-react__opt { color: var(--cp-muted, #767676); font-weight: 500; }
.cpx-react__input {
	width: 100%; min-height: 48px; margin: 0; padding: 12px 14px; box-sizing: border-box;
	border: 1px solid var(--cp-line-strong, #dadada); border-radius: var(--cp-r-card, 12px);
	background: var(--cp-surface, #fff); color: var(--cp-ink, #111); font: inherit; font-size: 16px;
}
.cpx-react__input:focus { outline: 0; border-color: var(--cp-brand, #21a04a); box-shadow: 0 0 0 3px rgba(33, 160, 74, .18); }
.cpx-react__otp { font-size: 24px; font-weight: 700; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.cpx-react__note { min-height: 84px; resize: vertical; }
.cpx-react__msg { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--cp-sale-soft, #fdecec); color: var(--cp-sale, #c62a26); font-size: var(--cp-fs-sm, .8125rem); line-height: 1.45; }
.cpx-react__msg.is-info { background: var(--cp-verified-soft, #e8f0fd); color: var(--cp-verified, #1d63e8); }
.cpx-react__msg[hidden] { display: none; }
.cpx-react__go { margin-top: 4px; }
.cpx-react__go.is-busy { opacity: .7; pointer-events: none; }
.cpx-react__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.cpx-react__link {
	min-height: 44px; margin: 0; padding: 0 2px; border: 0; background: transparent;
	color: var(--cp-brand-dark, #16803a); font: inherit; font-size: var(--cp-fs-sm, .8125rem); font-weight: 700; cursor: pointer;
}
.cpx-react__link[disabled] { color: var(--cp-faint, #a3a3a3); cursor: default; }
.cpx-react__done { justify-items: start; }
.cpx-react__help { margin: 4px 0 0; color: var(--cp-muted, #767676); font-size: var(--cp-fs-sm, .8125rem); }
.cpx-react__help a { color: var(--cp-brand-dark, #16803a); font-weight: 700; }
@media (max-width: 520px) {
	dialog.cpx-react { width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: var(--cp-r-xl, 20px) var(--cp-r-xl, 20px) 0 0; }
	.cpx-react__box { padding: 26px 16px calc(18px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { dialog.cpx-react[open] { animation: none; } }
.cpx-react__icon[hidden] { display: none; }
