/**
 * Zilento Add to Cart Widget Stylesheet
 */

.zilento-atc-widget {
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
}

.zilento-atc-widget *,
.zilento-atc-widget *::before,
.zilento-atc-widget *::after {
	box-sizing: border-box;
}

/* ==========================================
   Header: Price & Tax Suffix / Unit
   ========================================== */
.zilento-atc__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 10px;
}

.zilento-atc__price-wrap {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.zilento-atc__price {
	font-size: 28px;
	font-weight: 700;
	color: #26a670;
	line-height: 1.1;
}

.zilento-atc__suffix {
	font-size: 15px;
	font-weight: 400;
	color: #111827;
}

.zilento-atc__unit {
	font-size: 15px;
	font-weight: 400;
	color: #111827;
	text-align: right;
}

/* ==========================================
   Variations Grid (2 Columns / Stacked)
   ========================================== */
.zilento-atc__variations {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-bottom: 20px;
	width: 100%;
}

.zilento-atc__variations.is-stacked {
	grid-template-columns: 1fr;
}

.zilento-atc__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.zilento-atc__label {
	font-size: 14px;
	font-weight: 600;
	color: #000000;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.zilento-select-wrapper {
	position: relative;
	width: 100%;
}

.zilento-select-wrapper::after {
	content: '';
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 10px;
	height: 6px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23374151' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	pointer-events: none;
}

.zilento-atc__select {
	width: 100%;
	height: 44px;
	padding: 0 36px 0 14px;
	border: 1px solid #dcdfe3;
	border-radius: 4px;
	background-color: #ffffff;
	color: #374151;
	font-size: 14px;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zilento-atc__select:focus {
	border-color: #26a670;
	box-shadow: 0 0 0 2px rgba(38, 166, 112, 0.15);
}

/* ==========================================
   Quantity Stepper Row
   ========================================== */
.zilento-atc__qty-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	width: 100%;
}

.zilento-atc__qty-label {
	font-size: 15px;
	font-weight: 600;
	color: #000000;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.zilento-atc-widget .zilento-qty-box {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 1px solid #000000 !important;
	border-radius: 4px !important;
	overflow: hidden !important;
	background: transparent !important;
	padding: 0 !important;
	height: 36px !important;
	box-shadow: none !important;
}

.zilento-atc-widget .zilento-qty-btn,
button.zilento-qty-btn,
.zilento-atc-widget button.zilento-qty-btn {
	width: 32px !important;
	min-width: 32px !important;
	max-width: 32px !important;
	height: 36px !important;
	min-height: 36px !important;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #000000 !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
	user-select: none !important;
	padding: 0 !important;
	margin: 0 !important;
	transition: background-color 0.2s ease !important;
}

.zilento-atc-widget .zilento-qty-btn:hover,
button.zilento-qty-btn:hover,
.zilento-atc-widget button.zilento-qty-btn:hover {
	background-color: rgba(0, 0, 0, 0.05) !important;
	color: #000000 !important;
	border: none !important;
	box-shadow: none !important;
}

.zilento-atc-widget .zilento-qty-val,
input[type="number"].zilento-qty-val,
.zilento-atc-widget input.zilento-qty-val {
	width: 32px !important;
	min-width: 32px !important;
	max-width: 32px !important;
	height: 36px !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-align: center !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #000000 !important;
	background: transparent !important;
	background-color: transparent !important;
	outline: none !important;
	margin: 0 !important;
	padding: 0 !important;
	-moz-appearance: textfield !important;
}

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

/* ==========================================
   Add to Cart Button
   ========================================== */
.zilento-atc__btn {
	width: auto;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 32px;
	background-color: #2ca96b;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	gap: 8px;
}

.zilento-atc__btn:hover {
	background-color: #238d58;
}

.zilento-atc__btn:active {
	transform: translateY(1px);
}

.zilento-atc__btn.is-loading {
	opacity: 0.75;
	cursor: not-allowed;
	pointer-events: none;
}

.zilento-atc__btn.is-added {
	background-color: #111827;
}

/* ==========================================
   Responsive Adjustments
   ========================================== */
@media (max-width: 767px) {
	.zilento-atc__variations {
		grid-template-columns: 1fr;
	}
}
