/* ═══════════════════════════════════════════════
   Bookinest Form — Estilos (visual actualizado)
   Prefijo: bk- para evitar conflictos con el theme
   ═══════════════════════════════════════════════ */

:root {
  --bn-blue:       #1a56a0;
  --bn-blue-dark:  #154589;
  --bn-blue-light: #c5d8f0;
  --bn-bg:         #f7faff;
  --bn-text:       #2b4a7a;
  --bn-muted:      #90a8c8;
}

#bookinest-app {
  font-family: 'Nunito', sans-serif;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#bookinest-app * { box-sizing: border-box; }

/* ── Overlay ──────────────────────────────────────────────────────────────── */
.bk-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
}
.bk-overlay.bk-overlay--open { display: flex; }

.bk-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.bk-overlay-inner {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  max-width: 800px;
  width: 80vw;
  max-height: 90vh;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  animation: bk-in 0.22s ease;
}

@keyframes bk-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.bk-overlay-close {
  position: fixed !important;
  top: 16px !important;
  right: 20px !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 2.6rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  color: #fff !important;
  transition: color 0.15s !important;
  padding: 0 !important;
  z-index: 1000000 !important;
}
.bk-overlay-close:hover {
  background: none !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ── Upsell modal ─────────────────────────────────────────────────────────── */
.bk-upsell-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bk-upsell-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}
.bk-upsell-modal .bk-upsell-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 2px solid var(--bn-blue-light) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  padding: 28px 24px;
  text-align: left;
}
.bk-upsell-modal .bk-upsell-title {
  margin: 0 0 8px;
  font-family: 'Dongle', 'Nunito', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--bn-blue) !important;
  line-height: 1;
  text-align: left;
}
.bk-upsell-modal .bk-upsell-title-accent {
  color: var(--bn-blue-dark) !important;
}
.bk-upsell-modal .bk-upsell-sub {
  margin: 0 0 6px;
  color: var(--bn-muted) !important;
  font-size: 0.82rem;
  font-family: 'Nunito', sans-serif;
  text-align: left;
}
.bk-upsell-modal .bk-upsell-copy {
  margin: 0 0 16px;
  color: var(--bn-text) !important;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 700;
  background: var(--bn-bg);
  border-radius: 10px;
  padding: 10px 14px;
}
.bk-upsell-modal .bk-upsell-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bk-upsell-modal .bk-upsell-actions .bk-btn-main {
  background: var(--bn-blue) !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 100px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  padding: 13px !important;
}
.bk-upsell-modal .bk-upsell-actions .bk-btn-main:hover {
  background: var(--bn-blue-dark) !important;
  color: #ffffff !important;
}
.bk-upsell-modal .bk-upsell-actions .bk-ghost-small {
  background: none !important;
  border: none !important;
  color: var(--bn-muted) !important;
  border-radius: 100px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.85rem !important;
}
.bk-upsell-modal .bk-upsell-actions .bk-ghost-small:hover {
  background: var(--bn-blue-dark) !important;
  color: #ffffff !important;
}

/* ── Steps ────────────────────────────────────────────────────────────────── */
.bk-step { display: none; }
.bk-step.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  flex: 1;
  overflow: auto;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.bk-card {
  background: white;
  border-radius: 16px;
  box-shadow: none;
  padding: 28px 24px;
  width: 100%;
  max-width: 460px;
}
.bk-card-title {
  font-family: 'Dongle', 'Nunito', sans-serif;
  font-size: 2.4rem;
  color: var(--bn-blue);
  text-align: center;
  line-height: 1;
  margin-bottom: 4px;
}
.bk-card-sub {
  text-align: center;
  color: var(--bn-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  font-family: 'Nunito', sans-serif;
}

/* ── Labels e inputs ─────────────────────────────────────────────────────── */
.bk-label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--bn-text);
  margin: 16px 0 8px;
  font-family: 'Nunito', sans-serif;
}
.bk-optional { font-weight: 400; color: var(--bn-muted); }

.bk-input,
.bk-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--bn-blue-light);
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  background: var(--bn-bg);
  outline: none;
  transition: border 0.2s;
  box-sizing: border-box;
}
.bk-input:focus,
.bk-textarea:focus { border-color: var(--bn-blue); }
.bk-textarea { height: 80px; resize: vertical; }

