/* Hide any leftover cart UI */
.add_to_cart_button,
.single_add_to_cart_button,
.ajax_add_to_cart,
.wc-block-components-product-button__button:not(.wib-open),
.wc-block-mini-cart,
.widget_shopping_cart,
.woocommerce-mini-cart,
.xoo-wsc-modal,
.menu-item-cart,
.site-header-cart,
.header-cart,
.cart-contents {
	display: none !important;
}

.wib-single-wrap { margin: 1em 0; }
.wib-open { cursor: pointer; }

/* Popup */
html.wib-lock, html.wib-lock body { overflow: hidden; }

.wib-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	overflow-y: auto;
}
.wib-overlay[hidden] { display: none; }

.wib-modal {
	position: relative;
	background: #fff;
	color: #222;
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	border-radius: 8px;
	padding: 28px 24px 24px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
.wib-modal h3 { margin: 0 0 16px; font-size: 1.3em; padding-right: 32px; }

.wib-close {
	position: absolute;
	top: 8px;
	right: 10px;
	background: none;
	border: 0;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #555;
	padding: 4px 8px;
}
.wib-close:hover { color: #000; }

.wib-field { margin-bottom: 14px; }
.wib-field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .92em; }
.wib-field input[type="text"],
.wib-field input[type="email"],
.wib-field input[type="tel"],
.wib-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 1em;
}
.wib-field input:focus,
.wib-field textarea:focus { outline: 2px solid #2271b1; outline-offset: 0; }

.wib-product-name {
	background: #f4f5f7;
	border-radius: 4px;
	padding: 10px 12px;
	font-weight: 600;
}

.wib-consent label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; font-size: .85em; }
.wib-consent input { margin-top: 3px; }

.wib-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wib-msg { margin: 0 0 12px; font-size: .92em; }
.wib-msg:empty { display: none; }
.wib-ok { color: #1a7f37; font-weight: 600; }
.wib-err { color: #b32d2e; }

.wib-submit { width: 100%; }
.wib-form.wib-done .wib-field,
.wib-form.wib-done .wib-submit { display: none; }
