/* One "Log in or sign up" box (includes/sign-in.php), signed out on My Account
   and Save My Design. The account's look: white card, hairline, gold pill
   button, black underlined links (Treyson, Nov 23: black text and gold accents; no navy). Self-contained (account.css only loads signed in). */
.gav-si {
	--si-ink: #01010C;
	--si-slate: #61616B;
	--si-line: #EBEBED;
	--si-field: #DADAE0;
	--si-navy: #01010C; /* was navy; now the site's black */
	--si-gold: linear-gradient(180deg, #EAC66E, #D39700);
	--si-gold-ink: #8A6200;
	--si-red: #B3261E;
	--si-mist: #F5F5F8;
	box-sizing: border-box;
	width: 100%;
	max-width: 520px;
	margin: 0 0 48px;
	padding: 32px;
	background: #fff;
	border: 1px solid var(--si-line);
	border-radius: 16px;
	color: var(--si-ink);
	font-family: "Quasimoda", system-ui, -apple-system, "Segoe UI", sans-serif;
	overflow-wrap: break-word;
}
.gav-si *, .gav-si *::before, .gav-si *::after { box-sizing: border-box; }
.gav-si [hidden] { display: none !important; }
.gav-si .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.gav-si .gav-si-h {
	margin: 0 0 8px; font-size: 1.5rem !important; line-height: 1.25; font-weight: 700;
	letter-spacing: -.01em !important; text-transform: none !important; color: var(--si-ink);
}
.gav-si .gav-si-h:focus { outline: none; }
.gav-si .gav-si-h:focus-visible { outline: 3px solid var(--si-navy); outline-offset: 4px; border-radius: 4px; }
.gav-si .gav-si-lede { margin: 0 0 20px; color: var(--si-slate); line-height: 1.5; }
.gav-si form { margin: 0; padding: 0; border: 0; }
/* Save My Design lays its card forms out as a grid with gaps; the box spaces its own rows. */
html body .gav-si form.gav-si-form { display: block; gap: 0; }
.gav-si .gav-si-field { margin: 0 0 16px; padding: 0; width: 100%; float: none; }
.gav-si .gav-si-field label { display: block; margin: 0 0 6px; font-weight: 600; color: var(--si-ink); }
.gav-si input[type="text"], .gav-si input[type="email"], .gav-si input[type="password"] {
	width: 100%; min-height: 48px; padding: 10px 14px; font-size: 1rem;
	border: 1px solid var(--si-field); border-radius: 12px; background: #fff; color: var(--si-ink);
}
.gav-si input[type="text"]:focus, .gav-si input[type="email"]:focus, .gav-si input[type="password"]:focus {
	border-color: var(--si-navy); box-shadow: 0 0 0 3px rgba(234, 198, 110, .6); outline: none;
}
.gav-si input[aria-invalid="true"] { border-color: var(--si-red); }
.gav-si .gav-si-id { font-weight: 700; overflow-wrap: anywhere; color: var(--si-ink); }
.gav-si p.form-row, .gav-si .gav-si-field { margin-bottom: 14px !important; }
.gav-si .gav-si-link {
	min-height: 44px; min-width: 44px; padding: 8px 6px; margin: 0;
	background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 8px;
	color: var(--si-gold-ink) !important; font: 600 1rem/1.2 inherit; font-family: inherit;
	text-decoration: underline; text-underline-offset: 3px; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.gav-si .gav-si-link:hover { text-decoration-thickness: 2px; }
.gav-si .gav-si-link:focus-visible { outline: 3px solid var(--si-navy); outline-offset: 2px; }
.gav-si .gav-si-err {
	margin: -6px 0 16px; padding: 10px 14px; border-left: 4px solid var(--si-red);
	background: #FDF2F1; border-radius: 0 10px 10px 0; color: var(--si-red); line-height: 1.45;
}
.gav-si .gav-si-err p { margin: 0; }
.gav-si .gav-si-err p + p { margin-top: 6px; }
.gav-si .gav-si-err a { color: var(--si-navy); text-decoration: underline; }
.gav-si [data-gav-si-form="create"] .gav-si-err { margin-top: 0; }
.gav-si .gav-si-note {
	margin: 0 0 16px; padding: 10px 14px; border-left: 4px solid #D39700; background: #FFF8E6;
	border-radius: 0 10px 10px 0; color: var(--si-ink); line-height: 1.45;
}
.gav-si .gav-si-note p { margin: 0; }
.gav-si .gav-si-remember { margin: 0 0 8px !important; padding: 0; }
.gav-si .gav-si-remember label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; cursor: pointer; }
.gav-si .gav-si-remember input { width: 20px; height: 20px; margin: 0; }
.gav-si .gav-si-fine { color: var(--si-slate); margin: 0 0 16px; }
.gav-si .woocommerce-privacy-policy-text { color: var(--si-slate); font-size: .92rem; line-height: 1.5; margin: 4px 0 16px; }
.gav-si .woocommerce-privacy-policy-text p { margin: 0; }
.gav-si .woocommerce-privacy-policy-text a { color: var(--si-navy); }
/* The gold pill (same as the theme's login button and the account's ga-btn-gold). */
.gav-si .gav-si-btn,
html body .gav-si .gav-si-btn {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px;
	margin: 4px 0 0; padding: 14px 30px;
	background: var(--si-gold) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
	font: 600 1rem/1.2 "Quasimoda", system-ui, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important;
	box-shadow: 0 3px 14px rgba(211, 151, 0, .3); cursor: pointer;
	transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s cubic-bezier(.16, 1, .3, 1);
}
html body .gav-si .gav-si-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(138, 98, 0, .7); }
html body .gav-si .gav-si-btn:focus-visible { outline: 3px solid var(--si-navy) !important; outline-offset: 3px; }
html body .gav-si .gav-si-btn:disabled, html body .gav-si .gav-si-btn.disabled { opacity: .55; cursor: not-allowed; transform: none; }
html body .gav-si .gav-si-btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.gav-si a { color: var(--si-navy); }
.gav-si a:focus-visible { outline: 3px solid var(--si-navy); outline-offset: 2px; border-radius: 4px; }
/* The show/hide eye (WooCommerce's button, Blocksy's icon): a 44px target with a
   visible focus ring. Blocksy draws it with a mask, which would clip the ring, so
   the same two icons are drawn as backgrounds here. */
