/* =========================================================================
   Stereopsis — Dual Eye Selector (Woodmart)
   Кольори беруться зі змінних теми Woodmart; запасні значення на випадок,
   якщо змінної немає. Змінити вигляд можна тут, у блоці :root нижче.
   ========================================================================= */

body .dg-dual-eye {
	--dg-accent:   var(--wd-primary-color, #b9dcdc);   /* фірмовий бірюзовий */
	--dg-ink:      #111516;                            /* основний чорний */
	--dg-muted:    rgba(17, 21, 22, .55);
	--dg-line:     rgba(17, 21, 22, .15);
	--dg-field:    var(--wd-form-brd-color, #111516);  /* рамка полів */
	--dg-radius:   var(--wd-form-brd-radius, 0px);     /* скруглення полів */
	--dg-btn-r:    var(--btn-default-brd-radius, 5px); /* скруглення кнопок */

	margin: 20px 0 !important;
	padding: 0 !important;
	width: 100%;
	color: var(--dg-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	box-sizing: border-box;
}

body .dg-dual-eye *,
body .dg-dual-eye *::before,
body .dg-dual-eye *::after {
	box-sizing: border-box;
}

/* ----- Вкладки ----------------------------------------------------------- */

body .dg-dual-eye .dg-tabs {
	display: flex !important;
	gap: 28px;
	margin: 0 0 20px !important;
	padding: 0 !important;
	border-bottom: 1px solid var(--dg-line);
}

body .dg-dual-eye .dg-tab {
	appearance: none;
	background: none !important;
	border: 0 !important;
	border-bottom: 2px solid transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 0 -1px !important;
	padding: 10px 0 !important;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	color: var(--dg-muted) !important;
	cursor: pointer;
	transition: color .15s, border-color .15s;
}

body .dg-dual-eye .dg-tab:hover {
	color: var(--dg-ink) !important;
}

body .dg-dual-eye .dg-tab.is-active {
	color: var(--dg-ink) !important;
	border-bottom-color: var(--dg-accent) !important;
}

/* ----- Панелі ------------------------------------------------------------ */

body .dg-dual-eye .dg-pane { display: none !important; }
body .dg-dual-eye .dg-pane.is-active { display: block !important; }

body .dg-dual-eye .dg-pane--different.is-active {
	display: flex !important;
	gap: 16px;
}

body .dg-dual-eye .dg-pane--different .dg-eye {
	flex: 1 1 0;
	min-width: 0;
}

/* ----- Блок одного ока --------------------------------------------------- */

body .dg-dual-eye .dg-eye {
	margin: 0 !important;
	padding: 0 !important;
}

body .dg-dual-eye .dg-pane--different .dg-eye {
	padding: 16px !important;
	border: 1px solid var(--dg-line);
}

body .dg-dual-eye .dg-eye__title {
	margin: 0 0 8px !important;
	padding: 0 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: .08em;
	text-transform: uppercase !important;
	color: var(--dg-ink) !important;
}

/* ----- Поля -------------------------------------------------------------- */

body .dg-dual-eye .dg-field {
	display: grid !important;
	grid-template-columns: 180px 1fr;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	padding: 8px 0 !important;
}

body .dg-dual-eye .dg-pane--different .dg-field {
	grid-template-columns: 1fr;
	gap: 6px;
}

body .dg-dual-eye .dg-field__label {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	color: var(--dg-ink) !important;
	text-transform: none !important;
}

body .dg-dual-eye .dg-field__select {
	width: 100% !important;
	height: 48px !important;
	margin: 0 !important;
	padding: 0 40px 0 16px !important;
	background-color: transparent !important;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23111516' stroke-width='1.4' d='M1 1.5l5 5 5-5'/></svg>") !important;
	background-repeat: no-repeat !important;
	background-position: right 16px center !important;
	background-size: 12px !important;
	border: 1px solid var(--dg-field) !important;
	border-radius: var(--dg-radius) !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 16px !important;
	line-height: 46px !important;
	color: var(--dg-ink) !important;
	cursor: pointer;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
}

body .dg-dual-eye .dg-field__select:focus {
	outline: 0 !important;
	box-shadow: 0 0 0 3px rgba(17, 21, 22, .12) !important;
}

body .dg-dual-eye .dg-field__select option:disabled {
	color: #b5b9bd !important;
}

/* ----- Кількість --------------------------------------------------------- */

body .dg-dual-eye .dg-qty {
	display: inline-flex !important;
	align-items: stretch;
	width: 100%;
	max-width: 180px;
	height: 48px;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--dg-field);
	border-radius: var(--dg-radius);
	background: transparent !important;
	overflow: hidden;
}

body .dg-dual-eye .dg-qty__btn {
	appearance: none;
	flex: 0 0 44px;
	width: 44px !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	color: var(--dg-ink) !important;
	cursor: pointer;
	transition: background .15s;
}

body .dg-dual-eye .dg-qty__btn:hover {
	background: var(--dg-accent) !important;
}

body .dg-dual-eye .dg-qty__input {
	flex: 1 1 auto;
	width: 50px !important;
	min-width: 0;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-align: center !important;
	font-size: 16px !important;
	color: var(--dg-ink) !important;
	-moz-appearance: textfield !important;
}

body .dg-dual-eye .dg-qty__input::-webkit-outer-spin-button,
body .dg-dual-eye .dg-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ----- Сума і кнопка ----------------------------------------------------- */

body .dg-dual-eye .dg-summary {
	display: flex !important;
	flex-direction: column;
	gap: 12px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--dg-line);
}

body .dg-dual-eye .dg-summary__total {
	display: flex !important;
	align-items: baseline;
	justify-content: space-between;
	margin: 0 !important;
	padding: 0 !important;
}

body .dg-dual-eye .dg-summary__label {
	font-size: 14px !important;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--dg-muted) !important;
}

