/* ableMove Express VAT Relief */

.amev-host {
	position: relative;
}

/* Invisible cover over the Apple Pay / Google Pay buttons. */
.amev-cover {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10;
	cursor: pointer;
}

.amev-cover:focus-visible {
	outline: 2px solid #0b2a52;
	outline-offset: 2px;
}

.amev-notice {
	margin: 10px 0;
	padding: 10px 12px;
	border-left: 4px solid #0b2a52;
	background: #eef3fa;
	font-size: 0.95em;
}

.amev-link {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

.amev-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.55);
}

.amev-dialog {
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 24px;
	border-radius: 6px;
	background: #fff;
	color: #1d1d1f;
	box-sizing: border-box;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.amev-dialog p {
	margin: 0 0 12px;
}

.amev-title {
	margin: 0 0 12px;
	font-size: 1.35em;
	line-height: 1.25;
}

.amev-saving {
	font-weight: 600;
}

.amev-small {
	font-size: 0.875em;
	color: #4a4a4f;
}

.amev-small a {
	color: inherit;
	text-decoration: underline;
}

.amev-field {
	display: block;
	margin: 0 0 12px;
}

.amev-label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 0.9em;
}

.amev-field input,
.amev-field textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #8a8a90;
	border-radius: 4px;
	font: inherit;
}

.amev-error {
	color: #b00020;
	font-weight: 600;
}

.amev-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.amev-btn {
	padding: 10px 16px;
	border: 1px solid #0b2a52;
	border-radius: 4px;
	background: #fff;
	color: #0b2a52;
	font: inherit;
	cursor: pointer;
}

.amev-btn-primary {
	background: #0b2a52;
	color: #fff;
}

.amev-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.amev-btn:focus-visible {
	outline: 2px solid #0b2a52;
	outline-offset: 2px;
}

.amev-uk {
	font-weight: 600;
}

/* Price display */
.amev-price { display: block; width: 100%; }
.amev-price .amev-sub { display: block; font-size: 0.8em; line-height: 1.4; }
.amev-price .amev-vat-inc { font-size: 0.6em; white-space: nowrap; }
.amev-price .amev-from { font-size: 0.7em; }
.amev-badge {
	display: inline-block;
	margin-top: 6px;
	padding: 3px 8px;
	border-radius: 3px;
	background: #e3f1e6;
	color: #14532d;
	font-size: 0.75em;
	line-height: 1.4;
}
.amev-badge::before { content: "\2713\00a0"; }

/* Shipping options: just a space between name and price */
.woocommerce-shipping-methods li label .amev-ship-price { white-space: nowrap; margin-left: 0.3em; }

/* Cart bar and product-page label */
.amev-cart-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 0 0 16px; text-align: center; }
.amev-cart-bar .amev-badge { margin-top: 0; }
.amev-quick { margin: 14px 0 6px !important; font-size: 0.9em !important; line-height: 1.4 !important; font-weight: 600 !important; }
.amev-quick[hidden] { display: none !important; }

.woocommerce-shipping-methods li p.shipping-method-description { display: none; }
.amev-price .amev-badge { margin-top: 4px; }

/* Delivery outside the UK: no relief messaging, just the price without UK VAT */
.amev-p-intl { display: none; }
html.amev-nonuk .amev-p-intl { display: block; }
html.amev-nonuk .amev-p-inc,
html.amev-nonuk .amev-price .amev-badge { display: none; }

/* Shipping options: keep words whole and use the full width on phones */
.woocommerce-shipping-methods li label .amev-ship { overflow-wrap: normal; word-break: normal; }
@media (max-width: 767px) {
	.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals,
	.woocommerce-checkout-review-order-table .woocommerce-shipping-totals th,
	.woocommerce-checkout-review-order-table .woocommerce-shipping-totals td {
		display: block;
		width: 100%;
		text-align: left;
	}
	.woocommerce-checkout-review-order-table .woocommerce-shipping-methods,
	.woocommerce-checkout-review-order-table .woocommerce-shipping-methods li {
		display: block;
		width: 100%;
		text-align: left;
	}
	.woocommerce-checkout-review-order-table .woocommerce-shipping-methods li label {
		display: flex !important;
		width: 100% !important;
		max-width: 100%;
		text-align: left;
	}
	.woocommerce-checkout-review-order-table .woocommerce-shipping-methods li label .amev-ship {
		flex: 1 1 0%;
		min-width: 0;
		text-align: left;
	}
}
