/**
 * AAW PrimeElectricDepot Addons — Add to Cart / Buy Now widget styles
 */

.aaw-add-to-cart-buy-now {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	max-width: 520px;
}

/* Quantity box */
.aaw-qty-box {
	display: inline-flex !important;
	align-items: stretch;
	width: fit-content;
	border: 1px solid #dcdfe4 !important;
	border-radius: 6px !important;
	overflow: hidden;
	background: #ffffff !important;
	box-shadow: none !important;
}

.aaw-qty-btn {
	background: transparent !important;
	border: none !important;
	width: 36px;
	height: 38px;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	color: #1a2b4a !important;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease;
	user-select: none;
}

.aaw-qty-btn:hover {
	background-color: rgba(0, 0, 0, 0.03) !important;
}

.aaw-qty-btn:first-child {
	border-right: 1px solid #dcdfe4 !important;
}

.aaw-qty-btn:last-child {
	border-left: 1px solid #dcdfe4 !important;
}

.aaw-qty-input {
	width: 44px;
	height: 38px;
	border: none !important;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	color: #1a2b4a !important;
	background: transparent !important;
	-moz-appearance: textfield;
}

.aaw-qty-input:focus {
	outline: none;
}

.aaw-qty-input::-webkit-outer-spin-button,
.aaw-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Buttons row */
.aaw-atc-buynow-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	width: 100%;
}

.aaw-btn {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: none;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 16px 24px;
	border-radius: 8px;
	transition: background-color 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
	white-space: nowrap;
}

.aaw-btn:active {
	transform: translateY(1px);
}

.aaw-btn-add-to-cart {
	background-color: #f0530f;
	color: #ffffff;
}

.aaw-btn-add-to-cart:hover {
	background-color: #d6480c;
}

.aaw-btn-buy-now {
	background-color: #0b1f4d;
	color: #ffffff;
}

.aaw-btn-buy-now:hover {
	background-color: #081636;
}

.aaw-btn-icon {
	display: inline-flex;
	align-items: center;
	font-size: 16px;
	line-height: 1;
}

.aaw-btn-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.aaw-btn.aaw-is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.aaw-btn.aaw-is-loading .aaw-btn-text::after {
	content: '\2026';
}

/* View Cart text swap: once an item has been added, hide the "Add to Cart"
 * text and show "View Cart" in its place (same button, same position). */
.aaw-btn-text-view-cart {
	display: none;
}

.aaw-btn-add-to-cart.aaw-added .aaw-btn-text {
	display: none;
}

.aaw-btn-add-to-cart.aaw-added .aaw-btn-text-view-cart {
	display: inline-flex;
	align-items: center;
}

.aaw-message {
	font-size: 13px;
}

.aaw-message.aaw-message-success {
	color: #1a7f37;
}

.aaw-message.aaw-message-error {
	color: #c0392b;
}

.aaw-out-of-stock {
	color: #c0392b;
	font-weight: 600;
}

.aaw-ped-editor-notice {
	padding: 14px 16px;
	background: #fff8e5;
	border: 1px dashed #e0b93b;
	border-radius: 6px;
	color: #6b5300;
	font-size: 13px;
}

/* Responsive: stack buttons on very small widths */
@media (max-width: 420px) {
	.aaw-atc-buynow-buttons {
		flex-direction: column;
	}

	.aaw-btn {
		width: 100%;
	}
}
