/*
Theme Name: Lab Buro
Theme URI: https://wordpress.org/themes/
Author: Payholder
Author URI: https://wordpress.org/
Description: White-label WooCommerce store theme (based on Kiosko).
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 5.7
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: 
Text Domain: lab-buro
Tags: e-commerce, four-columns, wide-blocks, block-patterns, block-styles, featured-images, full-site-editing, rtl-language-support, sticky-post, template-editing, threaded-comments, translation-ready
*/

/*
 * Control the hover stylings of outline block style.
 * Unnecessary once block styles are configurable via theme.json
 * https://github.com/WordPress/gutenberg/issues/42794
 */
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--contrast);
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-color: var(--wp--preset--color--primary);
	text-decoration-thickness: 0.5px !important;
	text-underline-offset: 0.05em;
}

/* Reset browser default margins for blockquote element */
.wp-block-pullquote blockquote {
	margin: 0;
}

/* Search button inside style */
.wp-block-search__button-inside .wp-block-search__inside-wrapper {
	padding: 4px;
}

/* Adjust font size for comment reply title */
.wp-block-post-comments-form .comment-reply-title {
	font-size: var(--wp--preset--font-size--large);
}

/* Remove the bottom margin from the button */
.wp-block-post-comments-form .form-submit {
	margin-bottom: 0;
}

/*
 * Responsive menu container padding.
 * This ensures the responsive container inherits the same
 * spacing defined above. This behavior may be built into
 * the Block Editor in the future.
 */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50);
}

/* Adjust the top padding for the submenu items */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
	padding-top: var(--wp--preset--spacing--30);
}

/* Override the Gutenberg style to theme style */
.wp-block-post-author__byline,
.wp-block-post-author__bio {
	font-size: inherit;
}

/* Round the avatar and reset the vertical alignment */
.wp-block-post-author__avatar img {
	border-radius: 999px;
	line-height: 0;
}

/* Style tag cloud outline style  */
.wp-block-tag-cloud.is-style-outline a {
	border-color: var(--wp--preset--color--tertiary);
	border-radius: 999px;
	padding: 0 0.5rem;
}

.wp-block-tag-cloud.is-style-outline a:hover {
	color: var(--wp--preset--color--base);
	background-color: var(--wp--preset--color--primary);
}

/* Remove the default margin from author bio */
.wp-block-post-author__bio {
	margin: 0;
}

/* Remove the default margin from term description. */
.wp-block-term-description p:first-child {
	margin-top: 0;
}

.wp-block-term-description p:last-child {
	margin-bottom: 0;
}

/* Normalise font sizes for the latest comments and latest posts widgets */
.wp-block-latest-comments__comment-excerpt p,
.wp-block-latest-comments__comment-date,
.wp-block-latest-posts__post-author,
.wp-block-latest-posts__post-date {
	font-size: inherit;
}

/* Adjust font colour in the Calendar widget */
.wp-block-calendar table:where(:not(.has-text-color)) {
	color: var(--wp--preset--color--foreground);
}

/* Fix border radius setting for the avatar block */
.wp-block-avatar a,
.wp-block-avatar img {
	border-radius: inherit;
	vertical-align: middle;
}

/* Fix line height for various fields */
.wp-block-search__input,
.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]),
.wp-block-post-comments-form .comment-form textarea {
	line-height: inherit;
}

/* Style  border colour for search and Jetpack subscription blocks */
.wp-block-search__input,
.wp-block-search__button-inside .wp-block-search__inside-wrapper,
.wp-block-jetpack-subscriptions.wp-block-jetpack-subscriptions__supports-newline form input[type="email"] {
	border-color: var(--wp--preset--color--tertiary);
}

/* Needed to style input field for various Jetpack blocks */
.wp-block-jetpack-contact-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-jetpack-contact-form select,
.wp-block-jetpack-contact-form textarea,
.wp-block-jetpack-mailchimp input:not([type="submit"]):not([type="checkbox"]),
.wp-block-jetpack-revue input:not([type="submit"]):not([type="checkbox"]) {
	background-color: #fff;
	border: 1px solid var(--wp--preset--color--tertiary);
	font-size: inherit;
	line-height: inherit;
	padding: 0.5rem;
}