html body .gav-si form .password-input .show-password-input {
	width: 44px; height: 44px; top: 2px; inset-inline-end: 2px; border-radius: 10px;
	-webkit-mask: none; mask: none; background: transparent center / 18px no-repeat url("data:image/svg+xml,%3Csvg fill='%2361616B' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.9,11.6C23.7,11.2,19.5,3,12,3S0.3,11.2,0.1,11.6c-0.1,0.3-0.1,0.6,0,0.9C0.3,12.8,4.5,21,12,21s11.7-8.2,11.9-8.6 C24,12.2,24,11.8,23.9,11.6zM12,19c-5.4,0-8.9-5.4-9.9-7c0.9-1.6,4.5-7,9.9-7c5.4,0,8.9,5.4,9.9,7C20.9,13.6,17.4,19,12,19zM12,8c-2.2,0-4,1.8-4,4c0,2.2,1.8,4,4,4c2.2,0,4-1.8,4-4C16,9.8,14.2,8,12,8zM12,14c-1.1,0-2-0.9-2-2c0-1.1,0.9-2,2-2c1.1,0,2,0.9,2,2C14,13.1,13.1,14,12,14z'/%3E%3C/svg%3E") !important;
}
html body .gav-si form .password-input input[type="text"] ~ .show-password-input { background-image: url("data:image/svg+xml,%3Csvg fill='%2361616B' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.9,5.2C13.3,5.1,12.6,5,12,5c-5.4,0-8.9,5.4-9.9,7c0.5,0.9,1.1,1.8,1.8,2.5C4.3,15,4.2,15.6,3.8,16 c-0.2,0.2-0.4,0.2-0.6,0.2c-0.3,0-0.6-0.1-0.8-0.4c-0.9-1-1.6-2.2-2.3-3.4c-0.2-0.3-0.2-0.6,0-0.9C0.3,11.2,4.5,3,12,3c0.8,0,1.6,0.1,2.3,0.3c0.5,0.1,0.9,0.7,0.7,1.2C14.9,5,14.4,5.3,13.9,5.2z M0.3,22.3l22-22c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4L19.4,6c1.8,1.6,3.3,3.4,4.5,5.5c0.2,0.3,0.2,0.6,0,0.9C23.7,12.8,19.5,21,12,21c-2.1,0-4.1-0.6-5.8-1.8l-4.5,4.5C1.5,23.9,1.3,24,1,24s-0.5-0.1-0.7-0.3C-0.1,23.3-0.1,22.7,0.3,22.3zM14,11.4L11.4,14c0.2,0.1,0.4,0.1,0.6,0.1c0.5,0,1-0.2,1.4-0.5c0.4-0.4,0.6-0.9,0.6-1.4C14.1,11.9,14,11.7,14,11.4zM12,19c5.4,0,8.9-5.4,9.9-7c-1-1.8-2.3-3.3-3.9-4.6L15.5,10c0.4,0.7,0.6,1.5,0.6,2.3c0,1.1-0.5,2.1-1.3,2.8c-0.7,0.7-1.7,1.1-2.7,1.1c0,0-0.1,0-0.1,0c-0.7,0-1.4-0.3-2-0.6l-2.3,2.3C9,18.6,10.5,19,12,19z'/%3E%3C/svg%3E") !important; }
html body .gav-si form .password-input .show-password-input:focus-visible { outline: 3px solid var(--si-navy); outline-offset: -3px; }
html body .gav-si form .password-input input { padding-inline-end: 50px; }
/* WooCommerce's password strength line. */
.gav-si .woocommerce-password-strength { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; font-size: .92rem; }
.gav-si .woocommerce-password-strength:empty { margin: 0; padding: 0; }
.gav-si .woocommerce-password-hint { display: block; margin-top: 6px; color: var(--si-slate); font-size: .9rem; }

