/**
 * GMG Add to Cart – stiliai pagal dizainą
 * Naudoja kintamuosius iš temos: dt-the7-child/css/01-variables.css
 *
 * @package GMG_Add_To_Cart
 */

/* Padidintas specifiškumas – tema neperrašytų */
.gmg-atc-wrap .gmg-atc-form {
	margin: 0;
	padding: 0;
	border: none;
}

/* Pagrindinė kaina */
.gmg-atc-main-price .price {
	display: flex;
	align-items: center;
}

.gmg-atc-main-price {
	font-family: var(--font-family-secondary);
	font-size: 30px;
	font-weight: 400;
	color: var(--secondary-color);
	margin-bottom: 19px;
	line-height: 41px;
}

#single-product-lesson .gmg-atc-main-price {
	color: var(--white-color);
}

.gmg-atc-main-price .gmg-atc-price-old,
.gmg-atc-main-price del {
	font-family: var(--font-family-secondary);
	font-size: 16px;
	line-height: 22px;
	font-weight: 400;
	color: var(--grey-text-color);
	margin-left: 9px;
	order: 1;
}

/* Variacijų mygtukai */
.gmg-atc-variations {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 34px;
}

.gmg-atc-variation-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.gmg-atc-variation-btn {
	display: inline-block;
	padding: 14px 42px;
	border-radius: 999px;
	border: 1px solid var(--primary-color);
	background: transparent;
	color: var(--primary-color);
	font-family: var(--font-family-secondary);
	font-size: 17px;
	line-height: 23px;
	font-weight: 400;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.gmg-atc-variation-btn:hover {
	background: var(--primary-color);
	color: var(--secondary-color);
}

.gmg-atc-variation-item.gmg-atc-selected .gmg-atc-variation-btn {
	background: var(--primary-color);
	color: var(--secondary-color);
}

.gmg-atc-variation-price {
	display: flex;
	align-items: center;
	font-family: var(--font-family-secondary);
	font-size: 17px;
	line-height: 23px;
	font-weight: 400;
	color: var(--secondary-color);
}

#single-product-lesson .gmg-atc-variation-price {
	color: var(--white-color);
}

/* Pamokų puslapis (#single-product-lesson arba .gmg-atc-lesson-layout): tik «Į krepšelį», be variacijų ir kiekio */
#single-product-lesson .gmg-atc-variations,
#single-product-lesson .gmg-atc-quantity-wrap,
#single-product-lesson .gmg-atc-qty-buttons,
.gmg-atc-lesson-layout .gmg-atc-variations,
.gmg-atc-lesson-layout .gmg-atc-quantity-wrap,
.gmg-atc-lesson-layout .gmg-atc-qty-buttons {
	display: none !important;
}

#single-product-lesson .gmg-atc-actions,
.gmg-atc-lesson-layout .gmg-atc-actions {
	justify-content: center;
	padding: 0;
	background: transparent;
	max-width: none;
	border-radius: 0;
	overflow: visible;
}

#single-product-lesson .gmg-atc-submit-wrap,
.gmg-atc-lesson-layout .gmg-atc-submit-wrap {
	border: none;
	margin-right: 0;
}

.gmg-atc-variation-price .gmg-atc-price-old,
.gmg-atc-variation-price del {
	font-size: 11px;
	line-height: 15px;
	font-weight: 400;
	color: var(--grey-text-color);
	margin-left: 5px;
	text-decoration: line-through;
}

/* Add to cart sekcija */
.gmg-atc-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: row;
	border-radius: 999px;
	overflow: hidden;
	background: var(--bg-grey-lighter);
	padding: 0 3px 0 15px;
	max-width: 370px;
}

/* Kiekio blokas – kairė, + visada šalia skaičiaus */
.gmg-atc-quantity-wrap {
	display: flex;
	flex-direction: row;
	align-items: center;
}

