/* Amox Quick Checkout — "buy now" button */

.amox-qc-btn {
	--amox-qc-color: #000;
	--amox-qc-contrast: #fff;

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin: 10px 0 0;
	padding: 12px 16px;
	border: 1px solid var(--amox-qc-color);
	border-radius: 1px;
	background: transparent;
	color: var(--amox-qc-color);
	font: inherit;
	font-size: 14px;
	line-height: 1.3;
	letter-spacing: 1px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, opacity .2s;
}

/* The theme paints its buttons with a ::before layer — keep ours clean. */
.amox-qc-btn::before,
.amox-qc-btn::after {
	content: none !important;
	display: none !important;
}

.amox-qc-btn:hover,
.amox-qc-btn:focus-visible {
	background: var(--amox-qc-color);
	color: var(--amox-qc-contrast);
	text-decoration: none;
}
.amox-qc-btn:focus-visible {
	outline: 2px solid var(--amox-qc-color);
	outline-offset: 2px;
}

.amox-qc-btn--solid {
	background: var(--amox-qc-color);
	color: var(--amox-qc-contrast);
}
.amox-qc-btn--solid:hover,
.amox-qc-btn--solid:focus-visible {
	opacity: .88;
}

.amox-qc-btn__icon {
	flex: none;
}

.amox-qc-btn.is-disabled {
	opacity: .45;
	cursor: not-allowed;
}
.amox-qc-btn.is-disabled:hover {
	background: transparent;
	color: var(--amox-qc-color);
}
.amox-qc-btn--solid.is-disabled:hover {
	background: var(--amox-qc-color);
	color: var(--amox-qc-contrast);
	opacity: .45;
}

.amox-qc-btn.is-loading {
	pointer-events: none;
	opacity: .7;
}
.amox-qc-btn.is-loading .amox-qc-btn__icon {
	animation: amox-qc-pulse .8s ease-in-out infinite alternate;
}

/* Cards: add-to-cart + quick buy side by side in the theme's button wrapper.
 * Both share the row equally and wrap to two full-width lines on narrow cards. */
.woocommerce ul.products li.product .quantity--wrapper.amox-qc-row,
.quantity--wrapper.amox-qc-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 8px;
	max-width: 100%;
}
.woocommerce ul.products li.product .quantity--wrapper.amox-qc-row > button.add-to-cart,
.quantity--wrapper.amox-qc-row > .add-to-cart,
.quantity--wrapper.amox-qc-row > .amox-qc-btn--card {
	flex: 1 1 0;
	width: auto;
	min-width: fit-content;
	max-width: none;
	margin: 0;
	white-space: nowrap;
}
.amox-qc-btn--card {
	gap: 6px;
}
.amox-qc-btn--card .amox-qc-btn__icon {
	width: 14px;
	height: 14px;
}

/* Product page: sit on its own line under the add-to-cart row. */
.amox-qc-btn--single {
	flex: 1 1 100%;
	order: 99;
	min-height: 48px;
	border-radius: 8px;
	font-size: 16px;
}
form.cart:has(.amox-qc-btn--single) {
	flex-wrap: wrap;
}

@keyframes amox-qc-pulse {
	from { opacity: 1; }
	to   { opacity: .3; }
}
