/*
 * Site-wide defaults (loaded on every page from includes/performance.php). Plain CSS, not Tailwind.
 */

/* Buttons: 8px corners everywhere, like Add to Cart. :where() keeps this at zero specificity, so any
   button with its own shape (round icon buttons, pills, rounded-full) keeps it. */
:where(button, .btn, .button, a.button, input[type="submit"], input[type="button"], input[type="reset"], .wp-element-button, .wc-block-components-button) {
	border-radius: 8px;
}

/* The theme's .btn sets square corners and WooCommerce's buttons (cart, checkout, account) set 3px; both
   load after this file, so these need a little more specificity. In the theme's stylesheet .btn comes
   after .rounded-md/.rounded-lg, so those classes never took effect on buttons: everything gets 8px,
   except buttons that are meant to be pills or circles. */
.btn:not(.rounded-full, .rounded-\[490px\]) {
	border-radius: 8px;
}

.woocommerce :is(a, button, input).button:not(.rounded-full, .rounded-\[490px\]) {
	border-radius: 8px;
}

/* ...and buttons meant to be pills or circles really are (the theme's .btn would square them too). */
.btn:is(.rounded-full, .rounded-\[490px\]) {
	border-radius: 9999px;
}

/* Account link in the header and menu: an avatar circle plus "Hey, Name" / "Sign In", shaped like the
   MENU button so it reads as clickable (header-2024.php, includes/sidebar-mobile-menu.phtml). */
.snfAccountChip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	height: 44px; /* same height as the MENU button (.headerRightMenuItem adds line height) */
	padding: 0 14px 0 12px;
	border-radius: 8px;
	background: rgba(217, 217, 217, .25);
	color: #f3e6c2 !important;
	font-size: 14px !important; /* .headerRightMenuItem sets 28px for icons */
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color .15s;
}

.snfAccountChip:hover,
.snfAccountChip:focus-visible {
	background: rgba(217, 217, 217, .4);
}

.snfMiniAvatar {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	overflow: hidden;
	font-family: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
	font-size: 9px;
	letter-spacing: .02em;
}

.snfMiniAvatar i {
	font-size: 10px;
}

/* Header: sit closer to the MENU button (its row has a 32px gap). */
header .snfAccountChip {
	margin-left: -24px;
}

.snfMiniAvatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Ghost circle: just an outline, initials or a person icon inside. */
.snfMiniAvatar.is-ghost {
	border: 1.5px solid currentColor;
}

/* On light backgrounds (the phone menu panel). */
.snfAccountChip.is-light {
	background: #f6f1e4;
	color: #141414 !important;
}

.snfAccountChip.is-light:hover,
.snfAccountChip.is-light:focus-visible {
	background: #ece5d1;
}
