/*
Theme Name: seasonal job
Theme URI: https://shop.benzilinskas.com
Description: The benzilinskas.com look for the seasonal job shop: Albura type, off-white paper, a left column with the menu and the content on the right. Child theme of Twenty Twenty-Four.
Author: seasonal job
Template: twentytwentyfour
Version: 1.0.0
Requires at least: 6.4
Text Domain: seasonal-job
*/

:root {
  --sj-bg: #f5f3f1;
  --sj-panel: #edebe9;
  --sj-ink: #000;
  --sj-muted: #6d6466;
  --sj-font: "Albura", Georgia, "Times New Roman", serif;
}

body {
  margin: 0;
  background: var(--sj-bg);
  color: var(--sj-ink);
  font: 400 20px/1.55 var(--sj-font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--sj-font); font-weight: 400; line-height: 1.2; letter-spacing: normal; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--sj-ink); outline-offset: 3px; }
.sj-small { font-size: 15px; color: var(--sj-muted); }
.sj-small a { color: inherit; }

/* Layout: left column (header part) and content (main), 1100px wide like the main site.
   The footer part's two blocks drop into the grid: signup under the content, links under the menu. */
.wp-site-blocks:has(.sj-sidebar) {
  display: grid;
  grid-template-columns: 450px minmax(0, 620px);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "side content" "foot content" ". signup";
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 0 96px !important;
}
.wp-site-blocks:has(.sj-sidebar) > * { margin-block-start: 0 !important; }
.wp-site-blocks:has(.sj-sidebar) > header { grid-area: side; padding-right: 48px; }
.wp-site-blocks:has(.sj-sidebar) > main { grid-area: content; min-width: 0; padding: 4px 0 0 !important; margin: 0 !important; }
.wp-site-blocks:has(.sj-sidebar) > footer { display: contents; }
.sj-signup-block { grid-area: signup; }
.sj-foot { grid-area: foot; align-self: start; padding: 28px 48px 0 0; }
.wp-site-blocks:has(.sj-sidebar) > main > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
.wp-site-blocks:has(.sj-sidebar) > main .alignwide, .wp-site-blocks > main .alignfull { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }

/* Left column */
.sj-site-name { font-size: 32px; line-height: 1.2; margin: 0 0 22px; }
.sj-site-name a, .sj-site-title a { text-decoration: none; }
.sj-site-title { font-size: 16px; font-weight: 700; text-transform: uppercase; margin: 0 0 6px; }
.sj-site-title span { font-weight: 400; }
.sj-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; font-size: 14.4px; letter-spacing: 0.04em; padding-top: 6px; }
.sj-nav a { text-decoration: none; }
.sj-nav a:hover, .sj-nav a[aria-current] { text-decoration: underline; }
.sj-social { list-style: none; display: flex; gap: 32px; margin: 0 0 18px; padding: 0; font-size: 16px; }
.sj-social a { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.sj-social svg { width: 24px; height: 24px; fill: currentColor; }
.sj-foot-links { display: flex; gap: 18px; font-size: 14.4px; letter-spacing: 0.04em; margin: 0 0 10px; }
.sj-foot-links a { text-decoration: none; }
.sj-copyright { font-size: 11px; margin: 0; }

/* Content */
.sj-page-title, .wp-site-blocks > main h1.wp-block-post-title { font-size: 32px; font-style: italic; margin: 0 0 0.7em; }
.sj-lede { font-size: 20px; }
.sj-prose ul { padding-left: 1.1em; }
.sj-prose li { margin-bottom: 0.5em; }
.sj-notice { border: 1px solid var(--sj-ink); padding: 14px 16px; }

/* Shop grid */
.sj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; margin-top: 36px; }
.sj-card { display: block; text-decoration: none; }
.sj-card-media { position: relative; display: block; aspect-ratio: 1; background: var(--sj-panel); overflow: hidden; }
.sj-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sj-card-media .alt { position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s ease; }
@media (hover: hover) { .sj-card:hover .sj-card-media .alt { opacity: 1; } }
.sj-card-name { display: block; margin-top: 12px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.sj-card-meta { display: block; font-size: 15px; color: var(--sj-muted); }
.sj-card.is-sold-out .sj-card-media img { opacity: 0.45; }

/* Product page */
.sj-back { margin: 0 0 18px; }
.sj-price-line { font-size: 22px; margin: -0.3em 0 24px; }
.sj-price-line span { font-size: 15px; color: var(--sj-muted); }
.sj-gallery-main { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--sj-panel); }
.sj-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.sj-thumbs a { display: block; border: 1px solid transparent; }
.sj-thumbs a[aria-current] { border-color: var(--sj-ink); }
.sj-thumbs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--sj-panel); }
.sj-buy { margin: 28px 0 32px; }
.sj-size-guide { margin: 0 0 6px; }
.sj-facts { list-style: none; padding: 18px 0 0; margin: 28px 0 0; border-top: 1px solid var(--sj-ink); }
.sj-facts li { margin-bottom: 4px; }

