/* WordPress / WooCommerce layer on top of the prototype styles. */
.skip-link{position:absolute;left:-9999px;top:0;z-index:999;background:var(--plum-900);color:#fff;padding:.6rem 1rem;border-radius:var(--radius-md)}
.skip-link:focus{left:1rem;top:1rem}
.page.active{display:block}
.prose{max-width:760px}
.prose h2{margin:var(--space-8) 0 var(--space-3)}
.prose p,.prose li{line-height:1.7}
.prose a{color:var(--plum-600)}

/* Woo: buttons and fields in brand style */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,
.woocommerce a.button.alt,.woocommerce button.button.alt,.wc-block-components-button:not(.is-link){
  background:var(--plum-900);color:#fff;border:0;border-radius:var(--radius-md);padding:.85rem 1.4rem;font:600 var(--text-sm)/1 var(--font-body);transition:transform .15s,background .15s}
.woocommerce a.button:hover,.woocommerce button.button:hover,.wc-block-components-button:not(.is-link):hover{background:var(--plum-700, #6b2d45);color:#fff;transform:translateY(-1px)}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,
.wc-block-components-text-input input,.wc-block-components-combobox input{border:1.5px solid var(--blush-2);border-radius:var(--radius-md);padding:.75rem .9rem;font:inherit;background:#fff}
.woocommerce form .form-row input.input-text:focus,.wc-block-components-text-input input:focus{outline:0;border-color:var(--plum-600);box-shadow:0 0 0 3px rgba(122,40,72,.15)}
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-radius:var(--radius-md);border-top-color:var(--plum-600)}
.woocommerce table.shop_table{border-radius:var(--radius-lg);border-color:var(--hair, #eee)}
.woocommerce .price,.woocommerce-Price-amount{font-family:var(--font-display)}

/* Personal design in cart and order */
.sp-thumb{display:block;width:84px}
.sp-thumb svg{width:100%;height:auto;display:block}
.sp-qty{font-weight:600}
.woocommerce-cart-form .product-thumbnail{width:96px}
@media (max-width:760px){.sp-thumb{width:64px}}

/* Fødevareinformation */
.sp-food-box{border:1px solid var(--blush-2);border-radius:var(--radius-md);padding:.6rem .9rem;background:#fff}
.sp-food-box summary{cursor:pointer;font-weight:600;font-size:var(--text-sm);min-height:32px;display:flex;align-items:center}
.sp-food-list{display:grid;grid-template-columns:auto 1fr;gap:.35rem 1rem;margin:.6rem 0;font-size:var(--text-sm)}
.sp-food-list dt{font-weight:600;color:var(--plum-900)}
.sp-food-list dd{margin:0}
.sp-nutrition{width:100%;border-collapse:collapse;font-size:var(--text-sm);margin-top:.4rem}
.sp-nutrition caption{text-align:left;font-weight:600;padding:.3rem 0}
.sp-nutrition th,.sp-nutrition td{border-top:1px solid var(--hair, #eee);padding:.3rem 0;text-align:left;font-weight:400}
.sp-nutrition td{text-align:right}
.sp-food-review{max-height:220px;overflow:auto;border:1px solid var(--blush-2);border-radius:var(--radius-md);padding:.6rem .9rem;margin-bottom:.8rem}
.smiley-link{color:inherit;text-decoration:underline}
.sp-food-missing{font-size:var(--text-xs);background:#FFF4E5;border-radius:var(--radius-md);padding:.4rem .6rem;margin:.3rem 0}

/* ===== Mobile polish (staging audit 19/11) ===== */
html,body{overflow-x:clip}
@media (max-width:760px){
  .eyebrow{font-size:12px}
  .crumbs a{min-height:44px}
  main .btn,main .link-arrow,main .tp-badge,main a.btn-sm,main .btn-sm{min-height:44px}
  .m-cta{padding-bottom:max(.6rem, env(safe-area-inset-bottom))}
  .price-table-wrap,.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;background:linear-gradient(90deg,#fff 30%,rgba(255,255,255,0)) left/24px 100% no-repeat local,linear-gradient(-90deg,#fff 30%,rgba(255,255,255,0)) right/24px 100% no-repeat local}
}
/* Mobile toast: full width, above the bottom bar */
@media (max-width:760px){
  .toast{left:12px;right:12px;max-width:none;transform:translateY(160%);border-radius:14px;bottom:calc(92px + env(safe-area-inset-bottom));justify-content:space-between}
  .toast.show{transform:none}
  body:has(.mobile-buy) .toast{bottom:calc(122px + env(safe-area-inset-bottom))}
}
/* Designer on phones: overflow:hidden on the column turned it into the sticky container,
   so the tool tabs floated 132px down inside it and covered the templates. clip keeps the
   rounded corners without that side effect. */
@media (max-width:980px){
  .studio-col{overflow:clip}
}
.toast .link-arrow{white-space:nowrap;flex:none;min-height:0}
body:has(.toast.show) #cookie-notice.cookie-revoke-visible{opacity:0;pointer-events:none}
/* File field (name list) in the brand style instead of the browser's grey button */
.studio input[type=file]{width:100%;max-width:100%;font-size:14px;color:var(--plum)}
.studio input[type=file]::file-selector-button{border:1.5px solid var(--blush-2);background:#fff;border-radius:var(--radius-md);padding:.6rem 1rem;margin-right:.75rem;font:600 14px var(--font-body);color:var(--plum);cursor:pointer;min-height:44px}
/* Tablets (761-980px): the canvas is full width there, so cap its height to keep the tools in reach,
   and keep the toast above the sticky buy bar. */
@media (max-width:980px){
  .studio .stage{max-height:62svh}
  .studio .stage svg{width:min(100%, calc((62svh - 16px) * 400 / 430));height:auto}
  body:has(.mobile-buy) .toast{bottom:calc(122px + env(safe-area-inset-bottom))}
}
/* Font picker with a live preview of every font */
#pFont{display:none}
.font-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:300px;overflow:auto;padding:2px;margin-top:2px;overscroll-behavior:contain}
.font-grid button{display:grid;gap:2px;text-align:left;padding:.5rem .65rem;border:1.5px solid var(--blush-2);border-radius:var(--radius-md);background:#fff;cursor:pointer;min-height:58px;color:var(--plum);transition:border-color .15s,background .15s}
.font-grid button:hover{border-color:var(--plum-600)}
.font-grid button:focus-visible{outline:2px solid var(--plum-600);outline-offset:2px}
.font-grid button span{font-size:22px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.font-grid button small{font-size:11px;opacity:.7;font-family:var(--font-body)}
.font-grid button[aria-pressed=true]{border-color:var(--plum-600);background:#FBF4F0;box-shadow:0 0 0 2px rgba(122,40,72,.15)}
@media (max-width:980px){.font-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}}