.wp-block-jetpack-contact-form.contact-form label {
	font-weight: 400;
}

.wp-block-jetpack-contact-form.contact-form label span {
	opacity: 0.7;
}

.wp-block-jetpack-contact-form.contact-form select {
	padding: 0.5rem;
}

.wp-block-jetpack-contact-form.contact-form textarea {
	margin-bottom: var(--wp--preset--spacing--40);
}

/* Style the feedback you get after submitting the contact form */
div[id^="contact-form-"] h4 {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: inherit;
	line-height: 1.555555556;
}

div[id^="contact-form-"] .contact-form-submission {
	margin: 0;
	padding: 0;
}

/* Adjust vertical margins in the mailchimp block */
.wp-block-jetpack-mailchimp .wp-block-jetpack-button,
.wp-block-jetpack-mailchimp p {
	margin: var(--wp--preset--spacing--40) 0;
}

/* Adjust the size of the consent text in mailchimp block */
#wp-block-jetpack-mailchimp_consent-text {
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: 0;
}

/* Remove underline from the price after discounted */
ins {
	text-decoration: none;
}

/* Fix the hardcoded wide width value in the stylesheet for TT3 */
.woocommerce.woocommerce-page main {
	max-width: calc(var(--wp--style--global--wide-size) + var(--wp--style--root--padding-right) + var(--wp--style--root--padding-left));
}

/* ——— Lab Buro brand (labburo.ru) ——— */
:root {
	--lab-buro-blue: #4292ee;
	--lab-buro-blue-dark: #1266c7;
	--lab-buro-ink: #161a1d;
	--lab-buro-muted: #7a8086;
	--lab-buro-soft: #f5f5f5;
	--lab-buro-radius: 16px;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Wordmark: “lab” light + “buro” bold when title is “lab buro” */
.lab-buro-wordmark a,
.wp-block-site-title a {
	color: var(--wp--preset--color--primary) !important;
	text-decoration: none !important;
	letter-spacing: -0.03em;
}

.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button:not(.is-link) {
	border-radius: var(--lab-buro-radius) !important;
}

.wp-block-search__inside-wrapper,
.wp-block-search__input {
	border-radius: 12px !important;
}

.wc-block-product,
.wc-block-grid__product,
ul.products li.product {
	/* product grid inherits theme typography */
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none !important;
}

.woocommerce ul.products li.product .price,
.wc-block-components-product-price {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

/* My Account nav */
.woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
	border-radius: var(--lab-buro-radius);
	background: var(--wp--preset--color--tertiary);
	overflow: hidden;
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.85rem 1.1rem;
	text-decoration: none !important;
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
}

.woocommerce-MyAccount-navigation .is-active a,
.woocommerce-MyAccount-navigation a:hover {
	background: var(--wp--preset--color--primary);
	color: #fff !important;
}

/* Product images — rounded like labburo cards */
.woocommerce-product-gallery__image img,
.wp-block-woocommerce-product-image img,
ul.products li.product img {
	border-radius: var(--lab-buro-radius);
}

/* Primary CTAs */
.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* ——— Lab Buro footer (labburo.ru) ——— */
.lab-buro-footer {
	--lb-footer-bg: #121417;
	--lb-footer-text: #ffffff;
	--lb-footer-muted: #9aa0a6;
	--lb-footer-line: #2a2f36;
	background: var(--lb-footer-bg);
	color: var(--lb-footer-text);
	font-family: Inter, system-ui, sans-serif;
	margin-top: 0;
}

.lab-buro-footer a {
	color: var(--lb-footer-muted);
	text-decoration: none !important;
}

.lab-buro-footer a:hover {
	color: #fff;
}

.lab-buro-footer__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 3rem 1.5rem 1.5rem;
}

.lab-buro-footer__main {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr 1fr 1fr 1.3fr;
	gap: 2rem 1.75rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid var(--lb-footer-line);
}