/* WooCommerce's add-to-cart form, dressed like the custom shop */
.sj-buy form.cart { margin: 0; }
.sj-buy table.variations { border: 0; margin: 0 0 12px; border-collapse: collapse; }
.sj-buy table.variations th, .sj-buy table.variations td { border: 0; padding: 0; text-align: left; display: block; }
.sj-buy table.variations tr.sj-hidden { display: none; }
.sj-buy table.variations th.label, .sj-buy table.variations td.label { display: none; }
.sj-buy table.variations select.sj-replaced { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sj-buy .reset_variations { display: none !important; }
.sj-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.sj-size { cursor: pointer; background: transparent; border: 1px solid var(--sj-ink); border-radius: 0; padding: 9px 12px 7px; min-width: 64px; font: inherit; color: var(--sj-ink); line-height: 1.2; }
.sj-size small { display: block; font-size: 12px; color: var(--sj-muted); }
.sj-size[aria-pressed="true"] { background: var(--sj-ink); color: var(--sj-bg); }
.sj-size[aria-pressed="true"] small { color: var(--sj-bg); }
.sj-size:disabled { cursor: not-allowed; opacity: 0.35; text-decoration: line-through; }
.sj-buy .woocommerce-variation-price, .sj-buy .woocommerce-variation-availability, .sj-buy .stock { display: none; }
.sj-buy .quantity { display: none !important; }
.sj-buy .single_add_to_cart_button, .wp-element-button, .wc-block-components-button:not(.is-link), .button, .wp-block-button__link {
  background: var(--sj-ink) !important; color: var(--sj-bg) !important; border: 1px solid var(--sj-ink) !important; border-radius: 0 !important;
  font-family: var(--sj-font) !important; font-size: 15px !important; letter-spacing: 0.06em; text-transform: uppercase; padding: 13px 26px !important; cursor: pointer;
}
.sj-buy .single_add_to_cart_button:hover, .wp-element-button:hover, .button:hover { background: var(--sj-bg) !important; color: var(--sj-ink) !important; }
.sj-buy .single_add_to_cart_button.disabled { opacity: 0.4; }
/* Two stacked, equal buttons: solid black Add to cart, then the outlined express checkout
   (WooPay, Apple Pay, Google Pay: "light-outline", square, large in WooPayments settings). */
.sj-buy .woocommerce-variation-add-to-cart, .sj-buy form.cart:not(.variations_form) { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 18px; }
.sj-buy .single_add_to_cart_button { width: 100%; height: 56px; padding: 0 26px !important; font-size: 16px !important; line-height: 1; }
.sj-buy .wcpay-express-checkout-wrapper { width: 100%; margin: 12px 0 0 !important; padding: 0 !important; }
.sj-buy .wcpay-express-checkout-wrapper > * + * { margin-top: 10px; }
.sj-buy #wcpay-woopay-button, .sj-buy .woopay-express-button { width: 100% !important; border-radius: 0 !important; }
.sj-buy .woopay-express-button { height: 56px !important; border: 1px solid var(--sj-ink) !important; box-shadow: none !important; }
.sj-buy .woopay-express-button:hover { background: var(--sj-panel) !important; }
.sj-buy .wcpay-express-checkout-wrapper .woocommerce-pay-express-separator, .sj-buy #wcpay-express-checkout-button-separator { display: none !important; }

/* Hang tag copy in descriptions, set like the printed tag */
.sj-description .sj-hang-tag { margin: 28px 0 0; padding: 20px 20px 16px; background: #fff; border: 1px solid var(--sj-ink); max-width: 420px; }
.sj-hang-tag .sj-hang-tag-for { font: italic 700 16px Arial, Helvetica, sans-serif; text-decoration: underline; text-underline-offset: 3px; margin: 0 0 8px; }
.sj-hang-tag ul { list-style: none; margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--sj-ink); font: italic 700 17px/1.45 Arial, Helvetica, sans-serif; }
.sj-hang-tag .sj-hang-tag-warning { margin: 0; padding: 10px 12px; border: 1px solid var(--sj-ink); font-size: 15px; line-height: 1.4; }
.sj-hang-tag .sj-hang-tag-warning strong { text-transform: uppercase; letter-spacing: 0.04em; }
.sj-description table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 17px; }
.sj-description th, .sj-description td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--sj-ink); font-weight: 400; }
.sj-description th { font-size: 15px; color: var(--sj-muted); }