@media (max-width: 760px) {
	.gav-si { padding: 22px 18px; margin-bottom: 32px; }
	.gav-si .gav-si-h { font-size: 1.35rem !important; }
}

/* Inside the Save My Design card: no second card. */
.gav-si[data-context="smd"] { max-width: 520px; margin: 0 auto; padding: 0; border: 0; border-radius: 0; background: none; text-align: left; }
.gav-si[data-context="smd"] .gav-si-h { font-size: 1.35rem !important; margin: 0 0 8px !important; }

/* The "Lost your password?" link inside an error: black, not the theme's link colour. */
.gav-si .gav-si-err a { color: var(--si-ink) !important; }

/* Treyson, Nov 23: "the box could also be wider and center justified". On My Account the box is
   wider and sits in the middle of the page, with its heading and lead-in centred; labels and
   fields stay left so they are easy to read. (Save My Design keeps its own layout, above.) */
.gav-si[data-context="account"] { max-width: 600px; margin: 0 auto 56px; padding: 40px 44px; } /* Treyson asked for wider than the first 520; 640 looked stretched with two fields */
/* 2026-11-23 two-view box: two fields and one button looked stretched at 640px; 560px. */
.gav-si[data-context="account"] .gav-si-h,
.gav-si[data-context="account"] .gav-si-lede { text-align: center; }
.gav-si[data-context="account"] .gav-si-lede { max-width: 46ch; margin-inline: auto; margin-bottom: 24px; text-wrap: balance; }
@media (max-width: 760px) {
	.gav-si[data-context="account"] { padding: 24px 18px; margin-bottom: 32px; }
}
/* Treyson, Nov 23: "lets get rid of the title and lets add some type of design element that fits
   with the rest of our branding". Only on the signed-out My Account page that shows the box
   ("Lost your password" keeps its title). The title stays in the page for screen readers.
   The element (he chose "f" of six looks, after turning down a cut-gem frame): the shop's own
   photo of the engraver cutting the logo into a gold plate, as a dark band behind the top of the
   box, closed by the thin gold line the footer uses. The photo is used as it is (his rule of
   Nov 13: no rotation, no substitute). It is placed so the gold plate shows in the space to the
   right of the box at every width, and it is never stretched far past its 1200 px, so on wide
   screens the left end of the band is plain dark and the photo fades in. */
