/**
 * WordPress / WooCommerce glue styles.
 *
 * The page styles in the other files are the compiled SCSS modules of the
 * original storefront. This file only covers markup that exists because the
 * theme runs on WordPress: WooCommerce notices and gateway output, no-JS
 * fallbacks and elements the React app rendered with inline styles.
 *
 * @package Drovo
 */

/* The theme toggles visibility with the hidden attribute; some module
   classes set display, so make the attribute win. */
[hidden] {
	display: none !important;
}

/* Skip link: visible on keyboard focus. */
.drovo-skip-link:focus {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1000000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 0.7rem 1rem;
	border-radius: 4px;
	background: #fff;
	color: var(--clr-primary, #0F7B6C);
	font-weight: 800;
	box-shadow: 0 10px 30px rgba(16, 24, 40, 0.18);
	white-space: normal;
}

/* Spam trap fields on the contact and newsletter forms. */
.drovo-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
}

/* Admin bar offset for the sticky header. */
body.admin-bar .hd-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .hd-header {
		top: 46px;
	}
}

/* The admin bar scrolls away below 600px. */
@media (max-width: 600px) {
	body.admin-bar .hd-header {
		top: 0;
	}
}

/* ------------------------------------------------------------------
 * WooCommerce notices
 * --------------------------------------------------------------- */

.woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	display: grid;
	gap: 0.35rem;
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(15, 123, 108, 0.24);
	border-radius: 8px;
	background: rgba(15, 123, 108, 0.07);
	color: #1A3030;
	font-size: 0.92rem;
	font-weight: 650;
	line-height: 1.45;
	list-style: none;
}

.woocommerce-error {
	border-color: rgba(220, 38, 38, 0.28);
	background: #fef2f2;
	color: #b91c1c;
}

.woocommerce-info {
	border-color: rgba(232, 184, 75, 0.45);
	background: #fffbeb;
	color: #78510f;
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
	margin: 0;
}

.woocommerce-error a,
.woocommerce-message a,
.woocommerce-info a {
	color: inherit;
	font-weight: 800;
	text-decoration: underline;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	justify-self: start;
	order: 2;
}

/* Errors are shown inside the checkout's own error box (checkout.js). */
.cf-checkout > .woocommerce-NoticeGroup-checkout,
.cf-checkout .woocommerce-NoticeGroup-updateOrderReview {
	display: none;
}

/* WooCommerce pages rendered through page.php. */
.drovo-wcPage {
	width: 100%;
}

/* ------------------------------------------------------------------
 * Cart and checkout
 * --------------------------------------------------------------- */

