/* ------------------------------
   Estilo base do widget
--------------------------------*/
.custom-atc-wrapper {
	display: flex;
	align-items: center;
	gap: 5px;
	justify-content: flex-end;
	flex-wrap: wrap;
	font-family: "Inter", system-ui, sans-serif;
	flex-direction: row-reverse;
}

/* ------------------------------
   Seletor de quantidade compacto
--------------------------------*/
.custom-quantity {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px; /* reduzido para equilibrar o tamanho */
	background: transparent;
	min-width: 110px; /* evita sumir em flex */
	box-sizing: border-box;
}

.custom-quantity .qty-btn {
	width: 35px;
	height: 35px;
	border: 1.3px solid #111;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 500;
	background: transparent;
	color: #111;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.25s ease;
	box-sizing: border-box;
}

.custom-quantity .qty-btn:hover {
	background: #111;
	color: #fff;
	transform: scale(1.05);
}

.custom-quantity .qty {
	width: 35px;
	height: 35px;
	border: 1.3px solid #111;
	border-radius: 50%;
	text-align: center;
	font-size: 12px;
	font-weight: 500;
	background: transparent;
	color: #111;
	outline: none;
	transition: all 0.25s ease;
	box-sizing: border-box;
	padding: 10px;
}

.custom-quantity .qty:focus {
	transform: scale(1.05);
	border-color: #000;
}

/* Remove setinhas padrão */
.custom-quantity .qty::-webkit-inner-spin-button,
.custom-quantity .qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ------------------------------
   Botão "Comprar Agora"
--------------------------------*/
.custom-atc-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 13px 32px;
	background-color: #111;
	color: #fff;
	border: none;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-atc-btn svg {
	display: none;
}

.custom-atc-btn:hover {
	background-color: #000;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.custom-atc-btn:active {
	transform: scale(0.97);
}

/* ------------------------------
   Responsivo
--------------------------------*/
@media (max-width: 480px) {
	.custom-quantity {
		gap: 6px;
	}

	.custom-quantity .qty-btn,
	.custom-quantity .qty {
		width: 32px;
		height: 32px;
		font-size: 12px;
	}

	.custom-atc-btn {
		padding: 11px 24px;
		font-size: 14px;
	}
}

/* ----------------------------------------
   Corrige conflito de cor rosa global
---------------------------------------- */
[type=button], [type=submit], button {
	border: none !important;
}

.custom-atc-btn {
	background-color: #70f8ce !important;
	color: #B16533 !important;
	font-size: 13px !important;
	font-family: 'Montserrat';
	font-weight: 600 !important;
	border-radius: 100px !important;
}

/* Neutraliza regras de outros temas */
.custom-atc-wrapper button,
.custom-atc-wrapper [type=button],
.custom-atc-wrapper [type=submit] {
	background: transparent;
	color: #111;
	text-decoration: none;
	box-shadow: none;
}

/* Hover e foco dos botões dentro do widget */
.custom-atc-wrapper button:hover,
.custom-atc-wrapper [type=button]:hover,
.custom-atc-wrapper [type=submit]:hover,
.custom-atc-wrapper button:focus,
.custom-atc-wrapper [type=button]:focus,
.custom-atc-wrapper [type=submit]:focus {
	background: transparent;
	color: #111;
	outline: none;
	box-shadow: none;
}

/* Mantém hover customizado apenas para o botão principal */
.custom-atc-btn:hover,
.custom-atc-btn:focus {
	/* já tratado acima */
}
