/*
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));
}

body.woocommerce-order-pay .wp-site-blocks {
	background:
		radial-gradient(circle at top center, rgba(229, 196, 156, 0.2), transparent 30%),
		linear-gradient(180deg, #f5eee6 0%, #f9f4ee 100%);
}

body.woocommerce-order-pay main.wp-block-group {
	padding-top: 32px;
	padding-bottom: 56px;
}

body.woocommerce-order-pay form.pw-hosted-pay {
	margin: 0;
}

body.woocommerce-order-pay .pw-hosted-pay__grid {
	display: grid;
	gap: 22px;
}

body.woocommerce-order-pay .pw-hosted-pay__panel {
	padding: 24px;
	border: 1px solid rgba(117, 84, 48, 0.14);
	border-radius: 28px;
	background:
		radial-gradient(circle at top left, rgba(214, 171, 128, 0.18), transparent 38%),
		#fffdf9;
	box-shadow: 0 18px 48px rgba(30, 20, 14, 0.08);
}

body.woocommerce-order-pay .pw-hosted-pay__intro,
body.woocommerce-order-pay .pw-hosted-pay__payment-header {
	margin-bottom: 20px;
}

body.woocommerce-order-pay .pw-hosted-pay__eyebrow {
	margin: 0 0 8px;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8a633f;
}

body.woocommerce-order-pay .pw-hosted-pay__title {
	margin: 0 0 10px;
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.1;
	color: #1d140f;
}

body.woocommerce-order-pay .pw-hosted-pay__copy {
	margin: 0;
	font-size: 1rem;
	line-height: 1.65;
	color: #5f4c3a;
}

body.woocommerce-order-pay .pw-hosted-pay__meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 20px;
}

body.woocommerce-order-pay .pw-hosted-pay__meta-item {
	padding: 14px 16px;
	border: 1px solid rgba(117, 84, 48, 0.1);
	border-radius: 18px;
	background: rgba(252, 246, 239, 0.9);
}

body.woocommerce-order-pay .pw-hosted-pay__meta-label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8d6b4f;
}

body.woocommerce-order-pay .pw-hosted-pay__meta-value {
	display: block;
	font-size: 1rem;
	color: #1b140f;
}

body.woocommerce-order-pay table.shop_table.pw-hosted-pay__table {
	width: 100%;
	margin: 0;
	overflow: hidden;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid rgba(117, 84, 48, 0.12);
	border-radius: 22px;
	background: #fff;
}

body.woocommerce-order-pay table.shop_table.pw-hosted-pay__table thead th {
	padding: 16px 18px;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8a6a4e;
	background: #fcf6ef;
}

body.woocommerce-order-pay table.shop_table.pw-hosted-pay__table tbody td,
body.woocommerce-order-pay table.shop_table.pw-hosted-pay__table tfoot th,
body.woocommerce-order-pay table.shop_table.pw-hosted-pay__table tfoot td {
	padding: 16px 18px;
	font-size: 0.98rem;
}

body.woocommerce-order-pay table.shop_table.pw-hosted-pay__table .product-name {
	font-weight: 800;
}

body.woocommerce-order-pay table.shop_table.pw-hosted-pay__table tfoot tr:last-child th,
body.woocommerce-order-pay table.shop_table.pw-hosted-pay__table tfoot tr:last-child td {
	font-size: 1.15rem;
	font-weight: 900;
	color: #1a120e;
	background: #fcf6ef;
}

body.woocommerce-order-pay .pw-hosted-pay__trust-list {
	display: grid;
	gap: 10px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

body.woocommerce-order-pay .pw-hosted-pay__trust-list li {
	position: relative;
	padding: 14px 16px 14px 42px;
	border: 1px solid rgba(117, 84, 48, 0.08);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.78);
	font-weight: 700;
	color: #3d2b1f;
}

body.woocommerce-order-pay .pw-hosted-pay__trust-list li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 18px;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, #7e4a25 0%, #c67a40 100%);
	transform: translateY(-50%);
}

body.woocommerce-order-pay .pw-hosted-pay__payment-box {
	border: 1px solid rgba(117, 84, 48, 0.08);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.78);
	overflow: hidden;
}

body.woocommerce-order-pay #payment ul.payment_methods {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 20px;
	background: transparent;
}

body.woocommerce-order-pay #payment ul.payment_methods > li {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid rgba(117, 84, 48, 0.12);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 10px 28px rgba(31, 21, 15, 0.06);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.woocommerce-order-pay #payment ul.payment_methods > li:hover {
	transform: translateY(-1px);
	border-color: rgba(181, 109, 47, 0.25);
	box-shadow: 0 18px 32px rgba(31, 21, 15, 0.1);
}

body.woocommerce-order-pay #payment ul.payment_methods > li:has(> input:checked) {
	border-color: rgba(181, 109, 47, 0.45);
	background: linear-gradient(180deg, #fffdf9 0%, #f8eee2 100%);
	box-shadow: 0 20px 40px rgba(62, 37, 18, 0.12);
}

body.woocommerce-order-pay #payment ul.payment_methods > li > input.input-radio {
	position: absolute;
	top: 22px;
	left: 20px;
	margin: 0;
}

body.woocommerce-order-pay #payment ul.payment_methods > li > label {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 18px 18px 52px;
	line-height: 1.45;
	font-weight: 800;
	color: #21160f;
}

body.woocommerce-order-pay #payment ul.payment_methods > li > label img {
	margin-left: auto;
	max-height: 30px;
	width: auto;
}

body.woocommerce-order-pay #payment div.payment_box {
	margin: 0 18px 18px;
	padding: 18px;
	border: 1px solid rgba(117, 84, 48, 0.08);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.84);
}

body.woocommerce-order-pay .pw-hosted-pay__submit-row {
	padding: 20px;
	background: linear-gradient(180deg, rgba(252, 246, 239, 0.85) 0%, rgba(255, 255, 255, 0.98) 100%);
}

body.woocommerce-order-pay .pw-hosted-pay__submit-row #place_order {
	width: 100%;
	padding: 16px 20px;
	border-radius: 999px;
	background: linear-gradient(135deg, #6f4020 0%, #bb7440 100%);
	color: #fff8f2;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.woocommerce-order-pay .pw-hosted-pay__submit-row #place_order:hover {
	background: linear-gradient(135deg, #281912 0%, #8d5227 100%);
	color: #fff7f0;
}

@media (min-width: 960px) {
	body.woocommerce-order-pay .pw-hosted-pay__grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
		align-items: start;
	}

	body.woocommerce-order-pay .pw-hosted-pay__panel--payment {
		position: sticky;
		top: 32px;
	}
}

@media (max-width: 959px) {
	body.woocommerce-order-pay .pw-hosted-pay__panel {
		padding: 20px;
		border-radius: 24px;
	}

	body.woocommerce-order-pay .pw-hosted-pay__meta {
		grid-template-columns: 1fr;
	}
}