body.woocommerce-account:not(.logged-in):has(.gav-si[data-context="account"]) .hero-section {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
body.woocommerce-account:not(.logged-in):has(.gav-si[data-context="account"]) #main-container::before {
	--si-photo-w: max(1400px, 100vw);
	--si-photo-x: calc(75vw + 150px - 0.68 * var(--si-photo-w));
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 372px; pointer-events: none;
	background:
		linear-gradient(rgba(234, 198, 110, .75), rgba(234, 198, 110, .75)) 0 calc(100% - 11px) / 100% 1.5px no-repeat,
		linear-gradient(180deg, rgba(48, 3, 10, .7) 0, rgba(48, 3, 10, .22) 50%, rgba(10, 6, 6, .4) 100%),
		linear-gradient(90deg, #120C0D var(--si-photo-x), rgba(18, 12, 13, 0) calc(var(--si-photo-x) + 300px)),
		url(../images/shelf-engraving.webp) var(--si-photo-x) calc(190px - 0.3667 * var(--si-photo-w)) / var(--si-photo-w) auto no-repeat,
		#120C0D;
}
body.woocommerce-account:not(.logged-in):has(.gav-si[data-context="account"]) #main { position: relative; z-index: 1; }
.woocommerce:has(> .gav-si[data-context="account"]) { padding: 28px 0 40px; }
.gav-si[data-context="account"] { border-color: transparent; box-shadow: 0 30px 60px -30px rgba(10, 6, 6, .6), 0 2px 6px rgba(1, 1, 12, .1); }
@media (max-width: 760px) {
	body.woocommerce-account:not(.logged-in):has(.gav-si[data-context="account"]) #main-container::before {
		height: 240px;
		background:
			linear-gradient(rgba(234, 198, 110, .75), rgba(234, 198, 110, .75)) 0 calc(100% - 8px) / 100% 1.5px no-repeat,
			linear-gradient(180deg, rgba(48, 3, 10, .7) 0, rgba(48, 3, 10, .2) 60%, rgba(10, 6, 6, .35) 100%),
			url(../images/shelf-engraving.webp) 72% 40% / auto 460px no-repeat,
			#120C0D;
	}
	.woocommerce:has(> .gav-si[data-context="account"]) { padding: 6px 0 24px; }
}

/* ---- 2026-11-23, the two-view box (START / CREATE), laid out like the card
   Treyson sent: label row with "Forgot your password?", Remember me, one gold
   button, a divider for other ways to sign in, and a footer strip. ---- */

/* Password: the label and "Forgot your password?" share a row. The link comes
   after the field in the page, so Tab goes email -> password -> forgot link. */
