/* VAT relief — all single product templates (theme + Elementor) */
.hcw-vat-buy {
	margin: 1rem 0;
}

.hcw-vat-buy .vopts,
.woocommerce .hcw-vat-buy .vopts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 12px;
}

.hcw-vat-buy .vopt {
	text-align: left;
	padding: 16px 18px;
	border-radius: 14px;
	border: 1.5px solid var(--hcw-line, #d8e3de);
	background: #fff;
	display: grid;
	gap: 2px;
	transition: border-color 0.2s, background 0.2s;
	position: relative;
	cursor: pointer;
	font: inherit;
	width: 100%;
}

.hcw-vat-buy .vopt[aria-checked='true'] {
	border-color: var(--hcw-ink, #013126);
	background: var(--hcw-mint-wash, #f2faf6);
	box-shadow: inset 0 0 0 1px var(--hcw-ink, #013126);
}

.hcw-vat-notice {
	margin-top: 16px;
	padding: 16px 18px;
	border-radius: 14px;
	border: 1.5px solid var(--hcw-mint-soft, #c5e8d4);
	background: var(--hcw-mint-wash, #f2faf6);
	display: none;
	gap: 14px;
}

/* Show only when VAT exempt is selected and declaration not yet complete */
.hcw-vat-buy:not(.hcw-vat-declaration-done):has(.vopt[data-vat-mode='exempt'][aria-checked='true']) .hcw-vat-notice,
.hcw-vat-notice.is-visible {
	display: grid !important;
}

.hcw-vat-notice__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--hcw-ink-2, #1a4a3c);
}

.hcw-vat-notice__btn,
.hcw-btn.hcw-btn--line {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	height: 44px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	border: 1.5px solid var(--hcw-ink, #013126);
	background: #fff;
	color: var(--hcw-ink, #013126);
}

.hcw-is-disabled,
.single_add_to_cart_button:disabled {
	opacity: 0.45;
	pointer-events: none;
	cursor: not-allowed;
}

.hcw-vat-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	place-items: center;
	padding: 24px;
}

.hcw-vat-modal.is-open {
	display: grid !important;
}

.hcw-vat-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(1, 49, 38, 0.55);
}

.hcw-vat-modal__panel {
	position: relative;
	z-index: 1;
	width: min(480px, 100%);
	max-height: min(90vh, 720px);
	overflow: auto;
	background: #fff;
	border-radius: 20px;
	padding: 28px 24px 24px;
	box-shadow: 0 24px 80px rgba(1, 49, 38, 0.2);
}

.hcw-vat-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: #5c6b66;
	cursor: pointer;
}

.hcw-vat-modal__title {
	font-size: 26px;
	line-height: 1.2;
	color: var(--hcw-ink, #013126);
	margin: 0 0 20px;
	padding-right: 28px;
}

.hcw-vat-form {
	display: grid;
	gap: 14px;
}

.hcw-vat-field {
	display: grid;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
}

.hcw-vat-field--condition {
	display: none;
}

.hcw-vat-field--condition.is-visible,
.hcw-vat-field--condition:not([hidden]) {
	display: grid;
}

.hcw-vat-field input,
.hcw-vat-field select {
	font: inherit;
	font-weight: 400;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1.5px solid var(--hcw-line, #d8e3de);
	background: #fff;
}

.hcw-vat-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}

.hcw-vat-form__err {
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fdecec;
	color: #8b1a1a;
	font-size: 14px;
}

.hcw-vat-form__submit {
	width: 100%;
	justify-content: center;
	min-height: 48px;
	border: 0;
	border-radius: 999px;
	background: var(--hcw-ink, #013126);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.hcw-vat-form.hcw-vat-form--hidden {
	display: none;
}

.hcw-vat-success {
	display: none;
	gap: 16px;
	text-align: left;
}

.hcw-vat-success.is-visible {
	display: grid;
}

.hcw-vat-success__title {
	margin: 0;
	font-size: 22px;
	color: var(--hcw-ink, #013126);
}

.hcw-vat-success__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--hcw-ink-2, #1a4a3c);
}

.hcw-vat-success__ok {
	width: 100%;
	justify-content: center;
	min-height: 48px;
}

html.hcw-vat-modal-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.hcw-vat-buy .vopts {
		grid-template-columns: 1fr;
	}
}