/**
 * BCS Consents Log - Checkout Styles
 *
 * Styles for consent checkboxes at WooCommerce checkout.
 * Follows WooCommerce default styling patterns for consistency.
 *
 * @package BCS_Consents_Log
 */

/* Container for all consent checkboxes */
.bcl-checkout-consents {
	margin: 1.5em 0;
	padding: 1em;
	background: #f8f8f8;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
}

/* Individual consent checkbox row */
.bcl-consent-checkbox {
	margin-bottom: 0.75em;
}

.bcl-consent-checkbox:last-child {
	margin-bottom: 0;
}

/* Checkbox label styling */
.bcl-consent-checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 0.5em;
	line-height: 1.5;
	cursor: pointer;
}

/* Checkbox input */
.bcl-consent-checkbox input[type="checkbox"] {
	margin-top: 0.25em;
	flex-shrink: 0;
}

/* Consent text */
.bcl-consent-text {
	font-size: 0.9em;
	color: #333;
}

/* Required marker */
.bcl-consent-checkbox .required {
	color: #e2401c;
	font-weight: bold;
	text-decoration: none;
	margin-left: 0.25em;
}

/* Links within consent text */
.bcl-consent-text a {
	color: inherit;
	text-decoration: underline;
}

.bcl-consent-text a:hover {
	text-decoration: none;
}

/* Error state - when validation fails */
.bcl-consent-checkbox.woocommerce-invalid input[type="checkbox"] {
	border-color: #e2401c;
	box-shadow: 0 0 0 1px #e2401c;
}

/* Focus state for accessibility */
.bcl-consent-checkbox input[type="checkbox"]:focus {
	outline: 2px solid #007cba;
	outline-offset: 2px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
	.bcl-checkout-consents {
		padding: 0.75em;
	}

	.bcl-consent-text {
		font-size: 0.85em;
	}
}
