/* WP-only extras. Do not override CMS helper/style. */

/*
 * Header curtain: helper.css sets .dropdown { position:fixed; width:100% }.
 * Pin to the viewport so the 4 × .col4 children are the site grid
 * (25% + 25% + 25% + 25% of the browser), not a shrink-wrapped panel
 * sitting under the hovered <li>.
 */
ul.dropdown.row {
	left: 0;
}

.tovarcardleftblock .buttoncartblock .addcart {
	font-size: 28px;
	line-height: 30px;
}

.cardtovardesc .opisanie,
.cardtovardesc .opisanie p {
	margin: 0;
	padding: 0;
	line-height: inherit;
}

.tovarcardleftblock .cartbutton,
.tovarcardleftblock .cartbutton:hover {
	background: none;
	background-color: transparent;
	cursor: pointer;
}

.tovarcardleftblock .atribute {
	overflow: hidden;
}

/* PDP chips / CTA / accordion: no text caret / selection on click */
.tovarcardleftblock .atribute label,
.tovarcardleftblock .atribute .textsize,
.tovarcardleftblock .buttoncartblock .cartbutton,
.tovarcardleftblock .buttoncartblock .addcart,
.tovarcardleftblock .buttonlikeblock .cartbutton,
.tovarcardleftblock .buttonlikeblock .addcart,
.tovarcardleftblock .dolyamebutton,
.tovarcardleftblock .dolyametext,
.content.tovarmob .acctitleblock .acctitle,
.content.tovarmob .accordbutblock .accordbutton {
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
	caret-color: transparent;
	cursor: pointer;
}

/* Class-based checked state (no duplicate id="size") */
.tovarcardleftblock .atribute input[type="radio"]:checked + .textsize,
.tovarcardleftblock .atribute input.nw-size-radio:checked + .textsize {
	background-color: #000;
	color: #fff;
}

.tovarcardleftblock .buttoncartblock,
.tovarcardleftblock .buttonlikeblock,
.tovarcardleftblock .dolyamebutton {
	clear: both;
	width: 100%;
}

.imgcart[src=""],
.imgcart-placeholder {
	background: #f2f2f2;
	aspect-ratio: 3 / 4;
	width: 100%;
	display: block;
}

/* CMS login.php / registration.php: .mx-auto { margin: 0 auto } */
.mx-auto {
	margin: 0 auto;
}

body.account .content > .row {
	justify-content: center;
}

body.account .mx-auto.pagecontent {
	width: 100%;
	max-width: 100%;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.novayawear-skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	position: absolute;
	z-index: 100000;
	left: 10px;
	top: 10px;
	background: #fff;
	padding: 8px;
}

#content,
main {
	width: 100%;
	display: block;
}

.content.glavnaya {
	width: 100%;
}

.tovarcatalog {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

img.imgtovar,
img.categoryimg,
video.categoryimg {
	width: 100%;
	height: auto !important;
	max-width: 100%;
	object-fit: contain;
	vertical-align: top;
	display: block;
}

#categoryindex a.col2 {
	position: relative;
	display: block;
	overflow: hidden;
}

#categoryindex video.categoryimg {
	pointer-events: none;
	background: #f2f2f2;
}

img.imgtovar[src=""],
.imgtovar-placeholder,
.categoryimg-placeholder {
	background: #f2f2f2;
	aspect-ratio: 3 / 4;
	min-height: 0;
	width: 100%;
	display: block;
}

button.cartbutton {
	border: 0;
	background: none;
	padding: 0;
	width: 100%;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-align: left;
}

.collectbody img {
	height: auto !important;
	width: 100%;
	object-fit: contain;
	display: block;
}

/* Lookbook lightbox: one slide, fit by viewport height + side text nav. */
.collectbody .collectgallery .galleryshow {
	display: block;
	cursor: zoom-in;
}

.collectbody .imggallery.nw-collect-lightbox {
	background: #fff;
	overflow: hidden;
}

