/* B2B Wholesale — фронтенд */

.b2b-register-form .form-row { margin-bottom: 14px; }
.b2b-register-form label { display:block; font-weight:600; margin-bottom:4px; }
.b2b-register-form small { display:block; color:#777; font-weight:400; margin-top:3px; }
.b2b-register-form .input-text,
.b2b-register-form select,
.b2b-register-form textarea {
	width:100%; max-width:520px; padding:9px 11px;
	border:1px solid #ccc; border-radius:6px; box-sizing:border-box;
}
.b2b-register-form .b2b-checkbox { font-weight:400; }
.b2b-register-form .required { color:#c00; }
.b2b-register-form .b2b-file-row input[type=file] { padding:6px 0; }
.b2b-register-form button[type=submit] {
	background:#1a1a1a; color:#fff; border:0; padding:12px 26px;
	border-radius:6px; cursor:pointer; font-size:15px;
}
.b2b-register-form button[type=submit]:hover { background:#000; }

.b2b-success {
	border:1px solid #1a7f37; background:#f0fff4; color:#10501f;
	padding:18px 22px; border-radius:8px;
}
.b2b-success h3 { margin-top:0; }

/* Приховані ціни */
.b2b-price-hidden { color:#777; font-style:italic; }
.b2b-price-notice {
	background:#fff7e6; border:1px solid #f0c36d; color:#7a5b00;
	padding:10px 14px; border-radius:6px; margin:10px 0;
}

/* Кнопки «Реєстрація / Вхід» під повідомленням на сторінці товару */
.b2b-price-actions {
	display:flex; flex-wrap:wrap; gap:10px; margin:6px 0 16px;
}
.b2b-price-actions .b2b-btn {
	display:inline-flex; align-items:center; gap:8px;
	padding:10px 18px; border-radius:6px; font-weight:600; line-height:1;
	text-decoration:none; cursor:pointer; border:1px solid transparent;
	transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.b2b-price-actions .b2b-btn svg { flex:0 0 auto; }
.b2b-price-actions .b2b-btn-register {
	background:#7a5b00; color:#fff;
}
.b2b-price-actions .b2b-btn-register:hover { background:#5c4500; color:#fff; }
.b2b-price-actions .b2b-btn-login {
	background:#fff; color:#7a5b00; border-color:#f0c36d;
}
.b2b-price-actions .b2b-btn-login:hover { background:#fff7e6; color:#5c4500; }

/* Іконки «Реєстрація / Вхід» поверх фото товару в каталозі (при наведенні) */
.woocommerce ul.products li.product,
ul.products li.product { position:relative; }
.b2b-loop-overlay {
	position:absolute; top:10px; right:10px; z-index:5;
	display:flex; flex-direction:column; gap:8px;
	opacity:0; transform:translateY(-4px); pointer-events:none;
	transition:opacity .18s ease, transform .18s ease;
}
li.product:hover .b2b-loop-overlay,
li.product:focus-within .b2b-loop-overlay {
	opacity:1; transform:translateY(0); pointer-events:auto;
}
.b2b-loop-icon {
	display:inline-flex; align-items:center; justify-content:center;
	width:40px; height:40px; border-radius:50%;
	background:#fff; color:#7a5b00; border:1px solid #f0c36d;
	box-shadow:0 2px 6px rgba(0,0,0,.12); text-decoration:none;
	transition:background .15s ease, color .15s ease, transform .1s ease;
}
.b2b-loop-icon:hover { background:#7a5b00; color:#fff; transform:scale(1.06); }
@media (max-width:768px) {
	/* На сенсорних екранах показуємо іконки завжди — без наведення */
	.b2b-loop-overlay { opacity:1; transform:none; pointer-events:auto; }
}

/* SMS-вхід */
.b2b-sms-login { max-width:420px; }
.b2b-sms-login .b2b-input {
	width:100%; padding:11px 13px; font-size:18px; letter-spacing:1px;
	border:1px solid #ccc; border-radius:6px; box-sizing:border-box; margin-bottom:12px;
}
.b2b-sms-login .b2b-code { text-align:center; letter-spacing:8px; font-size:24px; }
.b2b-sms-login .button {
	background:#1a1a1a; color:#fff; border:0; padding:12px 22px;
	border-radius:6px; cursor:pointer; width:100%; font-size:16px;
}
.b2b-sms-login .button:hover { background:#000; }
.b2b-sms-login .b2b-link {
	background:none; border:0; color:#0a58ca; cursor:pointer;
	margin-top:12px; padding:6px; width:100%; font-size:14px;
}
.b2b-sms-login .b2b-link[disabled] { color:#999; cursor:default; }
.b2b-sms-msg { margin-top:14px; padding:10px 12px; border-radius:6px; display:none; }
.b2b-sms-msg.error { display:block; background:#fde8e8; color:#9b1c1c; }
.b2b-sms-msg.success { display:block; background:#e6f4ea; color:#10501f; }
.b2b-sent-to { color:#555; }

/* Перемикач валюти (грн / EUR) */
.b2b-currency-switch{display:flex;align-items:center;gap:6px;margin:0 0 14px;flex-wrap:wrap;}
.b2b-currency-label{color:#777;font-size:14px;}
.b2b-cur-btn{display:inline-flex;align-items:center;padding:5px 12px;border-radius:20px;
	border:1px solid #ddd;background:#fff;color:#555;text-decoration:none;font-size:14px;line-height:1;
	transition:background .15s ease,color .15s ease,border-color .15s ease;}
.b2b-cur-btn:hover{border-color:#f0c36d;color:#7a5b00;}
.b2b-cur-btn.is-active{background:#7a5b00;border-color:#7a5b00;color:#fff;}
.b2b-price-eur{font-weight:600;}
.b2b-price-note{color:#888;font-size:12px;white-space:nowrap;}