/* Notices, inputs, cart and checkout blocks */
/* Notices: one thin border, no icon, link-style action (WooCommerce wraps them in its own banner markup). */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  display: block !important; border: 1px solid var(--sj-ink) !important; border-radius: 0 !important; background: transparent !important; color: var(--sj-ink) !important;
  padding: 12px 16px !important; margin: 0 0 28px !important; font-size: 16px; list-style: none; box-shadow: none !important;
}
.wc-block-components-notice-banner > svg, .woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none !important; }
.wc-block-components-notice-banner > .wc-block-components-notice-banner__content { padding: 0 !important; border: 0 !important; }
.wc-block-components-notice-banner.is-error { border-color: #b3261e !important; }
.wc-block-components-notice-banner .wc-forward, .woocommerce-message .button, .wc-block-components-notice-banner .button {
  float: none !important; display: inline !important; background: none !important; color: var(--sj-ink) !important; border: 0 !important;
  padding: 0 !important; margin: 0 0 0 8px !important; font-size: 16px !important; text-transform: none !important; letter-spacing: 0 !important;
  text-decoration: underline !important; opacity: 1 !important;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], select, textarea,
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input {
  background: transparent !important; border: 1px solid var(--sj-ink) !important; border-radius: 0 !important; font-family: var(--sj-font) !important; color: var(--sj-ink);
}
.wc-block-cart, .wc-block-checkout { font-family: var(--sj-font); }
.wc-block-components-product-name { font-style: italic; }

/* Shared buttons */
.sj-button { display: block; width: 100%; box-sizing: border-box; text-align: center; background: var(--sj-ink); color: var(--sj-bg) !important; border: 1px solid var(--sj-ink);
  padding: 15px 20px; font: 16px/1.2 var(--sj-font); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none !important; cursor: pointer; }
.sj-button:hover { background: var(--sj-bg); color: var(--sj-ink) !important; }
.sj-button-outline { background: transparent; color: var(--sj-ink) !important; }
.sj-button-outline:hover { background: var(--sj-panel); }

/* "Added to cart" panel: bottom sheet on phones, card on the right on larger screens */
.sj-added { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.25); display: flex; align-items: flex-end; justify-content: center; }
.sj-added-panel { background: var(--sj-bg); width: 100%; max-width: 420px; padding: 20px 20px 24px; border-top: 1px solid var(--sj-ink); box-shadow: 0 -8px 30px rgba(0,0,0,0.12); }
.sj-added-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; font-size: 20px; font-style: italic; }
.sj-added-close { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--sj-ink); padding: 0 4px; }
.sj-added-item { display: flex; gap: 14px; align-items: center; padding: 0 0 14px; border-bottom: 1px solid var(--sj-ink); }
.sj-added-item img { width: 72px; height: 72px; object-fit: cover; background: var(--sj-panel); }
.sj-added-name { margin: 0; font-size: 18px; }
.sj-added-item .sj-small { margin: 2px 0 0; }
.sj-added-subtotal { display: flex; justify-content: space-between; margin: 12px 0 16px; font-size: 16px; }
.sj-added-panel .sj-button + .sj-button { margin-top: 10px; }
.sj-added-continue { display: block; margin: 14px auto 0; background: none; border: 0; font: 15px var(--sj-font); color: var(--sj-muted); text-decoration: underline; cursor: pointer; }
@media (min-width: 782px) {
  .sj-added { align-items: flex-start; justify-content: flex-end; padding: 24px; }
  .sj-added-panel { border: 1px solid var(--sj-ink); }
}

