:root {
  --fam-green: #20513f;
  --fam-green-dark: #163d30;
  --fam-coral: #eb6650;
  --fam-ink: #25352e;
  --fam-muted: #79847e;
  --fam-line: #e7ece8;
}

/* Company request card */
.fam-company-card {
  box-sizing: border-box;
  width: min(100%, 940px);
  margin: 34px auto;
  padding: clamp(24px, 4vw, 48px);
  color: var(--fam-ink);
  background: #fff;
  border: 1px solid var(--fam-line);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(29, 62, 47, .09);
}
.fam-company-eyebrow { color: var(--fam-green); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.fam-company-card h2 { margin: 10px 0 8px; color: var(--fam-ink); font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; }
.fam-company-intro { max-width: 680px; margin: 0 0 26px; color: var(--fam-muted); line-height: 1.65; }
.fam-company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fam-company-grid label { display: flex; flex-direction: column; gap: 8px; color: #34473d; font-size: 14px; font-weight: 700; }
.fam-company-grid .is-wide { grid-column: 1 / -1; }
.fam-company-grid input { box-sizing: border-box; width: 100%; min-height: 52px; padding: 0 15px; color: var(--fam-ink); background: #fbfcfb; border: 1px solid #dfe7e1; border-radius: 12px; outline: none; font: inherit; font-weight: 400; transition: border-color .18s, box-shadow .18s, background .18s; }
.fam-company-grid input:focus { background: #fff; border-color: var(--fam-green); box-shadow: 0 0 0 4px rgba(32, 81, 63, .1); }
.fam-company-submit { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 54px; margin-top: 24px; padding: 0 24px; color: #fff; background: var(--fam-green); border: 0; border-radius: 13px; box-shadow: 0 8px 18px rgba(32, 81, 63, .18); font: inherit; font-weight: 800; cursor: pointer; transition: transform .18s, background .18s; }
.fam-company-submit:hover { transform: translateY(-2px); background: var(--fam-green-dark); }
.fam-company-submit span { font-size: 20px; line-height: 1; }
.fam-company-privacy { margin: 16px 0 0; color: var(--fam-muted); font-size: 12px; }
.fam-company-notice { margin: 18px 0; padding: 14px 16px; border-radius: 12px; font-weight: 650; }
.fam-company-notice.is-success { color: #145b3c; background: #eaf6ef; }
.fam-company-notice.is-error { color: #8e302b; background: #fff0ee; }

/* Refined WooCommerce login / account area */
.woocommerce-account:not(.logged-in) .woocommerce,
.woocommerce-account .woocommerce-MyAccount-content { color: var(--fam-ink); }
.woocommerce-account:not(.logged-in) .woocommerce .u-columns,
.woocommerce-account:not(.logged-in) .woocommerce .col2-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.woocommerce-account:not(.logged-in) .woocommerce .u-columns::before,
.woocommerce-account:not(.logged-in) .woocommerce .u-columns::after,
.woocommerce-account:not(.logged-in) .woocommerce .col2-set::before,
.woocommerce-account:not(.logged-in) .woocommerce .col2-set::after { display: none !important; content: none !important; }
.woocommerce-account:not(.logged-in) .woocommerce .u-column1,
.woocommerce-account:not(.logged-in) .woocommerce .u-column2,
.woocommerce-account:not(.logged-in) form.woocommerce-form-login,
.woocommerce-account:not(.logged-in) form.woocommerce-form-register { box-sizing: border-box; padding: clamp(22px, 3vw, 36px); background: #fff; border: 1px solid var(--fam-line); border-radius: 22px; box-shadow: 0 16px 48px rgba(29, 62, 47, .07); }
.woocommerce-account:not(.logged-in) .woocommerce .u-column1,
.woocommerce-account:not(.logged-in) .woocommerce .u-column2 { width: 100% !important; min-width: 0; float: none !important; margin: 0 !important; }
.woocommerce-account:not(.logged-in) .woocommerce h2,
.woocommerce-account:not(.logged-in) .woocommerce h3 { color: var(--fam-ink); }
.woocommerce-account:not(.logged-in) .woocommerce .u-column1 h2,
.woocommerce-account:not(.logged-in) .woocommerce .u-column2 h2 { margin: 0 0 24px; color: var(--fam-ink); font-family: inherit; font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; line-height: 1.15; }
.woocommerce-account:not(.logged-in) .woocommerce .u-column1 label,
.woocommerce-account:not(.logged-in) .woocommerce .u-column2 label { color: #34473d; font-size: 14px; font-weight: 700; }
.woocommerce-account:not(.logged-in) .woocommerce form .form-row { margin-bottom: 16px; }
.woocommerce-account:not(.logged-in) .woocommerce form .input-text,
.woocommerce-account:not(.logged-in) .woocommerce form input[type="text"],
.woocommerce-account:not(.logged-in) .woocommerce form input[type="email"],
.woocommerce-account:not(.logged-in) .woocommerce form input[type="password"],
.woocommerce-account:not(.logged-in) .woocommerce form input[type="tel"] { box-sizing: border-box; min-height: 50px; padding: 0 14px; background: #fbfcfb; border: 1px solid #dfe7e1; border-radius: 11px; box-shadow: none; }
.woocommerce-account:not(.logged-in) .woocommerce form .input-text:focus,
.woocommerce-account:not(.logged-in) .woocommerce form input:focus { border-color: var(--fam-green); box-shadow: 0 0 0 4px rgba(32, 81, 63, .1); outline: 0; }
.woocommerce-account:not(.logged-in) .woocommerce button.button,
.woocommerce-account:not(.logged-in) .woocommerce a.button { min-height: 48px; padding: 0 22px; color: #fff; background: var(--fam-green); border: 0; border-radius: 11px; font-weight: 750; }
.woocommerce-account:not(.logged-in) .woocommerce button.button:hover,
.woocommerce-account:not(.logged-in) .woocommerce a.button:hover { background: var(--fam-green-dark); }
.woocommerce-account:not(.logged-in) .woocommerce .u-column1 button.button,
.woocommerce-account:not(.logged-in) .woocommerce .u-column2 button.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 12px; padding: 0 24px; color: #fff; background: var(--fam-green); border: 0; border-radius: 13px; box-shadow: 0 8px 18px rgba(32, 81, 63, .18); font-family: inherit; font-size: 15px; font-weight: 800; line-height: 1; cursor: pointer; transition: transform .18s, background .18s; }
.woocommerce-account:not(.logged-in) .woocommerce .u-column1 button.button:hover,
.woocommerce-account:not(.logged-in) .woocommerce .u-column2 button.button:hover { transform: translateY(-2px); background: var(--fam-green-dark); }
.woocommerce-account:not(.logged-in) .woocommerce form[class*="company"],
.woocommerce-account:not(.logged-in) .woocommerce form[id*="company"],
.woocommerce-account:not(.logged-in) .woocommerce [class*="company-registration"] { border-radius: 20px; }

/* Small floating chef helper */
.fam-chef-widget, .fam-chef-widget * { box-sizing: border-box; }
.fam-chef-widget { position: fixed; z-index: 99990; right: 26px; bottom: 26px; font-family: inherit; }
.fam-chef-toggle { position: relative; display: grid; width: 64px; height: 64px; place-items: center; color: #fff; background: linear-gradient(145deg, #2f7255, #174433); border: 3px solid rgba(255,255,255,.92); border-radius: 50%; box-shadow: 0 10px 28px rgba(25, 58, 43, .28); cursor: pointer; transition: transform .2s; }
.fam-chef-toggle:hover { transform: translateY(-3px) rotate(-5deg); }
.fam-chef-hat { font-size: 29px; font-weight: 800; line-height: 1; }
.fam-chef-toggle-dot { position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; background: #f7c66a; border: 2px solid white; border-radius: 50%; }
.fam-chef-panel { position: absolute; right: 0; bottom: 80px; display: flex; width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 135px)); flex-direction: column; overflow: hidden; background: #fbfcfb; border: 1px solid rgba(32,81,63,.12); border-radius: 22px; box-shadow: 0 22px 65px rgba(22, 47, 35, .25); animation: fam-chef-in .18s ease-out; }
.fam-chef-panel[hidden] { display: none; }
@keyframes fam-chef-in { from { opacity: 0; transform: translateY(9px) scale(.98); } to { opacity: 1; transform: none; } }
.fam-chef-header { display: flex; align-items: center; gap: 11px; min-height: 72px; padding: 12px 16px; color: #fff; background: linear-gradient(110deg, #20513f, #2d6a50); }
.fam-chef-avatar { display: grid; width: 42px; height: 42px; place-items: center; color: var(--fam-green); background: #fff; border-radius: 50%; font-size: 24px; }
.fam-chef-heading { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.fam-chef-heading strong { font-size: 15px; }
.fam-chef-heading small { color: rgba(255,255,255,.75); font-size: 11px; }
.fam-chef-close { width: 34px; height: 34px; color: #fff; background: rgba(255,255,255,.13); border: 0; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }
.fam-chef-feed { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 10px; overflow-y: auto; padding: 16px; }
.fam-chef-message { max-width: 88%; padding: 11px 13px; color: #34463c; background: #fff; border: 1px solid var(--fam-line); border-radius: 14px 14px 14px 4px; font-size: 13px; line-height: 1.5; }
.fam-chef-message.user { align-self: flex-end; color: #fff; background: var(--fam-green); border-color: var(--fam-green); border-radius: 14px 14px 4px 14px; }
.fam-chef-products { display: grid; gap: 9px; }
.fam-chef-product { display: flex; align-items: center; gap: 8px; min-height: 75px; padding: 8px; color: var(--fam-ink); background: #fff; border: 1px solid var(--fam-line); border-radius: 14px; transition: border-color .16s, transform .16s; }
.fam-chef-product:hover { transform: translateY(-1px); color: var(--fam-ink); border-color: #aac9b5; }
.fam-chef-product-link { display: flex; min-width: 0; flex: 1; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.fam-chef-product-link:hover { color: inherit; }
.fam-chef-product img { width: 58px; height: 58px; flex: 0 0 58px; object-fit: cover; border-radius: 10px; }
.fam-chef-product-info { display: flex; min-width: 0; flex: 1; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.fam-chef-product-info strong { width: 100%; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.fam-chef-price { color: var(--fam-green); font-size: 12px; font-weight: 800; }
.fam-chef-link-label { margin-left: auto; color: var(--fam-coral); font-size: 11px; font-weight: 800; }
.fam-chef-pair-button { flex: 0 0 auto; padding: 8px 10px; color: var(--fam-green); background: #edf5ef; border: 0; border-radius: 9px; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.fam-chef-pair-button:hover { color: #fff; background: var(--fam-green); }
.fam-chef-form { display: flex; gap: 8px; padding: 12px; background: #fff; border-top: 1px solid var(--fam-line); }
.fam-chef-input { width: 100%; min-width: 0; min-height: 46px; padding: 0 13px; color: var(--fam-ink); background: #f6f8f6; border: 1px solid var(--fam-line); border-radius: 12px; font: inherit; }
.fam-chef-input:focus { border-color: var(--fam-green); outline: 3px solid rgba(32,81,63,.1); }
.fam-chef-send { width: 46px; height: 46px; flex: 0 0 46px; color: #fff; background: var(--fam-green); border: 0; border-radius: 12px; font-size: 20px; cursor: pointer; }

@media (max-width: 720px) {
  .fam-company-grid { grid-template-columns: 1fr; gap: 14px; }
  .fam-company-grid .is-wide { grid-column: auto; }
  .woocommerce-account:not(.logged-in) .woocommerce .u-columns,
  .woocommerce-account:not(.logged-in) .woocommerce .col2-set { grid-template-columns: 1fr; }
  .fam-chef-widget { right: 14px; bottom: 14px; }
  .fam-chef-toggle { width: 58px; height: 58px; }
  .fam-chef-panel { right: -2px; bottom: 72px; width: min(360px, calc(100vw - 24px)); height: min(520px, calc(100vh - 105px)); }
}
/* Restaurant page: smaller chef helper, pinned to the lower corner */body.page-id-4134 .fam-chef-widget{position:fixed!important;right:12px!important;bottom:12px!important;z-index:99999!important}body.page-id-4134 .fam-chef-toggle{width:46px!important;height:46px!important}body.page-id-4134 .fam-chef-toggle img{width:38px!important;height:38px!important;object-fit:contain!important}body.page-id-4134 .fam-chef-hat{font-size:21px!important}@media(max-width:720px){body.page-id-4134 .fam-chef-widget{right:10px!important;bottom:calc(10px + env(safe-area-inset-bottom))!important}body.page-id-4134 .fam-chef-toggle{width:42px!important;height:42px!important}body.page-id-4134 .fam-chef-toggle img{width:34px!important;height:34px!important}}
/* Compact sticky order panel on the restaurant menu */#fam-restaurant-menu .fam-rm-checkout:not([hidden]){position:fixed!important;left:12px!important;bottom:12px!important;width:min(520px,calc(100vw - 92px))!important;max-height:54px!important;overflow:hidden!important;z-index:99980!important;margin:0!important;padding:10px 14px!important;border:1px solid #d8d2c5!important;border-radius:16px!important;box-shadow:0 8px 28px rgba(0,0,0,.18)!important;background:#fffdf8!important;transition:max-height .2s ease!important}#fam-restaurant-menu .fam-rm-checkout.fam-rm-open,#fam-restaurant-menu .fam-rm-checkout:focus-within{max-height:min(78vh,720px)!important;overflow-y:auto!important}#fam-restaurant-menu .fam-rm-checkout h2{margin:0!important;cursor:pointer!important;font-size:18px!important;line-height:32px!important}@media(max-width:720px){#fam-restaurant-menu .fam-rm-checkout:not([hidden]){left:8px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;width:calc(100vw - 70px)!important;max-height:50px!important;padding:8px 12px!important}#fam-restaurant-menu .fam-rm-checkout.fam-rm-open,#fam-restaurant-menu .fam-rm-checkout:focus-within{max-height:78vh!important}}
/* Center quantity symbols inside their circular controls on the restaurant menu */#fam-restaurant-menu .fam-rm-qty button{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;line-height:1!important}
/* Restaurant page: centered logo above language buttons */body.page-id-4134 #fam-site-header { display: block !important; padding: 14px 16px 4px; background: #fff; }body.page-id-4134 #fam-site-header .fh-main { display: flex !important; justify-content: center; align-items: center; }body.page-id-4134 #fam-site-header .fh-brand { display: flex !important; justify-content: center; margin: 0 auto; }body.page-id-4134 #fam-site-header .fh-brand img { display: block; width: auto; max-width: 150px; max-height: 56px; object-fit: contain; }body.page-id-4134 #fam-site-header .fh-menu,body.page-id-4134 #fam-site-header .fh-searchrow,body.page-id-4134 #fam-site-header .fh-tools { display: none !important; }body.page-id-4134 .fam-r-languages { margin: 8px auto 22px !important; }