body .dg-dual-eye .dg-summary__price {
	font-size: 26px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	color: var(--dg-ink) !important;
}

body .dg-dual-eye .dg-submit {
	appearance: none;
	display: block !important;
	width: 100% !important;
	height: 52px !important;
	margin: 0 !important;
	padding: 0 20px !important;
	background: var(--dg-accent) !important;
	border: 0 !important;
	border-radius: var(--dg-btn-r) !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	color: var(--dg-ink) !important;
	cursor: pointer;
	transition: filter .15s, opacity .15s;
}

body .dg-dual-eye .dg-submit:hover:not(:disabled) {
	filter: brightness(.94);
}

body .dg-dual-eye .dg-submit:disabled {
	opacity: .5 !important;
	cursor: not-allowed;
}

body .dg-dual-eye .dg-notice {
	min-height: 20px;
	margin: 0;
	padding: 0;
	font-size: 14px;
	text-align: center;
}

body .dg-dual-eye .dg-notice.is-success { color: var(--dg-ink) !important; }
body .dg-dual-eye .dg-notice.is-error   { color: #c1272d !important; }

/* ----- Адаптив ----------------------------------------------------------- */

@media (max-width: 992px) {
	body .dg-dual-eye .dg-pane--different.is-active {
		flex-direction: column;
	}
}

@media (max-width: 640px) {
	body .dg-dual-eye .dg-field {
		grid-template-columns: 1fr !important;
		gap: 6px;
	}
	body .dg-dual-eye .dg-tabs { gap: 20px; }
	body .dg-dual-eye .dg-summary__price { font-size: 22px !important; }
}

/* =========================================================================
   На сторінках лінз ховаємо стандартну форму вибору варіацій і липку
   панель «Додати в кошик» (вона працює зі стандартною формою).
   ========================================================================= */

body.stereopsis-has-dual-eye form.variations_form.cart,
body.stereopsis-has-dual-eye .wd-sticky-btn {
	display: none !important;
}