/* Fixed add-to-cart bar on phones */
.sj-sticky-buy { display: none; }
@media (max-width: 781px) {
  .sj-sticky-buy { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(245, 243, 241, 0.96); border-top: 1px solid var(--sj-ink); transition: transform 0.2s ease; }
  .sj-sticky-buy.is-hidden { transform: translateY(110%); }
  body.has-sj-sticky-buy { padding-bottom: 80px; }
}

/* Checkout, cart and order confirmation */
.sj-checkout .wc-block-checkout, .sj-cart .wc-block-cart { margin-top: 8px; }
.wc-block-components-checkout-step__title, .wc-block-components-title, .wc-block-cart__totals-title { font-family: var(--sj-font) !important; font-style: italic; font-weight: 400 !important; font-size: 22px !important; text-transform: none !important; }
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button, .wc-block-cart__submit-button { width: 100%; min-height: 56px; }
.wc-block-components-order-summary-item__quantity { background: var(--sj-ink) !important; color: var(--sj-bg) !important; border: 0 !important; }
.wc-block-components-checkout-step { margin-bottom: 28px !important; }
.wc-block-components-text-input label, .wc-block-components-combobox label, .wc-blocks-components-select__label { font-family: var(--sj-font) !important; color: var(--sj-muted) !important; }
.wc-blocks-components-select .wc-blocks-components-select__select { border: 1px solid var(--sj-ink) !important; border-radius: 0 !important; background: transparent !important; font-family: var(--sj-font) !important; }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border-radius: 0 !important; }
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow: inset 0 0 0 1px var(--sj-ink) !important; }
.wc-block-components-express-payment__title-container .wc-block-components-express-payment__title, .wc-block-components-express-payment-continue-rule { font-family: var(--sj-font) !important; }
.wc-block-components-express-payment--checkout { border-radius: 0 !important; }
.wc-block-checkout__sidebar, .wc-block-components-sidebar { border: 0 !important; }
.wc-block-components-totals-wrapper { border-color: var(--sj-ink) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { border-radius: 0 !important; border-color: var(--sj-ink) !important; }
.sj-order-confirmation .wc-block-order-confirmation-status { font-size: 22px; font-style: italic; margin-bottom: 20px; }
.sj-order-confirmation .wc-block-order-confirmation-summary-list { border: 1px solid var(--sj-ink); padding: 14px 16px; list-style: none; display: grid; gap: 4px; }
.sj-order-confirmation h2, .sj-next-steps h2 { font-size: 24px; font-style: italic; font-weight: 400; margin: 32px 0 12px; }
.sj-order-confirmation table { width: 100%; border-collapse: collapse; }
.sj-order-confirmation th, .sj-order-confirmation td { border: 0; border-bottom: 1px solid var(--sj-ink); padding: 10px 6px 10px 0; text-align: left; font-weight: 400; }
.sj-order-confirmation address { font-style: normal; border: 1px solid var(--sj-ink); padding: 12px 14px; }
.sj-next-steps ol { padding-left: 1.2em; }
.sj-next-steps li { margin-bottom: 6px; }

/* Drop-list signup */
.sj-signup-block { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--sj-ink); }
.sj-signup-block h2 { font-size: 24px; font-style: italic; margin: 0 0 0.4em; }
.sj-signup-block p { font-size: 17px; margin: 0 0 1em; }
.sj-signup { display: flex; gap: 8px; }
.sj-signup input[type="email"] { flex: 1; padding: 10px 12px; font-size: 18px; }
.sj-signup button { white-space: nowrap; padding: 10px 18px !important; }
.sj-signup .sj-hp { position: absolute; left: -9999px; }
.sj-signup-msg { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--sj-ink); font-size: 17px; }
.sj-signup-msg.is-done::before { content: "✓ "; }
.sj-signup-msg.is-error { border-color: #b3261e; }
.sj-signup button[disabled] { opacity: 0.6; cursor: wait; }

@media (max-width: 1140px) {
  .wp-site-blocks:has(.sj-sidebar) { grid-template-columns: 320px minmax(0, 1fr); padding: 96px 32px 80px !important; }
}
@media (max-width: 781px) {
  body { font-size: 18px; }
  .wp-site-blocks:has(.sj-sidebar) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "content" "signup" "foot"; grid-template-rows: auto; padding: 40px 24px 56px !important; }
  .wp-site-blocks:has(.sj-sidebar) > header { padding: 0 0 32px; }
  .sj-site-name { font-size: 28px; margin-bottom: 14px; }
  .sj-nav { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
  .sj-foot { padding: 48px 0 0; }
  .sj-grid { gap: 32px 16px; }
  .sj-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
}
@media (max-width: 480px) {
  .sj-grid { grid-template-columns: minmax(0, 1fr); }
  .sj-signup { flex-direction: column; }
}
.sj-signup[hidden] { display: none; }
.sj-added-panel:focus { outline: none; }

/* Size prompt: "Choose your size first." and a short highlight when the phone bar scrolls up here. */
.sj-size-hint { margin: 10px 0 0; font-size: 16px; color: #a3141c; }
.sj-sizes.sj-flash { animation: sj-flash 1.2s ease-out; }
@keyframes sj-flash { 0%, 40% { box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.08); background: rgba(0, 0, 0, 0.08); } 100% { box-shadow: 0 0 0 8px transparent; background: transparent; } }

/* Checkout fields: a focused field gets a thicker border instead of a second box around it, and the
   "Email me about the next drop" box sits clear of the email field. */
.wc-block-components-text-input input:focus, .wc-block-components-text-input input:focus-visible,
.wc-blocks-components-select select:focus, .wc-blocks-components-select select:focus-visible,
.wc-block-components-textarea:focus { outline: none !important; box-shadow: inset 0 0 0 1px var(--sj-ink) !important; border-color: var(--sj-ink) !important; }
.wc-block-checkout__contact-fields .wc-block-components-checkbox { margin-top: 20px !important; }
.wc-block-components-checkbox label { gap: 12px; align-items: flex-start; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { margin: 0 !important; flex: 0 0 auto; }
.wc-block-checkout__guest-checkout-notice { margin-top: 12px !important; }

/* Empty cart: same lede and product cards as the home page. */
.sj-empty-cart { text-align: left; }
.sj-empty-cart .sj-lede { margin: 0 0 0.3em; }
.sj-empty-cart .sj-small { margin: 0 0 28px; }