/* Applied coupon line on the cart page (same look as the checkout one). */
.drovo-applied-coupon {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0;
	border: 1px solid rgba(15, 123, 108, 0.2);
	border-radius: 6px;
	background: rgba(15, 123, 108, 0.07);
	padding: 0.5rem 0.65rem;
	color: var(--clr-primary, #0F7B6C);
	font-size: 0.84rem;
	font-weight: 700;
}

.drovo-applied-coupon button {
	border: 0;
	background: transparent;
	color: #dc2626;
	cursor: pointer;
	padding: 0;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 800;
	text-decoration: underline;
}

/* Delivery method choice when a zone has more than one rate. */
.cf-totals .drovo-shippingMethods {
	display: grid;
	gap: 0.4rem;
	margin: 0;
	padding: 0.45rem 0;
	border: 0;
	border-top: 1px solid #f0f0f0;
}

.drovo-shippingMethods legend {
	padding: 0;
	margin-bottom: 0.35rem;
	color: #555;
	font-size: 0.9rem;
	font-weight: 600;
}

.drovo-shippingMethods label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #333;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.drovo-shippingMethods input {
	accent-color: var(--clr-primary, #0F7B6C);
}

/* Gateway fields / description under the chosen payment method. */
.cf-methodList {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cf-methodList .payment_box {
	margin: 0.45rem 0 0.2rem;
	padding: 0.75rem 0.85rem;
	border-radius: 8px;
	background: #f6faf9;
	color: #444;
	font-size: 0.86rem;
	line-height: 1.5;
}

.cf-methodList .payment_box p {
	margin: 0 0 0.5rem;
}

.cf-methodList .payment_box p:last-child {
	margin-bottom: 0;
}

.cf-methodList .payment_box input,
.cf-methodList .payment_box select {
	max-width: 100%;
}

/* Payment gateway output on the order confirmation (bank details etc.). */
.drovo-gatewayNotes {
	display: grid;
	gap: 0.75rem;
	overflow-x: auto;
}

.drovo-gatewayNotes h2,
.drovo-gatewayNotes h3 {
	margin: 0;
	font-size: 1.05rem;
}

.drovo-gatewayNotes ul {
	margin: 0;
	padding-left: 1.1rem;
}

.drovo-gatewayNotes table {
	width: 100%;
	border-collapse: collapse;
}

.drovo-gatewayNotes th,
.drovo-gatewayNotes td {
	padding: 0.4rem 0.5rem;
	border-bottom: 1px solid #eee;
	text-align: left;
}

/* ------------------------------------------------------------------
 * Account
 * --------------------------------------------------------------- */

.drovo-inlineForm {
	display: inline;
	margin: 0;
}

.drovo-accountPager {
	margin: 1.1rem 0 0;
	flex-direction: row;
}

.drovo-orderNotes {
	margin-top: 1.25rem;
}

.drovo-orderNotes .acc-inlineState p {
	margin: 0.35rem 0 0;
}

/* Inline styles of AccountWishlistView.tsx */
.drovo-accWishlistTop {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 1rem;
}

.drovo-accWishlistTop .acc-logoutButton {
	min-height: 2.5rem;
	font-size: 0.9rem;
}

.drovo-accWishlistPager {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-top: 2rem;
}

.drovo-accWishlistPager > span:not(.acc-logoutButton) {
	display: flex;
	align-items: center;
}

.drovo-accWishlistPager .acc-logoutButton {
	min-height: 2.5rem;
	padding: 0 1rem;
}

.drovo-accWishlistPager .acc-logoutButton[aria-disabled="true"] {
	opacity: 0.5;
	pointer-events: none;
}

.drovo-accWishlistEmpty {
	padding: 3rem;
	text-align: center;
	background: var(--color-tint, #fbf2f1);
	border-radius: 8px;
}

.drovo-accWishlistEmpty .acc-logoutButton {
	margin-top: 1rem;
}

/* "View product" link in place of Add to cart (same look as the button). */
.wl-actions .drovo-wlView {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.35rem;
	border: 1px solid var(--clr-primary, #0F7B6C);
	border-radius: 4px;
	background: var(--clr-primary, #0F7B6C);
	color: #fff;
	padding-inline: 0.8rem;
	font-size: 0.88rem;
	font-weight: 850;
	line-height: 1;
	text-decoration: none;
}

.wl-actions .drovo-wlView:hover {
	background: #107164;
	border-color: #107164;
}

/* ------------------------------------------------------------------
 * Content from the block editor on CMS pages and posts
 * --------------------------------------------------------------- */

.alignleft {
	float: left;
	margin: 0.3rem 1.25rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.3rem 0 1rem 1.25rem;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption,
.wp-block-image figcaption {
	max-width: 100%;
	color: #666;
	font-size: 0.85rem;
}

.cms-content img,
.blog-content img {
	max-width: 100%;
	height: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Comment form and list on blog posts. */
.drovo-comments {
	display: grid;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #eee;
}

.drovo-comments h2 {
	margin: 0;
	font-size: 1.2rem;
}

.comment-respond p {
	display: grid;
	gap: 0.35rem;
	margin: 0 0 0.75rem;
}

.comment-respond .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.comment-list .children {
	list-style: none;
	margin: 1rem 0 0 1.25rem;
	padding: 0;
}

.comment-respond textarea,
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"] {
	width: 100%;
	border: 1px solid rgba(16, 24, 40, 0.14);
	border-radius: 6px;
	padding: 0.65rem 0.75rem;
	font: inherit;
}

.comment-respond .submit {
	min-height: 2.75rem;
	padding: 0.75rem 1rem;
	border: 1px solid transparent;
	border-radius: 4px;
	background: var(--clr-primary, #0F7B6C);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

/* ------------------------------------------------------------------
 * Print (ProductShare "Print" button)
 * --------------------------------------------------------------- */

@media print {
	.hd-header,
	.ft-footer,
	.cd-stickyCart,
	.cd-drawerRoot,
	.hd-mobileBottomBar,
	.pd-actionGrid,
	.pd-shareRow,
	.pd-related {
		display: none !important;
	}
}

/* Theme Settings: header and footer variations (1.1.0). */
.hd-simpleNavItem {
  margin-left: 0;
}
.hd-noSearch .hd-desktopSearchWrap {
  visibility: hidden;
}
@media (max-width: 47.99rem) {
  .hd-mobileBottomBar.hd-bottomFour {
    grid-template-columns: 1fr 1.22fr 1fr 1fr;
  }
}
