/**
 * Single product action styles.
 *
 * Location: /assets/css/frontend/product/single/actions.css
 *
 * @package SunTechPortal
 */

.stp-product-single__purchase {
	display: grid;
	gap: 10px;
	align-items: stretch;
	margin-top: 10px;
}

.stp-product-single__actions {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	align-items: stretch;
	justify-content: flex-start;
	width: 100%;
}

.stp-product-single__actions--purchase {
	grid-template-columns: none;
}

.stp-product-single__qty {
	display: grid;
	align-items: center;
	flex: 0 0 78px;
	width: 78px;
	min-height: 56px;
	margin: 0;
	padding: 0 8px;
	color: var(--stp-product-text);
	background: #fff;
	border: 1px solid var(--stp-product-border-strong);
	border-radius: 8px;
}

.stp-product-single__qty input {
	width: 100%;
	min-width: 0;
	height: 32px;
	margin: 0;
	padding: 0;
	color: var(--stp-product-text);
	background: transparent;
	border: 0;
	box-shadow: none;
	font-size: 15px;
	font-weight: 900;
	line-height: 1;
	text-align: center;
	-moz-appearance: textfield;
}

.stp-product-single__qty input::-webkit-outer-spin-button,
.stp-product-single__qty input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.stp-product-single__qty input:focus {
	outline: 0;
	box-shadow: none;
}

.stp-product-single__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: auto;
	min-width: 115px;
	min-height: 56px;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 950;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.stp-product-single__button--cart,
.stp-product-single__button--outofstock,
.stp-product-single__button--whatsapp,
.stp-product-single__button--download {
	min-width: 138px;
}

.stp-product-single__button--cart {
	color: #fff;
	background: var(--stp-product-primary);
	border: 1px solid var(--stp-product-primary);
	cursor: pointer;
}

.stp-product-single__button--cart:hover,
.stp-product-single__button--cart:focus {
	color: #fff;
	background: var(--stp-product-primary-dark);
	border-color: var(--stp-product-primary-dark);
	outline: none;
}

.stp-product-single__button--cart.is-loading,
.stp-product-single__button--cart[aria-busy="true"] {
	pointer-events: none;
	cursor: progress;
	opacity: 0.86;
}

.stp-product-single__button--cart.is-added {
	background: var(--stp-product-green);
	border-color: var(--stp-product-green);
}

.stp-product-single__button--cart.is-error {
	background: var(--stp-product-danger);
	border-color: var(--stp-product-danger);
}

.stp-product-single__button--outofstock {
	color: #fff;
	background: var(--stp-product-danger);
	border: 1px solid var(--stp-product-danger);
	cursor: not-allowed;
}

.stp-product-single__button--outofstock:hover,
.stp-product-single__button--outofstock:focus {
	color: #fff;
	background: var(--stp-product-danger-dark);
	border-color: var(--stp-product-danger-dark);
}

.stp-product-single__button--whatsapp {
	color: #fff;
	background: var(--stp-product-green);
	border: 1px solid var(--stp-product-green);
}

.stp-product-single__button--whatsapp:hover,
.stp-product-single__button--whatsapp:focus {
	color: #fff;
	background: var(--stp-product-green-dark);
	border-color: var(--stp-product-green-dark);
}

.stp-product-single__button--download {
	color: var(--stp-product-text);
	background: #fff;
	border: 1px solid var(--stp-product-border-strong);
}

.stp-product-single__button--download:hover,
.stp-product-single__button--download:focus {
	color: var(--stp-product-primary-dark);
	border-color: var(--stp-product-primary);
}

button.stp-product-single__button:disabled {
	opacity: 0.82;
}

@media screen and (max-width: 900px) {
	.stp-product-single__actions--purchase {
		flex-wrap: wrap;
	}

	.stp-product-single__button {
		font-size: 12px;
	}
}

@media screen and (max-width: 680px) {
	.stp-product-single__purchase {
		margin-top: 9px;
	}

	.stp-product-single__actions--purchase {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.stp-product-single__qty,
	.stp-product-single__button--cart,
	.stp-product-single__button--outofstock {
		grid-column: 1 / -1;
		width: 100%;
		min-width: 0;
		min-height: 56px;
	}

	.stp-product-single__actions--purchase .stp-product-single__button--whatsapp,
	.stp-product-single__actions--purchase .stp-product-single__button--download {
		grid-column: auto;
		width: 100%;
		min-width: 0;
	}
}

@media screen and (max-width: 430px) {
	.stp-product-single__button {
		padding-right: 8px;
		padding-left: 8px;
		font-size: 12px;
		white-space: normal;
	}
}