.collectbody .imggallery.nw-collect-lightbox.show {
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.collectbody .nw-lb-stage {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 110px 24px;
}

.collectbody .nw-lb-slide {
	display: none !important;
	max-height: calc(100vh - 72px);
	max-width: calc(100vw - 220px);
	width: auto !important;
	height: auto !important;
	object-fit: contain;
	margin: 0;
	padding: 0;
}

.collectbody .nw-lb-slide.is-active {
	display: block !important;
}

.collectbody .nw-lb-close {
	position: fixed;
	top: 13px;
	right: 20px;
	z-index: 1000000001;
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.collectbody .nw-lb-nav {
	position: fixed;
	top: 70%;
	transform: translate(-50%, -50%);
	z-index: 1000000001;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	min-width: 0;
	background: transparent;
	border: 0;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	font: inherit;
	font-size: 16px;
	line-height: 21px;
	color: #000;
	cursor: pointer;
	text-align: center;
}

.collectbody .nw-lb-nav:focus,
.collectbody .nw-lb-nav:focus-visible,
.collectbody .nw-lb-nav:active {
	outline: none;
	box-shadow: none;
	border: 0;
}

.collectbody .nw-lb-prev {
	left: 20%;
	right: auto;
}

.collectbody .nw-lb-next {
	left: 80%;
	right: auto;
}

.collectbody .nw-lb-nav:hover {
	color: #0A14FA;
}

@media screen and (max-width: 600px) {
	.collectbody .nw-lb-stage {
		padding: 56px 16px 16px;
	}

	.collectbody .nw-lb-slide {
		max-height: calc(100vh - 80px);
		max-width: calc(100vw - 32px);
	}

	.collectbody .nw-lb-nav {
		font-size: 14px;
	}
}

/* Lookbook: 2 columns (hardcoded .col2 + Gutenberg/classic WYSIWYG) */
.collectbody .collectgallery {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	width: 100%;
}

.collectbody .collectgallery > .col2 {
	width: 50%;
	flex-grow: 0;
	flex-shrink: 0;
	box-sizing: border-box;
	padding: 10px;
}

.collectbody .collectgallery .wp-block-image,
.collectbody .collectgallery > p,
.collectbody .collectgallery > figure {
	width: 50%;
	flex-grow: 0;
	flex-shrink: 0;
	box-sizing: border-box;
	padding: 10px;
	margin: 0;
}

.collectbody .collectgallery .wp-block-image img,
.collectbody .collectgallery > p img,
.collectbody .collectgallery > figure img {
	width: 100%;
	height: auto;
	margin: 0;
}

.collectbody .collectgallery .wp-block-gallery {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
}

.collectbody .collectgallery .wp-block-gallery .wp-block-image {
	width: 50%;
}

@media screen and (max-width: 600px) {
	.collectbody .collectgallery > .col2,
	.collectbody .collectgallery .wp-block-image,
	.collectbody .collectgallery > p,
	.collectbody .collectgallery > figure,
	.collectbody .collectgallery .wp-block-gallery .wp-block-image {
		width: 100%;
		padding: 5px;
	}
}

.colorcircle {
	object-fit: cover;
}

.formcheckout .form-row,
.woocommerce-checkout .form-row {
	margin-bottom: 12px;
}

.formcheckout input.input-text,
.formcheckout select,
.formcheckout textarea {
	width: 100%;
}

button.nw-fav {
	width: 100%;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
	list-style: none;
	margin: 10px;
	padding: 10px 0;
	font-size: 14px;
}

/*
 * .backtoshop is position:absolute (helper.css). Without top padding on .content
 * stock/error notices sit under the «Назад в магазин» link.
 */
body.cart main#content > .content,
body.woocommerce-checkout:not(.woocommerce-order-received) main#content > .content {
	padding-top: 42px;
	box-sizing: border-box;
}

/* Already on cart — «Просмотр корзины» is noise (PHP also strips; CSS fallback). */
body.cart .woocommerce-error a.wc-forward,
body.cart .woocommerce-info a.wc-forward,
body.cart .woocommerce-message a.wc-forward,
body.woocommerce-checkout .woocommerce-error a.wc-forward,
body.woocommerce-checkout .woocommerce-info a.wc-forward {
	display: none !important;
}

.nw-manager-chat {
	display: inline;
	color: #0A14FA;
	text-decoration: underline;
	cursor: pointer;
	white-space: nowrap;
}

.nw-manager-chat:hover {
	color: #000;
}

.acc-user {
	margin-bottom: 25px;
}

.acc-user p {
	margin: 0;
	text-transform: uppercase;
	font-size: 17px !important;
	line-height: 120% !important;
}

.acc-user span {
	font-size: 15px;
	color: #000;
}

.acc-links {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.acc-links a {
	text-decoration: none;
	font-size: 22px;
	font-weight: 400;
	color: #000;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.acc-links a.active {
	color: #0A14FA;
}

.acc-links a img {
	display: none;
	width: 20px;
	height: auto;
	filter: brightness(0);
}

.itogblock .data {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.mob-data {
	max-width: 300px;
	text-align: right;
	line-height: 120%;
}

tr.border_bottom.headeracc th,
tr.border_bottom td {
	font-size: 10px;
	line-height: 14px !important;
	padding-top: 9px;
	text-transform: uppercase;
	font-weight: normal;
	padding-bottom: 9px;
}

.table_history tr.bodyacc {
	border-bottom: 1px black solid;
}

.bodyacc {
	cursor: pointer;
}

.bodyacc:hover td,
.bodyacc:hover a {
	color: #0A14FA;
}

@media (min-width: 821px) {
	.back-mobile {
		display: none;
	}
}

@media (max-width: 820px) {
	.acc-links a img {
		display: block;
	}

	.back-mobile {
		display: block;
		margin-bottom: 20px;
	}

	.back-mobile a {
		display: flex;
		align-items: center;
		text-decoration: none;
		font-size: 15px;
		color: #000;
	}

	.back-mobile img {
		margin-right: 8px;
		width: 14px;
	}

	.mob-data {
		max-width: 200px;
	}
}

/* Tilda Sans is the live face; helper.css still declares Suisse. */
html,
body,
body.cart,
body.tovarbody,
body.catalogtovar,
body.searchpage,
body.account {
	font-family: 'tilda-sans', 'Suisse', Helvetica, Arial !important;
}

/*
 * Header nav: links already get Suisse via helper `a {}`, but parents
 * without URL (Инфо, Коллекции, Еще…) and «Поиск» are <li>/<p> → Tilda.
 * Force Suisse for the whole header menu strip.
 */
.header,
.header .mobmenu,
.header .mobmenu li,
.header .mobmenu a,
.header .dropdown,
.header .dropdown a,
.header .opensearch,
.header .closesearch,
.header .carttext,
.header .iconmenu,
.header .textmini,
.header nav,
.header nav li,
.header nav a {
	font-family: 'Suisse', Helvetica, Arial !important;
}

.header .opensearch,
.header .closesearch,
.header .mobmenu > li,
.header nav > .mobmenu > li,
.header .carttext {
	font-size: 16px !important;
	line-height: 21px !important;
	font-weight: normal;
}

/* «Поиск» — тот же hover, что у пунктов nav (style.css: nav li:hover). */
.header .opensearch,
.header .closesearch {
	cursor: pointer;
	transition: all ease-in-out 0s;
}

.header .opensearch:hover,
.header .closesearch:hover {
	color: #0A14FA;
}

/*
 * /obrand/: .bigtitle sits inside .pagecontent (already padded 0 10px).
 * Global .bigtitle adds another 5–10px → title looks inset vs body text.
 */
body.obrand .page.pagecontent > .bigtitle {
	padding-left: 0;
	padding-right: 0;
}

/* Thankyou extras (LoveFirst overview/CTA), CMS classes. */
.nw-thankyou-ov {
	margin: 20px 0 28px;
	padding: 0;
	border: 1px solid #000;
}

.nw-thankyou-ov__row {
	display: flex;
	flex-wrap: wrap;
	border-bottom: 1px solid #000;
}

.nw-thankyou-ov__row:last-child {
	border-bottom: 0;
}

.nw-thankyou-ov__cell {
	flex: 1 1 50%;
	box-sizing: border-box;
	padding: 12px 14px;
	border-right: 1px solid #000;
}

.nw-thankyou-ov__cell:nth-child(2n) {
	border-right: 0;
}

.nw-thankyou-ov__label {
	display: block;
	margin: 0 0 4px;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.nw-thankyou-cta {
	margin: 24px 0 40px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: flex-start;
}

/* Pay-fail / cart-errors: all CTA links share one look (no gray secondary). */
.nw-thankyou-cta a,
.nw-thankyou-cta a.popupsubmit,
.nw-thankyou-cta a.linkmap,
.nw-thankyou-cta a.nw-cancel-order,
.nw-thankyou-cta a.nw-manager-chat {
	display: inline-block;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	background-image: none;
	color: #0A14FA;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 400;
	text-decoration: underline;
	text-transform: none;
	cursor: pointer;
	white-space: normal;
}

.nw-thankyou-cta a:hover,
.nw-thankyou-cta a.popupsubmit:hover,
.nw-thankyou-cta a.linkmap:hover,
.nw-thankyou-cta a.nw-cancel-order:hover,
.nw-thankyou-cta a.nw-manager-chat:hover {
	color: #000;
}

/* Pay-return / cart-notice: keep columns readable, avoid stacked bare notices */
.nw-pay-return .cartleft .textmini,
.nw-cart-notice .cartleft .textmini {
	max-width: 36em;
	margin: 0 0 28px;
	padding: 0 10px;
	line-height: 1.45;
}

.nw-pay-return .cartleft .bigtitle,
.nw-cart-notice .cartleft .bigtitle {
	margin-bottom: 12px;
}

/* Manager error code under blocker copy */
.nw-error-code {
	margin: -16px 0 24px;
	padding: 0 10px;
	font-size: 11px;
	line-height: 1.35;
	color: #888;
	letter-spacing: 0.02em;
}

.nw-cart-notice .woocommerce-error,
.nw-cart-notice .woocommerce-info,
.nw-cart-notice .woocommerce-message {
	margin: 0 10px 16px;
	padding: 0;
	border: 0;
	background: transparent;
	list-style: none;
	color: inherit;
	font-size: 15px;
	line-height: 1.45;
}

@media (max-width: 640px) {
	.nw-thankyou-ov__cell {
		flex-basis: 100%;
		border-right: 0;
		border-bottom: 1px solid #000;
	}

	.nw-thankyou-ov__row .nw-thankyou-ov__cell:last-child {
		border-bottom: 0;
	}
}