/* ── Age grid ─────────────────────────────────────────────────────────────── */
.bk-age-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.bk-age-btn {
  padding: 10px 0;
  border-radius: 100px;
  cursor: pointer;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--bn-blue-light);
  background: white;
  color: #5580b0;
  transition: all 0.15s;
  user-select: none;
}
.bk-age-btn:hover {
  background: var(--bn-blue-dark) !important;
  color: #fff !important;
  border-color: var(--bn-blue-dark) !important;
}
.bk-age-btn.sel {
  background: var(--bn-blue-dark) !important;
  color: white !important;
  border-color: var(--bn-blue-dark) !important;
}

/* ── Botones principales ──────────────────────────────────────────────────── */
.bk-btn-main {
  width: 100%;
  margin-top: 0;
  padding: 14px;
  background: var(--bn-blue);
  color: white;
  border: none;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}
.bk-btn-main:hover { background: var(--bn-blue-dark) !important; color: #ffffff !important; }
.bk-btn-main:disabled { opacity: 0.35; cursor: not-allowed; }

.bk-ghost {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bn-blue);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
  border-radius: 100px;
  padding: 6px 16px;
  transition: background 0.2s, color 0.2s;
}
.bk-ghost:hover { background: var(--bn-blue-dark) !important; color: #fff !important; }

.bk-ghost-small {
  background: none;
  border: none;
  color: var(--bn-muted);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 100px;
  padding: 4px 12px;
  transition: all 0.15s;
}
.bk-ghost-small:hover {
  background: var(--bn-blue-dark) !important;
  color: #ffffff !important;
}

/* ── Botón ancla short description ───────────────────────────────────────── */
.bk-shortdesc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px !important;
  margin-top: 8px;
  border-radius: 100px !important;
  border: none !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0 !important;
  text-transform: uppercase;
  color: #ffffff !important;
  background: #000000 !important;
  text-decoration: none !important;
  cursor: pointer;
  line-height: 2 !important;
  transition: all 0.3s ease;
}
.bk-shortdesc-btn:hover {
  background: #80c0d8 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ── Hover global ─────────────────────────────────────────────────────────── */
.completar-formulario-btn:hover,
.wp-block-button__link:hover,
.uagb-button__wrapper .uagb-button__link:hover,
.wp-block-uagb-buttons .uagb-buttons-repeater .uagb-button__link:hover,
a.button:hover,
button:hover,
input[type="submit"]:hover {
  background-color: #80c0d8 !important;
  color: #ffffff !important;
}

/* ── Cover selection ──────────────────────────────────────────────────────── */
.bk-pick-title {
  font-family: 'Dongle', 'Nunito', sans-serif;
  font-size: 2.2rem;
  color: var(--bn-blue);
  text-align: center;
}
.bk-pick-sub {
  color: var(--bn-muted);
  font-size: 0.9rem;
  text-align: center;
  margin: 4px 0 28px;
}
.bk-cover-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 580px;
}
.bk-cover-card {
  width: calc(50% - 12px);
  max-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.bk-cover-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
  width: 100%;
}
.bk-cover-wrap:hover { transform: scale(1.03); }
.bk-cover-wrap canvas {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
}

