/* =============================================================
   Drunel – Add to Cart Button
   ============================================================= */

/* ---- Layout ---- */

.drunel-atc {
	display: flex;
	flex-direction: column;
}

.drunel-atc__row {
	display: flex;
	flex-direction: row;
	align-items: center;
	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 ---- */

.drunel-atc__qty {
	text-align: center;
	-moz-appearance: textfield;
	box-sizing: border-box;
}

.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;
}