.gmg-atc-qty-btn {
	display: flex;
	align-items: center;
	padding: 0 20px;
	border: none;
	height: 22px;
	background: transparent;
	color: var(--secondary-color);
	font-size: 15px;
	font-weight: 400;
	font-family: var(--font-family-secondary);
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.gmg-atc-qty-btn.gmg-atc-qty-plus {
	padding-bottom: 7px;
}

.gmg-atc-qty-btn:hover {
	background: var(--overlay-very-light);
}

.gmg-atc-qty-btn:active {
	background: var(--overlay-light);
}

.gmg-atc-qty-minus {
	border-bottom: 1px solid var(--primary-color-light);
}

.gmg-atc-qty-input {
	display: none;
}

/* Kiekio skaičius – fiksuotas plotis, kad + nesokeltų */
.gmg-atc-quantity-wrap.has-display .gmg-atc-qty-input {
	display: block;
	text-align: left !important;
	width: 50px;
	height: unset;
	min-height: unset;
	padding: 0;
	border: none;
	background: transparent;
	text-align: right;
	font-size: 20px;
	line-height: 27px;
	font-weight: 400;
	font-family: var(--font-family-secondary);
	color: var(--grey-text-color);
	margin: 0 0 0 5px;
}

/* + visada tiesiai prieš skaičių, be tarpo */
.gmg-atc-quantity-wrap.has-display::before {
	content: '+';
	display: inline-block;
	flex-shrink: 0;
	color: var(--grey-text-color);
	font-size: 20px;
	line-height: 27px;
	font-weight: 400;
	font-family: var(--font-family-secondary);
}

.gmg-atc-quantity-wrap.has-display .gmg-atc-qty-input::-webkit-inner-spin-button,
.gmg-atc-quantity-wrap.has-display .gmg-atc-qty-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.gmg-atc-quantity-wrap.has-display .gmg-atc-qty-input {
	-moz-appearance: textfield;
}

/* Add to cart mygtukas */
.gmg-atc-submit-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: row;
	background: var(--primary-color);
	border-radius: 999px;
	max-height: 50px;
	border-top: 3px solid var(--bg-grey-lighter);
	border-bottom: 3px solid var(--bg-grey-lighter);
	overflow: hidden;
}

#single-product-lesson .gmg-atc-submit-wrap {
	justify-content: unset;
	background: transparent;
	width: 100%;
}

.gmg-atc-qty-buttons {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	margin-right: -10px;
}

.gmg-atc-submit {
	max-width: 216px;
	min-height: 50px !important;
	padding: 10px 45px !important;
	background: var(--primary-color) !important;
	color: var(--secondary-color) !important;
	border-radius: 999px !important;
	font-size: 17px !important;
	line-height: 23px !important;
	font-weight: 400 !important;
	font-family: var(--font-family-secondary) !important;
	text-transform: uppercase !important;
	cursor: pointer;
	transition: background 0.2s !important;
}

#shop-page-container .gmg-atc-submit {
	border-left: 3px solid var(--bg-grey-lighter);
	border-top: 3px solid var(--bg-grey-lighter);
	border-bottom: 3px solid var(--bg-grey-lighter);
}

#shop-page-container .gmg-atc-submit:hover {
	background: var(--bg-grey-lighter) !important;
	color: var(--primary-color) !important;
}

#shop-page-container .gmg-atc-submit:hover:not(:disabled) {
	background: var(--bg-grey-lighter) !important;
	color: var(--primary-color) !important;
	border: 4px solid var(--primary-color) !important;
	border-right: 1px solid var(--primary-color) !important;
}

.gmg-atc-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

#single-product-lesson .gmg-atc-submit {
	width: 100% !important;
	border: 1px solid var(--primary-color);
}

#single-product-lesson .gmg-atc-submit:hover:not(:disabled) {
	background: transparent !important;
	color: var(--primary-color) !important;
	border: 1px solid var(--primary-color);
}

#single-product-lesson .gmg-atc-submit:hover {
	background: transparent;
	color: var(--primary-color) !important;
}

/* Responsive – mobilus */
@media (max-width: 480px) {
	.gmg-atc-variations {
		justify-content: center;
	}

	.gmg-atc-actions {
		max-width: 100%;
	}
}
