/* Wills Family Farm cut sheet form. Black, white and gold. */
.wff-cut-sheet {
	--wff-gold: #C9A961;
	--wff-gold-bright: #D4AF6A;
	--wff-gold-deep: #8a6d1d;
	--wff-ink: #111111;
	--wff-line: #e4dfd2;
	--wff-paper: #faf8f3;
	--wff-error: #a3261b;
	margin: 1.5rem 0;
	color: var(--wff-ink);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	clear: both;
}
.wff-cut-sheet *, .wff-cut-sheet *::before, .wff-cut-sheet *::after { box-sizing: border-box; }
.wff-cut-sheet [hidden] { display: none !important; }

.wff-cs-prompt {
	margin: 0;
	padding: 14px 18px;
	background: var(--wff-paper);
	border: 1px dashed var(--wff-gold);
	color: #444;
	text-align: center;
}

.wff-cs-head {
	background: var(--wff-ink);
	color: #fff;
	padding: 22px 24px 18px;
	border-top: 3px solid var(--wff-gold);
}
.wff-cs-title {
	margin: 0 0 6px;
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-weight: 600;
	font-size: 1.75rem;
	line-height: 1.15;
	letter-spacing: .01em;
	color: var(--wff-gold-bright);
}
.wff-cs-sub { margin: 0 0 12px; color: #d8d8d8; }
.wff-cs-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 12px; font-size: .9rem; color: #bdbdbd; }
.wff-cs-meta strong { color: #fff; font-weight: 600; }
.wff-cut-sheet .wff-cs-note {
	margin: 0 0 8px;
	padding-left: 12px;
	border-left: 2px solid var(--wff-gold);
	font-size: .85rem;
	color: #cfcfcf;
}
.wff-cs-toolbar { margin-top: 10px; display: flex; gap: 16px; }
.wff-cut-sheet .wff-linkbtn {
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	min-height: 0;
	box-shadow: none !important;
	color: var(--wff-gold-bright) !important;
	font: inherit;
	font-size: .85rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
}

.wff-errors {
	margin: 0;
	padding: 14px 18px;
	background: #fbeceb;
	border: 1px solid var(--wff-error);
	border-left-width: 4px;
	color: #5c1510;
}
.wff-errors ul { margin: 6px 0 0 1.1em; padding: 0; }
.wff-errors a { color: var(--wff-error); font-weight: 500; }

.wff-section {
	border: 1px solid var(--wff-line);
	border-top: 0;
	background: #fff;
}
.wff-section > summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	cursor: pointer;
	list-style: none;
	background: var(--wff-paper);
	user-select: none;
}
.wff-section > summary::-webkit-details-marker { display: none; }
.wff-section > summary::before {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--wff-gold-deep);
	border-bottom: 2px solid var(--wff-gold-deep);
	transform: rotate(-45deg);
	transition: transform .15s ease;
}
.wff-section[open] > summary::before { transform: rotate(45deg); }
.wff-section[open] > summary { border-bottom: 1px solid var(--wff-line); }
.wff-sec-title {
	flex: 1 1 auto;
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--wff-ink);
}
.wff-badge {
	flex: 0 0 auto;
	font-size: .7rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	padding: 2px 8px;
	border: 1px solid var(--wff-line);
	color: #666;
	background: #fff;
}
.wff-badge.is-required { border-color: var(--wff-gold); color: var(--wff-gold-deep); }
.wff-done { flex: 0 0 auto; width: 22px; text-align: center; color: transparent; font-weight: 700; }
.wff-section.is-complete .wff-done { color: #fff; background: var(--wff-gold-deep); border-radius: 50%; width: 22px; height: 22px; line-height: 22px; font-size: 13px; }

.wff-sec-body { padding: 18px; }
.wff-help { margin: 4px 0 10px; font-size: .85rem; color: #555; font-style: italic; }
.wff-sec-help { margin-top: 0; }
.wff-hint { margin: 0 0 8px; font-size: .8rem; color: var(--wff-gold-deep); }

.wff-field { margin: 0 0 20px; padding: 0; border-radius: 2px; }
.wff-field:last-child { margin-bottom: 0; }
.wff-field.has-error { outline: 2px solid var(--wff-error); outline-offset: 6px; }
.wff-field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.wff-field legend, .wff-label {
	display: block;
	padding: 0;
	margin: 0 0 4px;
	font-weight: 600;
	color: var(--wff-ink);
}
.wff-req { color: var(--wff-gold-deep); margin-left: 2px; }

.wff-options { display: grid; gap: 8px; }
.wff-opt {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--wff-line);
	background: #fff;
	cursor: pointer;
	font-weight: 400;
	transition: border-color .12s ease, background .12s ease;
}
.wff-opt:hover { border-color: var(--wff-gold); }
.wff-opt input[type="radio"], .wff-opt input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 3px 0 0;
	width: 17px;
	height: 17px;
	accent-color: var(--wff-gold-deep);
}
.wff-opt:has(input:checked) { border-color: var(--wff-gold); background: #fbf7ec; }

.wff-opt--batch { flex-wrap: wrap; align-items: center; cursor: default; }
.wff-opt--batch > label { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 200px; margin: 0; cursor: pointer; font-weight: 400; }
.wff-opt--batch select { flex: 1 1 170px; max-width: 240px; }
.wff-opt--batch:not(.is-on) select { opacity: .45; }

.wff-field select, .wff-field input[type="number"], .wff-field textarea {
	width: 100%;
	max-width: 420px;
	padding: 10px 12px;
	border: 1px solid #cfc8b6;
	border-radius: 0;
	background: #fff;
	color: var(--wff-ink);
	font: inherit;
}
.wff-field textarea { max-width: 100%; }
.wff-field select:focus, .wff-field input:focus, .wff-field textarea:focus {
	outline: 2px solid var(--wff-gold);
	outline-offset: 1px;
	border-color: var(--wff-gold-deep);
}
.wff-opt input:focus-visible { outline: 2px solid var(--wff-gold-deep); outline-offset: 2px; }

@media (min-width: 640px) {
	.wff-field--radio .wff-options, .wff-field--checkbox .wff-options, .wff-field--checkbox_batch .wff-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wff-field--radio:has(.wff-opt span:only-child) .wff-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.wff-cs-head { padding: 18px 16px 14px; }
	.wff-sec-body { padding: 14px; }
	.wff-section > summary { padding: 12px 14px; }
}

/* Processing date picker */
.wff-batch { margin: 0 0 18px; padding: 18px; border: 1px solid var(--wff-gold); border-top-width: 3px; background: #fff; }
.wff-batch .wff-options--batch { grid-template-columns: 1fr; }
.wff-opt--date { align-items: flex-start; padding: 12px 14px; }
.wff-date-main { display: grid; gap: 2px; }
.wff-date-main strong { font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif; font-size: 1.3rem; line-height: 1.2; }
.wff-date-place { font-size: .95rem; color: #111; font-weight: 600; }
.wff-date-pickup { font-size: .9rem; color: #333; }
.wff-date-left { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--wff-gold-deep); font-weight: 600; }

/* How many quarters (v1.3.0). The dropdown posts "quantity"; WooCommerce's own quantity box is locked and hidden. */
.wff-qty-pick { margin: 0 0 18px; padding: 18px; border: 1px solid var(--wff-gold, #C9A961); border-top-width: 3px; background: #fff; }
.wff-qty-pick .wff-label { display: block; font-weight: 600; margin: 0 0 6px; }
.wff-qty-pick select { min-width: 14rem; max-width: 100%; padding: 10px 12px; font: inherit; }
.wff-qty-pick .wff-help { margin: 8px 0 0; font-size: .9rem; color: #333; }
.wff-qty-note { color: var(--wff-gold-deep, #8a6d1d); }
.wff-cs-per-quarter { color: var(--wff-gold-bright, #D4AF6A); }
body.wff-has-qty form.cart .quantity,
body.wff-has-qty form.variations_form .quantity { display: none !important; }
.wff-cart-qty { font-weight: 600; }

/* Processor fees (v1.5.0): shown beside each processing date in the picker. */
.wff-fees--date { display: block; margin-top: 6px; padding: 8px 10px; border-left: 3px solid var(--wff-gold-deep); background: rgba(201, 169, 97, .14); }
.wff-fees--date .wff-fees-title { display: block; font-size: .85rem; font-weight: 600; color: #111; }
.wff-fees--date .wff-fees-list { display: block; margin-top: 4px; }
.wff-fees--date .wff-fee { display: block; font-size: .9rem; color: #222; }
.wff-opt--date input:checked ~ .wff-date-main .wff-fees--date { background: rgba(201, 169, 97, .3); }

/* v1.5.1: a legend that repeats its section title stays for screen readers only; pickup timing line by the date picker. */
.wff-field legend.wff-legend-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wff-batch .wff-pickup-timing { margin: 0 0 8px; font-size: 1rem; color: #111; }
/* WO9 (1.6.11): "Raised by" line under each processing date, in the same style as the pickup line. */
.wff-date-farm { font-size: .9rem; color: #333; }

/* ---------- WO13 (1.6.15) ---------- */
/* Item 1a: Classic, Reserve and Premium Ground Beef: the Share box and its Clear link are out of view. "Quarter" stays chosen in the hidden box and is still sent with the order. */
.wff-share-hidden form.variations_form table.variations,
.wff-share-hidden form.variations_form .reset_variations { display: none !important; }
/* Item 2b-2d: "How many quarters" as four buttons (real radio inputs). Phone: two to a row, at least 48 px tall. Desktop: four in one row. */
.wff-qty-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.wff-qty-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
@media (min-width: 922px) { .wff-qty-btns { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wff-qty-btn { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 0; padding: 8px 10px; box-sizing: border-box; border: 1px solid rgba(18, 18, 18, .35); background: #fff; color: rgb(18, 18, 18); font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer; }
.wff-qty-btn[hidden] { display: none; }
.wff-qty-btn input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.wff-qty-btn.is-on, .wff-qty-btn:has(input:checked) { background: rgb(201, 169, 97); border-color: rgb(201, 169, 97); color: rgb(18, 18, 18); }
.wff-qty-btn:has(input:focus-visible) { outline: 2px solid var(--wff-gold-deep, #8a6d1d); outline-offset: 2px; }
