/* ==========================================================================
   B2B: banner mayorista, etiqueta de precio y modales (info / registro)
   Usa los tokens del tema si están; si no, cae a los colores de la marca.
   ========================================================================== */

/* Banner "precios mayoristas" (barra superior) */
.ipt-wh-banner {
	display: flex; align-items: center; justify-content: center; gap: 9px;
	background: linear-gradient(90deg, var(--pt-teal-600, #127c7c), var(--pt-teal, #22a8a8));
	color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .2px;
	padding: 9px 16px; text-align: center;
}
.ipt-wh-banner__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pt-yellow, #e8d828); box-shadow: 0 0 0 4px rgba(232,216,40,.28); }

/* Etiqueta "mayorista" junto al precio */
.ipt-wh-tag {
	display: inline-block; vertical-align: middle; margin-left: 6px;
	font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
	color: var(--pt-teal-600, #127c7c); background: var(--pt-teal-50, #e6f6f6);
	border: 1px solid var(--pt-teal, #22a8a8); border-radius: 999px; padding: 2px 8px;
}

/* Modal */
.ipt-b2b-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 18px; }
.ipt-b2b-modal[hidden] { display: none; }
.ipt-b2b-modal__ov { position: absolute; inset: 0; background: rgba(24,12,20,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.ipt-b2b-modal__box {
	position: relative; z-index: 1; width: 100%; max-width: 500px; max-height: 92vh; overflow-y: auto;
	background: #fff; border-radius: 20px; padding: 30px 30px 26px;
	box-shadow: 0 40px 90px -30px rgba(24,12,20,.7);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	animation: iptB2bIn .28s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes iptB2bIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.ipt-b2b-modal__x {
	position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
	border: 0; background: #f3eef1; color: #2a1522; font-size: 22px; line-height: 1; cursor: pointer;
}
.ipt-b2b-modal__x:hover { background: #e9e0e6; }
.ipt-b2b-modal__title { margin: 0 30px 6px 0; font-size: 23px; font-weight: 800; color: #241827; }
.ipt-b2b-modal__sub { margin: 0 0 18px; font-size: 14.5px; line-height: 1.5; color: #6b5f6b; }

.ipt-b2b-form { display: flex; flex-direction: column; gap: 13px; }
.ipt-b2b-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.ipt-b2b-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: #4a3f49; }
.ipt-b2b-form input, .ipt-b2b-form textarea {
	font: inherit; font-size: 14.5px; font-weight: 400; color: #241827;
	border: 1.5px solid #e2d8df; border-radius: 11px; padding: 11px 13px; background: #fff; width: 100%;
}
.ipt-b2b-form input:focus, .ipt-b2b-form textarea:focus { outline: none; border-color: var(--pt-brand, #e5305f); box-shadow: 0 0 0 3px var(--pt-brand-50, #fdeef3); }
.ipt-b2b-form textarea { resize: vertical; }
.ipt-b2b-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.ipt-b2b-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	margin-top: 4px; padding: 14px 20px; border: 0; border-radius: 12px; cursor: pointer;
	font: inherit; font-size: 15.5px; font-weight: 800; text-decoration: none;
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.ipt-b2b-btn--primary { background: var(--pt-brand, #e5305f); color: #fff; box-shadow: 0 12px 26px -12px rgba(229,48,95,.7); }
.ipt-b2b-btn--primary:hover { background: var(--pt-brand-600, #c21f4c); transform: translateY(-2px); }
.ipt-b2b-btn:disabled { opacity: .65; cursor: default; transform: none; }
.ipt-b2b-msg { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--pt-brand-600, #c21f4c); min-height: 1em; }

.ipt-b2b-done { text-align: center; padding: 14px 0 6px; }
.ipt-b2b-done__c { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #fff; background: linear-gradient(135deg, var(--pt-teal, #22a8a8), var(--pt-teal-600, #127c7c)); }
.ipt-b2b-done b { display: block; font-size: 18px; color: #241827; margin-bottom: 4px; }
.ipt-b2b-done span { color: #6b5f6b; font-size: 14px; }

@media (max-width: 520px) {
	.ipt-b2b-modal__box { padding: 24px 20px; border-radius: 16px; }
	.ipt-b2b-grid { grid-template-columns: 1fr; }
	.ipt-b2b-modal__title { font-size: 20px; }
}
