/*
Theme Name: Kiosko
Theme URI: https://wordpress.com/theme/kiosko/
Author: Automattic
Author URI: https://automattic.com/
Description: Kiosko is a store theme for WooCommerce.
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: 
Text Domain: kiosko
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));
}

/* Majk */
:root body > .wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
:root body > .wp-site-blocks > main {
	flex: 1;
}
:root header[class*="sticky"],
:root header:has(> [class*="sticky"]) {
	position: sticky;
	z-index: 111;
}
:root header.sticky-top-0,
:root header:has(> .sticky-top-0) {
	top: 0;
}
.wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	justify-content: end;
}

:root .wc-block-product-categories-list {
	padding-left: 0;
}
:root .wc-block-store-notices {
	margin: 0;
}
:root .wc-block-components-notice-banner {
	padding: 10px 15px 10px 10px !important;
}
:root .wc-block-components-notice-banner__content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
:root .woocommerce div.product {
	margin: 1rem 0;
}
:root .woocommerce div.product form.cart table.variations td,
:root .woocommerce div.product form.cart table.variations th {
	vertical-align: baseline;
	font-size: var(--wp--preset--font-size--small);
}
:root .woocommerce table.variations tr td,
:root .woocommerce table.variations tr th {
	padding-bottom: 0;
}
:root .woocommerce table.variations tr td select {
	height: 2em;
	padding: 0 1em 0 0.5em;
}
:root .woocommerce div.product a.reset_variations {
	display: block;
	margin-left: 0;
}
:root .wp-block-woocommerce-product-details {
	margin-bottom: 5rem;
}
:root .woocommerce-tabs,
:root .woocommerce-Tabs-panel {
	padding: 0 !important;
}

:root .woocommerce-page main {
	max-width: none;
	margin-left: unset;
	margin-right: unset;
}
:root .woocommerce-page :is(main, .entry-content) *:not([class*="title"], h1, h2) {
	font-size: var(--wp--preset--font-size--small);
}
:root .woocommerce-page main .wp-block-post-title,
:root .woocommerce-page main .woocommerce {
	max-width: var(--wp--style--global--wide-size);
	margin-top: 0;
	margin-bottom: 0;
}
:root .woocommerce-page main .entry-content > [data-block-name*="woocommerce/"] {
	padding-top: 0;
}
:root :is(.page, .woocommerce-page) main .wp-block-query-title,
:root :is(.page, .woocommerce-page) main .wp-block-post-title,
:root .woocommerce-page [data-block-name*="woocommerce/"] :is(h1) {
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--30);
	line-height: 1.2;
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--wp--preset--color--contrast);
}
:root .woocommerce-account main .woocommerce:has(.woocommerce-MyAccount-navigation + .woocommerce-MyAccount-content) {
	display: flex;
}
:root .woocommerce-account main .woocommerce > * {
	float: none;
	width: auto;
}
:root .woocommerce-account main .woocommerce > .woocommerce-MyAccount-navigation {
	padding-right: var(--wp--preset--spacing--50);
}
:root .woocommerce-account main .woocommerce > .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	background: var(--wp--preset--color--tertiary);
	padding: var(--wp--preset--spacing--30);
}
:root .woocommerce-account main .woocommerce > .woocommerce-MyAccount-navigation li {
	padding: 0;
}
:root .woocommerce-account main .woocommerce > .woocommerce-MyAccount-content {
	flex: 1;
	padding: var(--wp--preset--spacing--30);
}
:root .woocommerce-account main .woocommerce > .woocommerce-MyAccount-content > .wc-block-components-notice-banner {
	margin-top: 0;
}
:root .woocommerce-account main .woocommerce > .woocommerce-MyAccount-content .u-columns {
	display: flex;
	flex-wrap: wrap;
}
:root .woocommerce-account main .woocommerce > .woocommerce-MyAccount-content .u-columns [class*="u-column"] {
	flex: 1;
}

:root .wc-block-grid__products {
	margin-top: var(--wp--preset--spacing--50);
	margin-bottom: 0;
}
:root .wc-block-grid__product {
	border: none;
	padding: var(--wp--preset--spacing--30);
}
:root .wc-block-grid__products .wc-block-grid__product-image img {
	object-fit: cover;
	aspect-ratio: 1;
}

:root .wc-block-checkout__sidebar.is-sticky {
	top: calc(66px + 1rem);
}
:root .woocommerce-page .wc-block-components-totals-footer-item :is(.wc-block-components-totals-item__label, .wc-block-components-totals-item__value .wc-block-components-totals-footer-item-tax-value) {
	font-size: var(--wp--preset--font-size--large);
}
:root .wc-block-components-totals-footer-item .wc-block-components-totals-footer-item-tax {
	font-weight: unset;
	justify-self: center;
}