.lab-buro-footer__logo {
	display: flex;
	flex-direction: column;
	line-height: 0.9;
	margin-bottom: 1rem;
	text-decoration: none !important;
}

.lab-buro-footer__logo-lab {
	color: var(--lab-buro-blue);
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -0.04em;
}

.lab-buro-footer__logo-buro {
	color: #fff;
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -0.04em;
}

.lab-buro-footer__tagline {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
}

.lab-buro-footer__sub {
	margin: 0 0 1.5rem;
	font-size: 0.85rem;
	color: var(--lb-footer-muted);
}

.lab-buro-footer__social-title {
	margin: 0 0 0.65rem;
	font-size: 0.8rem;
	color: var(--lb-footer-muted);
}

.lab-buro-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lab-buro-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #1c2128;
	color: #c5cad0;
}

.lab-buro-footer__social a:hover {
	background: var(--lab-buro-blue);
	color: #fff;
}

.lab-buro-footer__col h3,
.lab-buro-footer__contacts h3,
.lab-buro-footer__trust h3,
.lab-buro-footer__pay h3 {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
}

.lab-buro-footer__col ul,
.lab-buro-footer__contacts ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lab-buro-footer__col li {
	margin: 0 0 0.45rem;
	font-size: 0.875rem;
	line-height: 1.35;
}

.lab-buro-footer__more {
	color: #fff !important;
	font-weight: 600;
}

.lab-buro-footer__contacts li {
	display: flex;
	gap: 0.55rem;
	align-items: flex-start;
	margin: 0 0 0.7rem;
	font-size: 0.875rem;
	color: var(--lb-footer-muted);
	line-height: 1.4;
}

.lab-buro-footer__contacts a {
	color: var(--lb-footer-muted);
}

.lab-buro-footer__ico {
	flex-shrink: 0;
	margin-top: 0.15rem;
	opacity: 0.85;
}

.lab-buro-footer__trust {
	margin-top: 1.5rem;
}

.lab-buro-footer__ratings {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.lab-buro-footer__rating {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.75rem;
	border-radius: 12px;
	background: #1c2128;
	font-size: 0.75rem;
	color: var(--lb-footer-muted);
}

.lab-buro-footer__rating strong {
	color: #fff;
	font-size: 0.85rem;
}

.lab-buro-footer__score {
	color: #f5c518;
	font-weight: 600;
}

.lab-buro-footer__pay {
	margin-top: 1.5rem;
}

.lab-buro-footer__pay-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lab-buro-footer__pay-list li {
	padding: 0.4rem 0.65rem;
	border-radius: 8px;
	background: #1c2128;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
}

.lab-buro-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	padding-top: 1.5rem;
	flex-wrap: wrap;
}

.lab-buro-footer__copy {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
}

.lab-buro-footer__disclaimer {
	margin: 0;
	max-width: 52rem;
	font-size: 0.7rem;
	line-height: 1.45;
	color: #6b727a;
}

.lab-buro-footer__docs {
	text-align: right;
	min-width: 16rem;
}

.lab-buro-footer__docs p {
	margin: 0 0 0.5rem;
}

.lab-buro-footer__docs a {
	display: inline-block;
	margin-left: 1rem;
	font-size: 0.8rem;
	color: #c5cad0;
}

.lab-buro-footer__docs a:first-child {
	margin-left: 0;
}

.lab-buro-footer__entity {
	font-size: 0.7rem;
	color: #6b727a;
}

@media (max-width: 1100px) {
	.lab-buro-footer__main {
		grid-template-columns: 1fr 1fr 1fr;
	}

	.lab-buro-footer__brand {
		grid-column: 1 / -1;
	}

	.lab-buro-footer__aside {
		grid-column: 1 / -1;
	}
}

@media (max-width: 720px) {
	.lab-buro-footer__main {
		grid-template-columns: 1fr;
	}

	.lab-buro-footer__bottom,
	.lab-buro-footer__docs {
		text-align: left;
	}

	.lab-buro-footer__docs a {
		display: block;
		margin: 0 0 0.35rem;
	}
}