/* ── Format selection ─────────────────────────────────────────────────────── */
.bk-format-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 780px;
}
.bk-format-card {
  flex: 1;
  min-width: 180px;
  max-width: 230px;
  background: white;
  border-radius: 14px;
  border: 2.5px solid var(--bn-blue-light);
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
}
.bk-format-card:hover {
  border-color: var(--bn-blue-dark) !important;
  background: var(--bn-blue-dark) !important;
  transform: translateY(-2px);
  box-shadow: none;
}
.bk-format-card:hover .bk-format-name,
.bk-format-card:hover .bk-format-desc,
.bk-format-card:hover .bk-format-price,
.bk-format-card:hover .bk-format-price-note,
.bk-format-card:hover .bk-format-icon { color: #fff !important; }

.bk-format-card.sel {
  border-color: var(--bn-blue);
  background: var(--bn-bg);
  box-shadow: none;
}
.bk-format-icon  { font-size: 2.4rem; margin-bottom: 8px; }
.bk-format-name  { font-family: 'Dongle', 'Nunito', sans-serif; font-size: 1.8rem; color: var(--bn-blue); line-height: 1.1; transition: color 0.18s; }
.bk-format-desc  { font-size: 0.82rem; color: var(--bn-muted); margin: 6px 0 12px; line-height: 1.4; transition: color 0.18s; }
.bk-format-price { font-family: 'Dongle', 'Nunito', sans-serif; font-size: 2rem; color: var(--bn-text); line-height: 1; transition: color 0.18s; }
.bk-format-price-note { font-size: 0.75rem; color: var(--bn-muted); margin-top: 2px; transition: color 0.18s; }

/* ── Book preview ─────────────────────────────────────────────────────────── */
.bk-preview-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.bk-pg-count {
  color: var(--bn-muted);
  font-size: 0.85rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}
.bk-page-box {
  width: 100%;
  background: transparent;
  position: relative;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.bk-page-box.sl { transform: translateX(-40px); opacity: 0; }
.bk-page-box.sr { transform: translateX(40px);  opacity: 0; }

.bk-cart-row {
  margin-top: 16px;
  margin-bottom: 40px;
}

.bk-error {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fdecea;
  border-radius: 8px;
  color: #c0392b;
  font-size: 0.88rem;
  display: none;
}

/* ── Page layouts ─────────────────────────────────────────────────────────── */

/* Square (tapa / contratapa): canvas es absolute 100%×100% desde el JS,
   el contenedor define la altura vía aspect-ratio */
.bk-sq {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .13) !important;
}
.bk-sq img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Landscape (páginas interiores): la imagen define la altura naturalmente */
.bk-ls {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .13);
}
.bk-ls img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}
.bk-page-box .bk-ls img,
.bk-page-box .bk-ls img:hover {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  vertical-align: top !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Lock page ────────────────────────────────────────────────────────────── */
.bk-lock-page {
  width: 100%;
  min-height: 200px;
  max-height: 300px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f6ff 0%, #d8e4f7 100%);
}
.bk-lock-content {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bk-lock-icon  { font-size: 2.4rem; }
.bk-lock-title { font-family: 'Dongle', 'Nunito', sans-serif; font-size: 2.2rem; color: var(--bn-blue); line-height: 1; }
.bk-lock-sub   { font-family: 'Nunito', sans-serif; font-size: 0.85rem; color: #5580b0; text-align: center; max-width: 360px; line-height: 1.5; }

/* ── Navigation ───────────────────────────────────────────────────────────── */
.bk-nav-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.bk-nav-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  border: none !important;
  background: var(--bn-blue) !important;
  font-size: 1.2rem !important;
  cursor: pointer !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: background 0.15s !important;
  padding: 0 !important;
  line-height: 1 !important;
  box-shadow: 0 2px 8px rgba(26, 86, 160, 0.35) !important;
}
.bk-nav-btn:hover:not(:disabled) { background: var(--bn-blue-dark) !important; color: #fff !important; }
.bk-nav-btn:disabled { opacity: 0.25 !important; cursor: not-allowed !important; }
/* Anular override del tema en mobile */
.site-content .bk-nav-btn { width: 38px !important; height: 38px !important; }

.bk-dots {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 320px;
}
.bk-dot {
  display: inline-block !important;
  width: 9px !important;
  height: 9px !important;
  min-width: 9px !important;
  max-width: 9px !important;
  min-height: 9px !important;
  max-height: 9px !important;
  border-radius: 50% !important;
  background: #c8d8ee !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
  outline: none !important;
  transition: background 0.15s, transform 0.15s;
}
.bk-dot:hover  { background: var(--bn-blue) !important; }
.bk-dot.active {
  background: var(--bn-blue) !important;
  transform: scale(1.4) !important;
  box-shadow: 0 0 0 3px rgba(26, 86, 160, 0.2) !important;
}

/* ── Confirm box ──────────────────────────────────────────────────────────── */
.bk-confirm-box {
  width: 100%;
  background: white;
  border-radius: 14px;
  box-shadow: none;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.bk-confirm-summary {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--bn-text);
  text-align: center;
}

/* ── Nuevo popup modal (override de bk-overlay-inner) ────────────────────── */
.bk-popup-inner {
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  max-width: 520px !important;
  width: 92vw !important;
  padding: 28px 32px 32px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.bk-popup-inner.preview-mode { max-width: 760px !important; }

.bk-popup-step { width: 100%; }

/* ── Cover mini thumbnails ────────────────────────────────────────────────── */
.bk-cover-mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.bk-cover-mini {
  border-radius: 12px;
  overflow: hidden;
  border: 2.5px solid var(--bn-blue-light);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--bn-bg);
  position: relative;
}
.bk-cover-mini:hover  { border-color: var(--bn-blue); transform: translateY(-2px); }
.bk-cover-mini.sel    { border-color: var(--bn-blue); box-shadow: 0 4px 16px rgba(26,86,160,.25); }
.bk-cover-mini canvas { display: block; width: 100%; height: auto; }
.bk-cover-mini-label  {
  display: block;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5580b0;
  padding: 5px 0 7px;
  transition: color 0.15s;
}
.bk-cover-mini.sel .bk-cover-mini-label { color: var(--bn-blue); }

/* ── Upsell step (estilos idénticos a book-3) ─────────────────────────────── */
.bnpopup-upsell-sub {
  text-align: center;
  color: var(--bn-muted);
  font-size: 0.82rem;
  margin: 0 0 2px;
  font-family: 'Nunito', sans-serif;
}
.bnpopup-upsell-title {
  font-family: 'Dongle', 'Nunito', sans-serif;
  font-size: 2.4rem;
  color: var(--bn-blue);
  text-align: center;
  line-height: 1.1;
  margin: 0 0 6px;
}
.bnpopup-upsell-desc {
  text-align: center;
  color: #5580b0;
  font-size: 0.9rem;
  font-family: 'Nunito', sans-serif;
  margin: 0 0 22px;
}
.bnpopup-upsell-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 8px;
  min-width: 0;
  width: 100%;
}
.bnpopup-upsell-card {
  border: 2.5px solid var(--bn-blue-light);
  border-radius: 14px;
  padding: 20px 14px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  background: #fff;
  position: relative;
}
.bnpopup-upsell-card:hover {
  border-color: var(--bn-blue-dark) !important;
  background: var(--bn-blue-dark) !important;
  color: #fff !important;
}
.bnpopup-upsell-card:hover .bnpopup-upsell-icon,
.bnpopup-upsell-card:hover .bnpopup-upsell-name,
.bnpopup-upsell-card:hover .bnpopup-upsell-price { color: #fff; }
.bnpopup-upsell-card.recommended {
  border-color: var(--bn-blue);
  background: var(--bn-bg);
}
.bnpopup-upsell-card.recommended:hover { background: var(--bn-blue-dark); }
.bnpopup-upsell-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--bn-blue);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.bnpopup-upsell-card.recommended:hover .bnpopup-upsell-badge {
  background: #fff;
  color: var(--bn-blue);
}
.bknac-badge-star {
  color: #f5c518;
  font-size: calc(0.72rem + 2px);
  line-height: 1;
}
#bookinest-nac-overlay .bnpopup-upsell-badge img.emoji {
  display: inline !important;
  width: 0.9em !important;
  height: 0.9em !important;
  max-width: 0.9em !important;
  vertical-align: -0.1em !important;
  margin: 0 1px 0 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.bnpopup-upsell-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: center;
  margin-bottom: 8px;
}
#bookinest-nac-overlay .bnpopup-upsell-icon img,
#bookinest-nac-overlay .bnpopup-upsell-icon img:hover {
  display: inline !important;
  width: 1em !important;
  height: 1em !important;
  max-width: 1em !important;
  max-height: 1em !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  object-fit: contain !important;
  vertical-align: middle !important;
}
.bnpopup-upsell-name {
  font-family: 'Roboto', 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--bn-text);
  display: block;
  margin-bottom: 6px;
  transition: color 0.18s;
}
.bnpopup-upsell-price {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bn-blue);
  display: block;
  transition: color 0.18s;
}
.bnpopup-upsell-back {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--bn-muted);
  display: block;
  margin: 14px auto 0;
  padding: 6px 12px;
  border-radius: 100px;
  transition: all 0.15s;
}
.bnpopup-upsell-back:hover { background: var(--bn-blue-dark) !important; color: #fff !important; }
.bnpopup-error { color: #c0392b; font-size: 0.82rem; margin-top: 8px; text-align: center; }

/* ── Reset: emojis de WordPress (no tocar) ───────────────────────────────── */
img.emoji {
  all: revert !important;
  width: auto !important;
  height: 20px !important;
  display: inline !important;
  vertical-align: -0.1em !important;
  margin-block: auto !important;
  margin-inline: 0.05em !important;
  padding: 0 !important;
}

/* ── Reset: imágenes en la descripción del producto (WooCommerce) ─────────── */
/* Anula cualquier regla de este plugin que pueda afectarlas               */
.woocommerce-Tabs-panel--description img,
.woocommerce-Tabs-panel--description img:hover {
  all: revert !important;
  max-width: 100% !important; /* solo mantener esto para que no se salgan */
}

/* ── Step upsell (paso 5) ─────────────────────────────────────────────────── */
#bk-s-upsell { display: none; margin: 0; padding: 32px 32px; width: 100%; box-sizing: border-box; }
#bk-s-upsell.active { display: block; }
/* Cuando el upsell está activo, anular width y padding del overlay */
.bk-overlay-inner:has(#bk-s-upsell.active) { width: unset !important; padding: 0 !important; }

.bk-upsell-confirm-summary {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  color: var(--bn-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.bk-upsell-sub {
  text-align: center;
  color: var(--bn-muted);
  font-size: 0.85rem;
  margin: 0 0 2px !important;
  font-family: 'Nunito', sans-serif;
}
.bk-upsell-title {
  font-family: 'Dongle', 'Nunito', sans-serif;
  font-size: 2.4rem;
  color: var(--bn-blue);
  text-align: center;
  line-height: 1.1;
  margin: 0 0 6px;
}
.bk-upsell-desc {
  text-align: center;
  color: #5580b0;
  font-size: 0.88rem;
  margin: 0 0 22px;
}
.bk-upsell-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
  min-width: 0;
  width: 100%;
}
.bk-upsell-card {
  border: 2.5px solid var(--bn-blue-light);
  border-radius: 14px;
  padding: 20px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  position: relative;
}
.bk-upsell-card:hover {
  border-color: var(--bn-blue-dark) !important;
  background: var(--bn-blue-dark) !important;
  color: #fff !important;
}
.bk-upsell-card:hover .bk-upsell-icon,
.bk-upsell-card:hover .bk-upsell-name { color: #fff; }
.bk-upsell-card.recommended {
  border-color: var(--bn-blue);
  background: var(--bn-bg);
}
.bk-upsell-card.recommended:hover { background: var(--bn-blue-dark); }
.bk-upsell-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--bn-blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.bk-upsell-card.recommended:hover .bk-upsell-badge {
  background: #fff;
  color: var(--bn-blue);
}
.bk-upsell-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 8px;
}
.bk-upsell-icon img {
  display: block !important;
  width: 1em !important;
  height: auto !important;
}
.bk-upsell-name {
  font-family: 'Roboto', 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
  color: var(--bn-text);
  transition: color 0.18s;
}
.bk-upsell-price {
  font-family: 'Dongle', 'Nunito', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bn-blue);
  line-height: 1;
  text-align: center;
  transition: color 0.18s;
}
.bk-upsell-card:hover .bk-upsell-price { color: #fff; }
.bk-upsell-diff {
  display: inline-block;
  font-size: 0.78rem;
  background: #e6f0ff;
  color: var(--bn-blue);
  border-radius: 100px;
  padding: 2px 8px;
  margin-top: 4px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}
.bk-upsell-card:hover .bk-upsell-diff { background: rgba(255,255,255,0.25); color: #fff; }
.bk-upsell-back {
  background: none;
  border: 1.5px solid var(--bn-blue-light);
  color: var(--bn-blue);
  border-radius: 100px;
  padding: 8px 22px;
  font-size: 0.88rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: all 0.15s;
}
.bk-upsell-back:hover { background: var(--bn-blue-dark) !important; color: #fff !important; }

/* ── Standalone upsell ────────────────────────────────────────────────────── */
.single_add_to_cart_button.bk-su-loading {
  opacity: 0.6 !important;
  cursor: wait !important;
  pointer-events: none !important;
}
.bk-upsell-modal .bk-upsell-card .bk-upsell-copy {
  background: var(--bn-bg);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 16px;
}
