html.pac-ef-lock, html.pac-ef-lock body { overflow: hidden !important; }
.pac-ef { position: fixed; inset: 0; z-index: 999999; background: rgba(15, 20, 30, .82); display: none; align-items: center; justify-content: center; padding: 16px; font-family: inherit; }
.pac-ef.is-open { display: flex; }
.pac-ef__box { position: relative; background: #fff; border-radius: 12px; width: min(960px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.pac-ef__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #eee; font-size: 16px; color: #222; }
.pac-ef__count { color: #777; font-weight: 400; }
.pac-ef__x { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #666; padding: 0 4px; }
.pac-ef__tabs { display: flex; gap: 6px; padding: 12px 18px 0; }
.pac-ef__tabs button { border: 1px solid #ddd; background: #f6f6f6; border-radius: 20px; padding: 6px 14px; cursor: pointer; font-size: 14px; color: #333; }
.pac-ef__tabs button.is-on { background: #1e73be; border-color: #1e73be; color: #fff; }
.pac-ef__help { margin: 8px 18px 10px; font-size: 13px; color: #666; line-height: 1.4; }
.pac-ef__stage { position: relative; background: #2b2b2b; flex: 1 1 auto; height: 60vh; max-height: 520px; min-height: 180px; }
.pac-ef__stage > img { display: block; max-width: 100%; }
.pac-ef__fit { display: none; position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; }
.pac-ef.is-fit .cropper-container, .pac-ef.is-fit .pac-ef__tools { display: none !important; }
.pac-ef.is-fit .pac-ef__fit { display: block; }
.pac-ef__tools { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 10px 12px; border-bottom: 1px solid #eee; }
.pac-ef__tools button { min-width: 42px; height: 38px; padding: 0 12px; border: 1px solid #ddd; border-radius: 8px; background: #fff; cursor: pointer; font-size: 17px; color: #333; }
.pac-ef__tools button:hover { background: #f2f6fb; }
.pac-ef__foot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 18px; }
.pac-ef__foot button { border-radius: 8px; padding: 10px 18px; font-size: 15px; cursor: pointer; border: 1px solid #ddd; background: #fff; color: #a33; }
.pac-ef__foot .pac-ef__ok { background: #1e73be; border-color: #1e73be; color: #fff; font-weight: 600; min-width: 140px; }
.pac-ef__busy { display: none; position: absolute; inset: 0; background: rgba(255,255,255,.75); align-items: center; justify-content: center; gap: 10px; font-weight: 600; color: #333; }
.pac-ef.is-busy .pac-ef__busy { display: flex; }
.pac-ef__busy span { width: 22px; height: 22px; border: 3px solid #1e73be; border-top-color: transparent; border-radius: 50%; animation: pacspin .8s linear infinite; }
@keyframes pacspin { to { transform: rotate(360deg); } }
/* Vista previa de la marca de agua dentro del recuadro */
.pac-ef__wm { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
@media (max-width: 600px) {
	.pac-ef { padding: 0; }
	.pac-ef__box { border-radius: 0; height: 100%; }
	.pac-ef__stage { flex: 1; height: auto; min-height: 260px; }
	.pac-ef__foot button { flex: 1; }
	.pac-ef__tools { gap: 4px; }
	.pac-ef__tools button { min-width: 38px; padding: 0 8px; font-size: 15px; }
}
/* Evitar que los estilos de botones del tema deformen el editor */
.pac-ef button { line-height: 1.2 !important; text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; margin: 0 !important; height: auto; font-family: inherit; }
.pac-ef .pac-ef__tabs button { padding: 6px 14px !important; }
.pac-ef .pac-ef__tools button { height: 38px; padding: 0 12px !important; }
.pac-ef .pac-ef__foot button { padding: 10px 18px !important; }
.pac-ef .pac-ef__x { padding: 0 4px !important; }
