/* WhatsApp Checkout — Product Requests frontend styles. */

/* Request-only products: hide the native add-to-cart button
   (the request form renders its own type=button submit). */
body.wcwac-request-product form.cart .single_add_to_cart_button:not(.wcwac-request-submit) {
	display: none !important;
}

/* Request-only products: hide theme Buy Now buttons (plugin-mode Buy Now
   already skips rendering; theme-mode repurposing stays inert via the
   wcwacProduct.request JS flag). */
body.wcwac-request-product .wd-buy-now-btn,
body.wcwac-request-product [class*="wd-buy-now"],
body.wcwac-request-product a[href*="wd-add-to-cart"],
body.wcwac-request-product .single_buy_now,
body.wcwac-request-product .buy-now {
	display: none !important;
}

/* Non-audience visitors: hide the whole purchase form; a notice
   renders separately above. */
body.wcwac-request-blocked form.cart {
	display: none !important;
}

.wcwac-request-wrap {
	margin: 1.25em 0;
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.wcwac-request-notice {
	margin: 0 0 1em;
}

/* Tier table. */
table.wcwac-request-tiers {
	border-collapse: collapse;
	max-width: 420px;
}
table.wcwac-request-tiers th,
table.wcwac-request-tiers td {
	border: 1px solid #e2e2e2;
	padding: 6px 12px;
	text-align: left;
	font-size: 0.92em;
}
table.wcwac-request-tiers th {
	background: #f7f7f7;
}

/* Add-ons. */
fieldset.wcwac-request-addons {
	border: 1px solid #e2e2e2;
	padding: 10px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
fieldset.wcwac-request-addons legend {
	font-weight: 600;
	padding: 0 6px;
}
.wcwac-request-addon {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
	cursor: pointer;
}
.wcwac-request-addon-name {
	font-weight: 600;
}
.wcwac-request-addon-desc {
	color: #777;
	font-size: 0.9em;
}
.wcwac-request-addon-price {
	color: #1da851;
	font-size: 0.9em;
}
.wcwac-request-addon-required .wcwac-request-addon-name::after {
	content: " *";
	color: #b32d2e;
}

/* Notes. */
.wcwac-request-notes label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}
.wcwac-request-notes-input {
	width: 100%;
	max-width: 480px;
}

/* Estimate block. */
.wcwac-request-estimate {
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	padding: 10px 14px;
	max-width: 420px;
	position: relative;
	background: #fbfbfb;
}
.wcwac-request-estimate.wcwac-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.6);
}
dl.wcwac-estimate-lines {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.wcwac-estimate-line {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
}
.wcwac-estimate-line dt {
	font-weight: 500;
}
.wcwac-estimate-line dd {
	margin: 0;
	white-space: nowrap;
}
.wcwac-estimate-total dt,
.wcwac-estimate-total dd {
	font-weight: 700;
	font-size: 1.05em;
}
.wcwac-estimate-noprice {
	font-weight: 600;
}
.wcwac-estimate-note {
	margin-top: 6px;
	font-size: 0.88em;
	color: #8c6d1f;
}

/* Submit button. */
.wcwac-request-submit {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	width: auto !important;
}
.wcwac-request-submit.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* Blocked notice. */
.wcwac-request-blocked-notice {
	margin: 1em 0;
}
