/**
 * Clos de Caille - Export
 * Export availability: notice, badge and hidden purchase controls.
 *
 * Deliberately minimal: the shortcodes accept a `class` attribute so the
 * theme (or Elementor) styles the elements; only the states are set here.
 */

/* Placeholders ship hidden; the script (or the server) reveals them. */
.cdc-export-notice[hidden],
.cdc-export-badge[hidden],
form.cart[hidden],
.add_to_cart_button[hidden] {
	display: none !important;
}

.cdc-export-notice {
	margin: 0 0 1em;
	padding: 0.75em 1em;
	border: 1px solid currentColor;
	font-size: 0.95em;
	line-height: 1.4;
}

.cdc-export-badge {
	display: inline-block;
	font-size: 0.8em;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: 0.8;
}

/* Server-rendered mode: the loop item is flagged by a post class. */
.cdc-export-unavailable .add_to_cart_button,
.cdc-export-unavailable .ajax_add_to_cart {
	display: none !important;
}

/* Variation selected that cannot be exported. */
.single_add_to_cart_button.cdc-export-disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
