/* =============================================================================
   ConsentPlugin — consent checkbox + coupon-locking styles
   ============================================================================= */

/* --------------------------------------------------------------------------
   Custom styled checkbox (both checkout and account page)
   -------------------------------------------------------------------------- */
.hennaran-checkbox-wrapper {
	margin: 0 0 1em;
}

.hennaran-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
	cursor: pointer;
	font-size: 0.95em;
	line-height: 1.5;
	position: relative;
}

/* Hide the native checkbox visually but keep it accessible */
.hennaran-checkbox-label input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* Custom checkmark box */
.hennaran-checkmark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border: 2px solid #767676;
	border-radius: 3px;
	background: #fff;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.hennaran-checkmark::after {
	content: "";
	display: none;
	width: 5px;
	height: 10px;
	border: 2px solid #fff;
	border-top: none;
	border-left: none;
	transform: rotate(45deg) translateY(-1px);
}

.hennaran-checkbox-label input[type="checkbox"]:checked ~ .hennaran-checkmark {
	background: #2271b1;
	border-color: #2271b1;
}

.hennaran-checkbox-label input[type="checkbox"]:checked ~ .hennaran-checkmark::after {
	display: block;
}

.hennaran-checkbox-label input[type="checkbox"]:focus ~ .hennaran-checkmark {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.hennaran-label-text {
	flex: 1;
}

/* --------------------------------------------------------------------------
   Apply button — disabled state while consent or coupon code is missing
   -------------------------------------------------------------------------- */
.wc-block-components-totals-coupon button[type="submit"]:disabled,
.wc-block-components-totals-coupon .wc-block-components-button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Checkout component wrapper
   -------------------------------------------------------------------------- */
.hennaran-checkout-consent {
	margin: 0 0 1em;
	padding: 0.75em 1em;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	background: #fafafa;
}

/* --------------------------------------------------------------------------
   Account page preferences
   -------------------------------------------------------------------------- */
.hennaran-account-preferences {
	max-width: 640px;
}

.hennaran-status-sentence {
	font-weight: 500;
	margin-bottom: 1.25em;
}

.hennaran-log-table {
	margin-top: 0.75em;
	width: 100%;
	border-collapse: collapse;
}

.hennaran-log-table th,
.hennaran-log-table td {
	padding: 0.5em 0.75em;
	text-align: left;
	border-bottom: 1px solid #e2e8f0;
}

.hennaran-log-table thead th {
	background: #f8f8f8;
	font-weight: 600;
}
