/* ============================================
   Shortcode: [it_add_to_cart_with_labels]
   ============================================ */

.it-atcwl {
	display: flex;
	flex-direction: column;
	gap: 20px;
	font-family: inherit;
}

/* --- Atrybuty / etykiety --- */
.it-atcwl__attributes {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.it-atcwl__attribute {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.it-atcwl__attribute-label {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #333;
}

.it-atcwl__labels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.it-atcwl__label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 40px;
	padding: 0 16px;
	border: none;
	border-radius: 6px;
	background: #fff;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
}

.it-atcwl__attribute-title {
	color: #fff;
}

.it-atcwl__label.blue-btn:hover {
	opacity: 1 !important;
}

.it-atcwl__label.is-active {
	border-color: #111;
	background: #111;
	color: #fff;
}

/* --- Własna kwota --- */
.it-atcwl__custom {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.it-atcwl__amount {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 420px;
}

.it-atcwl__amount-input {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	background: transparent;
	border: 2px solid transparent;
	border-radius: 8px;
	background-image: linear-gradient(#161720, #161720),
		linear-gradient(to bottom, var(--color-blue), var(--color-blue-light));
	background-origin: border-box;
	background-clip: padding-box, border-box;
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	outline: none;
	transition: background-image 0.25s ease-in-out;
	font-family: inherit;
}

.it-atcwl__amount-input:focus {
	background-image: linear-gradient(#161720, #161720),
		linear-gradient(to bottom, #11EF5F, #FFEE00);
}

.it-atcwl__amount-input::placeholder {
	color: #6b7280;
	font-weight: 400;
}

/* Ukrycie strzałek liczbowych przy inpucie kwoty */
.it-atcwl__amount-input::-webkit-outer-spin-button,
.it-atcwl__amount-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.it-atcwl__amount-input[type="number"] {
	-moz-appearance: textfield;
}

.it-atcwl__amount-suffix {
	font-size: 20px;
	font-weight: 700;
	color: #fff;
}

.it-atcwl__amount-hint {
	color: #a1a1aa;
	font-size: 13px;
	margin: 0;
}

/* --- Stopka: cena + przycisk --- */
.it-atcwl__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 5px 16px;
	flex-wrap: wrap;
	padding: 40px;
}

.it-atcwl-price-info {
	color: #fff;
	font-size: 12px;
	font-weight: 400;
}

.it-atcwl__price {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.it-atcwl__price-label {
	font-size: 32px;
	color: #fff;
	font-weight: 700;
}

.it-atcwl__price-value {
	font-size: 32px;
	font-weight: 700;
	color: #fff;
}

.it-atcwl__price-value .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.it-atcwl__price-placeholder {
	color: #a1a1aa;
	font-size: 20px;
	font-weight: 400;
}

.it-atcwl__buy-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 32px;
	border: none;
	border-radius: 6px;
	background: #111;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.it-atcwl__buy-button:hover:not(:disabled) {
	background: #333;
}

.it-atcwl__buy-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.it-atcwl__buy-button.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* --- Komunikat --- */
.it-atcwl__message {
	font-size: 14px;
	min-height: 20px;
}

.it-atcwl__message.is-success {
	color: #16a34a;
}

.it-atcwl__message.is-error {
	color: #dc2626;
}

/* --- Responsywność --- */
@media (max-width: 480px) {
	.it-atcwl__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.it-atcwl__buy-button {
		width: 100%;
	}
}