.gav-si .gav-si-field-pass { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 12px; }
.gav-si .gav-si-field-pass > label { grid-column: 1; grid-row: 1; }
.gav-si .gav-si-field-pass > input,
.gav-si .gav-si-field-pass > .password-input { grid-column: 1 / -1; grid-row: 2; width: 100%; }
.gav-si .gav-si-field-pass > .gav-si-forgot { grid-column: 2; grid-row: 1; justify-self: end; }
html body .gav-si a.gav-si-forgot {
	display: inline-flex; align-items: center; min-height: 32px; margin: 0 0 2px; padding: 0 2px;
	color: var(--si-gold-ink) !important; font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap;
	text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
html body .gav-si a.gav-si-forgot:hover { text-decoration-thickness: 2px; color: var(--si-ink) !important; }
@media (max-width: 360px) {
	/* Very narrow: the link drops under the label rather than squeezing it. */
	.gav-si .gav-si-field-pass > .gav-si-forgot { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin-top: 6px; }
}

/* Remember me: the theme draws its own checkbox; use the browser's, in black and gold. */
html body .gav-si .gav-si-remember input[type="checkbox"] {
	-webkit-appearance: auto; appearance: auto; width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0;
	accent-color: var(--si-ink); background: none; border: 0; box-shadow: none; flex: 0 0 auto;
}
html body .gav-si .gav-si-remember input[type="checkbox"]::before,
html body .gav-si .gav-si-remember input[type="checkbox"]::after { content: none; display: none; }
html body .gav-si .gav-si-remember input[type="checkbox"]:focus-visible { outline: 3px solid var(--si-gold-ink); outline-offset: 2px; }
.gav-si .gav-si-remember label span { color: var(--si-ink); }
.gav-si p.form-row.gav-si-remember { margin: -6px 0 10px !important; }
html body .gav-si .gav-si-remember label { display: flex; width: max-content; max-width: 100%; margin: 0 !important; }
.gav-si .gav-si-note { margin-bottom: 16px; }

/* Other ways to sign in: printed only when something hooks gav_si_more_ways. */
.gav-si .gav-si-more { margin: 24px 0 0; }
.gav-si .gav-si-or {
	display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
	color: var(--si-slate); font-size: .9rem; line-height: 1.2; text-align: center;
}
.gav-si .gav-si-or::before, .gav-si .gav-si-or::after { content: ""; flex: 1 1 0; height: 1px; background: var(--si-line); }
.gav-si .gav-si-or span { flex: 0 0 auto; }
.gav-si .gav-si-ways { display: grid; gap: 10px; }
html body .gav-si .gav-si-way {
	display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin: 0;
	padding: 10px 20px; background: #fff !important; color: var(--si-ink) !important; border: 1px solid var(--si-field) !important;
	border-radius: 999px !important; box-shadow: none !important; text-decoration: none !important; text-transform: none !important;
	font: 600 1rem/1.2 "Quasimoda", system-ui, sans-serif !important; letter-spacing: 0 !important; cursor: pointer;
}
html body .gav-si .gav-si-way:hover { border-color: var(--si-ink) !important; background: #FAFAFA !important; }
html body .gav-si .gav-si-way:focus-visible { outline: 3px solid var(--si-gold-ink) !important; outline-offset: 2px; }
.gav-si .gav-si-way svg, .gav-si .gav-si-way img { width: 20px; height: 20px; flex: 0 0 auto; }

/* Footer strip: part of the card, a pale band under a hairline. */
.gav-si .gav-si-foot {
	margin: 28px -44px -40px; padding: 12px 44px; background: #F7F7F7; border-top: 1px solid var(--si-line);
	border-radius: 0 0 15px 15px; text-align: center;
}
.gav-si .gav-si-foot p, .gav-si .gav-si-alt {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 4px;
	margin: 0; color: var(--si-ink); line-height: 1.4;
}
html body .gav-si .gav-si-foot .gav-si-link, html body .gav-si .gav-si-alt .gav-si-link { min-height: 44px; padding: 0 4px; font-size: 1em; line-height: 1.4; }
.gav-si .gav-si-alt { margin-top: 16px; text-align: center; }
html body .gav-si .gav-si-link:focus-visible { outline: 3px solid var(--si-gold-ink); outline-offset: 0; }
@media (max-width: 760px) {
	.gav-si .gav-si-foot { margin: 24px -18px -24px; padding: 8px 18px; }
}
/* Default card (no context class): its own padding is 32px. */
.gav-si:not([data-context="account"]):not([data-context="smd"]) .gav-si-foot { margin: 28px -32px -32px; padding: 14px 32px; }
/* Save My Design: no card of its own, so the strip is a rounded band of its own. */
.gav-si[data-context="smd"] .gav-si-foot { margin: 24px 0 0; padding: 6px 16px; border: 1px solid var(--si-line); border-radius: 12px; }

/* The create view's line: "We don't have an account for ... yet." */
.gav-si .gav-si-lede .gav-si-id { color: var(--si-ink); }

/* The site's button stylesheet (html.gem-pages6 ... :is(.woocommerce-form-login__submit, ...))
   swaps the focus outline for a faint glow with !important, and its :is() list holds #place_order
   (an id), so the box's rule names its forms by id to keep a clear ring. */
html body .gav-si #gav-si-start-form .gav-si-btn:focus-visible,
html body .gav-si #gav-si-create-form .gav-si-btn:focus-visible { outline: 3px solid var(--si-ink) !important; outline-offset: 3px !important; }

/* 2026-11-23 (PK12): "Forgot your password?" gets a 44px tap area that reaches up into the space
   above it, so nothing moves and the link stays clear of the password box. */
html body .gav-si a.gav-si-forgot { box-sizing: border-box; min-height: 44px; padding-top: 12px; margin-top: -12px; }
@media (max-width: 360px) {
	.gav-si .gav-si-field-pass > .gav-si-forgot { margin-top: -6px; }
}
