/* =============================================================
   Drunel – Add to Cart Button
   ============================================================= */

/* ---- Layout ---- */

.drunel-atc {
	display: flex;
	flex-direction: column;
}

.drunel-atc__row {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 10px;
}

/* ---- Button ---- */

.drunel-atc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0 solid transparent;
	border-style: solid;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
	line-height: 1.4;
	white-space: nowrap;
	box-sizing: border-box;
}

.drunel-atc__btn--disabled {
	cursor: not-allowed;
	pointer-events: none;
}

/* ---- Icon ---- */

.drunel-atc__icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.drunel-atc__icon svg {
	fill: currentColor;
}

/* ---- Quantity wrapper ---- */

.drunel-atc__qty-wrap {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	box-sizing: border-box;
	background: #fff;
	flex-shrink: 0;
}

/* +/- buttons */
.drunel-atc__qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	align-self: center;
	padding: 0 !important;
	margin: 4px !important;
	border: none !important;
	border-radius: 4px !important;
	background-color: transparent;
	color: #333 !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	cursor: pointer;
	user-select: none;
	transition: background-color 0.15s ease, color 0.15s ease;
	box-shadow: none !important;
	outline: none;
	min-height: 0 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	flex-shrink: 0;
	background-image: none !important;
}

.drunel-atc__qty-btn:hover {
	background-color: rgba(0, 0, 0, 0.08);
}

.drunel-atc__qty-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

/* Disabled state: waiting for variation selection */
.drunel-atc__qty-wrap--disabled {
	opacity: 0.5;
	pointer-events: none;
}

/* ---- Quantity input ---- */

.drunel-atc__qty {
	flex: 1;
	text-align: center;
	-moz-appearance: textfield;
	box-sizing: border-box;
	border: none !important;
	outline: none;
	min-width: 0;
	background: transparent !important;
	font-size: 15px;
	font-weight: 500;
	color: #333;
	padding: 0 !important;
}

.drunel-atc__qty::-webkit-outer-spin-button,
.drunel-atc__qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ---- Loading indicator ---- */

.drunel-atc__loading {
	font-size: 0.85em;
	color: #777;
	margin-top: 6px;
}

/* ---- Result message ---- */

.drunel-atc__message {
	font-size: 0.85em;
	margin-top: 6px;
}

.drunel-atc__message--success {
	color: #46b450;
}

.drunel-atc__message--error {
	color: #dc3232;
}

/* ---- Alignment ---- */

.drunel-atc-align-left .drunel-atc__row {
	justify-content: flex-start;
}

.drunel-atc-align-center .drunel-atc__row {
	justify-content: center;
}

.drunel-atc-align-right .drunel-atc__row {
	justify-content: flex-end;
}

.drunel-atc-align-stretch .drunel-atc__row {
	width: 100%;
}

.drunel-atc-align-stretch .drunel-atc__btn {
	flex: 1;
	width: 100%;
}

/* ---- Editor placeholder ---- */

.drunel-atc--placeholder .drunel-atc__btn {
	background: #333;
	color: #fff;
	padding: 12px 28px;
	border-radius: 4px;
}
