@import url('https://use.typekit.net/hml4uqn.css');

/* The shared webshop navigation, isolated from the POS card and form styles. */
#posWebshopHeader { position: sticky; top: 0; z-index: 60; background: #45a36b; color: white; font-family: "din-2014", Arial, sans-serif; font-size: 16px; font-weight: 600; font-style: normal; letter-spacing: .3px; line-height: 1.5; }
#posWebshopHeader .webshop__menu__placeholder { display: none; }
#posWebshopHeader .webshop__menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; padding: 0 12px; }
#posWebshopHeader .webshop__menu__link { display: flex; align-items: center; justify-content: center; position: relative; gap: 7px; min-height: 51px; padding: 15px 14px; color: white; font-family: inherit; font-weight: 600; font-style: normal; letter-spacing: .3px; font-size: 13.6px; line-height: 21px; text-decoration: none; }
#posWebshopHeader .webshop__menu__link:not(:first-child) { border-left: 1px solid rgb(0 0 0 / 10%); }
#posWebshopHeader .webshop__menu__link:hover { background: rgb(0 0 0 / 8%); }
#posWebshopHeader a:focus-visible { outline: 2px solid white; outline-offset: -3px; }
#posWebshopHeader .webshop__menu__link i { margin: 0; flex-shrink: 0; font-size: .83em; }
#posWebshopHeader .webshop__menu__link--start { background: #234934; }
#posWebshopHeader .menu__products-in-cart { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; flex-shrink: 0; width: auto; min-width: 21px; height: 21px; margin: 0; padding: 0 4px; border-radius: 999px; line-height: 1; background: #234934; color: white; font-size: 11.5px; }
#posWebshopHeader .webshop__menu__popup__link { position: relative; }
#posWebshopHeader .change-delivery-time-popup { display: none; position: absolute; right: 0; top: 100%; width: min(380px, calc(100vw - 16px)); padding-top: 8px; color: #1e293b; }
#posWebshopHeader .webshop__menu__popup__link:hover .change-delivery-time-popup,
#posWebshopHeader .webshop__menu__popup__link:focus-within .change-delivery-time-popup { display: block; }
#posWebshopHeader .delivery-popup-card { background: white; padding: 18px; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 8px 24px rgb(2 6 23 / 12%); max-height: 65dvh; overflow-y: auto; font-size: 13px; }
#posWebshopHeader .delivery-popup-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
#posWebshopHeader .delivery-popup-header img { width: 40px; height: 40px; }
#posWebshopHeader .delivery-popup-label, #posWebshopHeader .deadline-subline { color: #64748b; font-size: 12px; }
#posWebshopHeader .deadline-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
#posWebshopHeader .deadline-icon { color: #45a36b; }
#posWebshopHeader .deadline-topline { display: flex; flex-wrap: wrap; gap: 6px; }
#posWebshopHeader .deadline-label { font-weight: 700; }
#posWebshopHeader .delivery-popup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
#posWebshopHeader .button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 6px; background: #234934; color: white; text-decoration: none; }
@media (max-width: 767px) {
    #posWebshopHeader .webshop__menu { padding: 0; }
    #posWebshopHeader .webshop__menu__link { flex: 1 1 auto; flex-direction: column; gap: 3px; padding: 9px 7px; font-size: 10px; line-height: 14px; }
    #posWebshopHeader .webshop__menu__link i { font-size: 18px; }
    #posWebshopHeader .webshop__menu__link--notsmall { display: none; }
    #posWebshopHeader .menu__products-in-cart { position: absolute; top: 2px; left: 52%; }
    #posWebshopHeader .webshop__menu__popup__link { position: static; flex: 1 1 auto; }
    #posWebshopHeader .change-delivery-time-popup { right: 8px; }
}

/* The regular webshop keeps space for its fixed navigation above the main header. */
#posWebshopHeader.webshop-navigation-standard { position: relative; }
#posWebshopHeader.webshop-navigation-standard .webshop__menu { position: fixed; top: 0; right: 0; left: 0; background: #45a36b; }
#posWebshopHeader.webshop-navigation-standard .webshop__menu__placeholder { display: block; height: var(--webshop-navigation-height, 62px); }
@media (prefers-reduced-motion: no-preference) {
    #posWebshopHeader .menu__products-in-cart.cart-count-updated { animation: webshop-count-confirm .45s ease-out; }
    @keyframes webshop-count-confirm { 0%, 100% { opacity: 1; } 35% { opacity: .55; } }
}

#posWebshopHeader .cart-summary { position: relative; align-self: stretch; display: flex; }
#posWebshopHeader .cart-summary summary { display: flex; align-items: center; justify-content: center; height: 100%; min-width: 32px; cursor: pointer; list-style: none; }
#posWebshopHeader .cart-summary summary::-webkit-details-marker { display: none; }
#posWebshopHeader .cart-summary summary:focus-visible { outline: 2px solid white; outline-offset: -3px; }
#posWebshopHeader .cart-summary[open] summary { background: #357e53; }
#posWebshopHeader .cart-summary-panel { box-sizing: border-box; position: absolute; z-index: 100; top: calc(100% + 8px); right: 0; width: min(380px, calc(100vw - 16px)); max-height: 70vh; overflow-y: auto; letter-spacing: normal; font-weight: 400; line-height: 1.5; }
#posWebshopHeader .cart-summary .delivery-popup-card {
  --bg: #ffffff;
  --text: #1e293b;      
  --muted: #64748b;     
  --border: #e2e8f0;    
  --accent: #22c55e;    
  --accent-weak: #dcfce7; 
  --warning: #b45309;   
  --warning-bg: #fef3c7;
  --blue: #2563eb;      
  --blue-weak:#dbeafe;
  --green:#16a34a;      
  --green-weak:#dcfce7;
  --amber:#f59e0b;      
  --amber-weak:#fef3c7;

  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
  padding: 18px 18px 16px;
  max-width: 560px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
  font-size: 14px;
}


#posWebshopHeader .cart-summary .delivery-popup-header {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom:16px;
}

#posWebshopHeader .cart-summary .delivery-popup-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .02em;
  text-transform: uppercase;
}
#posWebshopHeader .cart-summary .delivery-popup-date strong { font-size: 18px; line-height: 1.2; }

#posWebshopHeader .cart-summary .delivery-popup-divider {
  height: 1px; background: var(--border); margin: 14px 0;
}


#posWebshopHeader .cart-summary .delivery-popup-info {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
}
#posWebshopHeader .cart-summary .info-row {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--text);
}
#posWebshopHeader .cart-summary .info-row i { color: var(--muted); line-height: 1.2; margin-top: 2px; }
#posWebshopHeader .cart-summary .total-row .money { font-weight: 700; }
#posWebshopHeader .cart-summary .tip-muted { color: var(--muted); margin-left: 6px; }
#posWebshopHeader .cart-summary .tip-good { color: var(--green); margin-left: 6px; }


#posWebshopHeader .cart-summary .holiday-warning {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  background: var(--warning-bg); border: 1px solid var(--amber);
  color: var(--warning); padding: 10px 12px; border-radius: 10px;
}


#posWebshopHeader .cart-summary .franco-viz { display:grid; gap:10px; margin-top:4px; }
#posWebshopHeader .cart-summary .franco-viz__top{ display:flex; justify-content:space-between; align-items:center; }
#posWebshopHeader .cart-summary .franco-viz__title{ display:flex; align-items:center; gap:8px; font-weight:600; color:#1e293b; }
#posWebshopHeader .cart-summary .franco-viz__title i{ color:#16a34a; }
#posWebshopHeader .cart-summary .franco-viz__status{ font-size:14px; color:#475569; }
#posWebshopHeader .cart-summary .franco-viz__badge{ display:inline-flex; align-items:center; gap:6px; background:#dcfce7; color:#065f46; padding:4px 8px; border-radius:999px; font-weight:700; font-size:13px; }
#posWebshopHeader .cart-summary .franco-viz__barwrap{ display:grid; gap:6px; }
#posWebshopHeader .cart-summary .franco-viz__bar{ position:relative; height:12px; border-radius:999px; background:#eef2f7; border:1px solid #e2e8f0; overflow:hidden; }
#posWebshopHeader .cart-summary .franco-viz__fill{ position:absolute; inset:0 auto 0 0; width:0; height:100%; background: linear-gradient(90deg,#22c55e,#16a34a); transition: width .35s ease; }
#posWebshopHeader .cart-summary .franco-viz__marker{ position:absolute; top:-4px; right:0; width:2px; height:20px; background:#1e293b22; }
#posWebshopHeader .cart-summary .franco-viz__bubble{ position:absolute; top:-34px; transform:translateX(-50%); background:#0f172a; color:#fff; font-size:12px; line-height:1; padding:6px 8px; border-radius:6px; white-space:nowrap; box-shadow:0 6px 16px rgba(2,6,23,.2); }
#posWebshopHeader .cart-summary .franco-viz__bubble i{ position:absolute; bottom:-6px; left:50%; transform:translateX(-50%); width:0; height:0; border-left:6px solid transparent; border-right:6px solid transparent; border-top:6px solid #0f172a; }
#posWebshopHeader .cart-summary .franco-viz__scale{ display:flex; justify-content:space-between; font-size:12px; color:#64748b; }


#posWebshopHeader .cart-summary .deadline-list { list-style: none; margin: 0 0 6px 0; padding: 0; display: grid; gap: 8px; }
#posWebshopHeader .cart-summary .deadline-item {
  display: grid;
  gap: 10px;
  align-items: center;
  grid-template-columns: 36px 1fr;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  background: #fff;
}


#posWebshopHeader .cart-summary .deadline-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px; border-radius: 12px 0 0 12px;
  background: var(--border);
}
#posWebshopHeader .cart-summary .deadline-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;       
  line-height: 1;        
}
#posWebshopHeader .cart-summary .deadline-icon i {
  display: block;        
}

#posWebshopHeader .cart-summary .deadline-content { display: grid; gap: 4px; }
#posWebshopHeader .cart-summary .deadline-topline { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; justify-content: space-between; }
#posWebshopHeader .cart-summary .deadline-label { font-weight: 600; color: var(--text); }
#posWebshopHeader .cart-summary .deadline-badge {
  display: inline-flex; align-items:center; gap: 6px;
  padding: 4px 8px; border-radius: 999px; font-weight: 600; font-size: 12px;
  border: 1px solid var(--border);
}
#posWebshopHeader .cart-summary .badge--blue   { background: var(--blue-weak);  color: var(--blue);   border-color: color-mix(in oklab, var(--blue) 25%, white); }
#posWebshopHeader .cart-summary .badge--green  { background: var(--green-weak); color: var(--green);  border-color: color-mix(in oklab, var(--green) 25%, white); }
#posWebshopHeader .cart-summary .badge--amber  { background: var(--amber-weak); color: var(--amber);  border-color: color-mix(in oklab, var(--amber) 25%, white); }
#posWebshopHeader .cart-summary .badge--lightblue  { background: var(--blue-weak); color: var(--blue);border-color: color-mix(in oklab, var(--blue) 25%, white); }
#posWebshopHeader .cart-summary .deadline-subline { font-size: 12px; color: var(--muted); }
#posWebshopHeader .cart-summary .deadline-status.is-past { color: #b91c1c; font-weight: 600; }


#posWebshopHeader .cart-summary .deadline--normal::before { background: var(--blue); }
#posWebshopHeader .cart-summary .deadline--ultra::before  { background: var(--green); }
#posWebshopHeader .cart-summary .deadline--chicken::before{ background: var(--amber); }
#posWebshopHeader .cart-summary .deadline--fish::before{ background: var(--blue); }

#posWebshopHeader .cart-summary .deadline--normal .deadline-icon { background: var(--blue-weak); color: var(--blue); }
#posWebshopHeader .cart-summary .deadline--ultra  .deadline-icon { background: var(--green-weak); color: var(--green); }
#posWebshopHeader .cart-summary .deadline--chicken .deadline-icon{ background: var(--amber-weak); color: var(--amber); }


#posWebshopHeader .cart-summary .delivery-popup-actions { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px; margin-top: 14px; }
#posWebshopHeader .cart-summary .delivery-popup-actions .button { flex: 1 1 auto; min-width: 0; justify-content: center; text-align: center; white-space: nowrap; border-radius: 0; padding: 10px 14px; font-family: "din-2014", Arial, sans-serif; font-size: 17px; line-height: 23px; font-weight: 600; }
#posWebshopHeader .cart-summary .button--orange { background: #ff9c00; }
#posWebshopHeader .cart-summary .cart-summary-status { display: block; font-size: 12px; color: #64748b; }
#posWebshopHeader .cart-summary .franco-viz__barwrap { padding-top: 0; }
#posWebshopHeader .cart-summary .franco-viz__bar { overflow: hidden; }
#posWebshopHeader .cart-summary .franco-viz__fill { border-radius: 999px; }
@media (max-width: 767px) {
    #posWebshopHeader .cart-summary { position: static; }
    #posWebshopHeader .cart-summary-panel { right: 8px; }
}
@media (max-width: 480px) {
    #posWebshopHeader .cart-summary .delivery-popup-card { padding: 16px; border-radius: 14px; }
    #posWebshopHeader .cart-summary .delivery-popup-date strong { font-size: 16px; }
}

/* The cart label is the desktop trigger; mobile keeps its direct cart link. */
#posWebshopHeader .cart-summary { flex: 0 0 0; width: 0; min-width: 0; }
#posWebshopHeader .cart-summary summary { display: none; }
@media (max-width: 767px), (hover: none), (pointer: coarse) {
    #posWebshopHeader .cart-summary { display: none; }
}

#posWebshopHeader .cart-summary .cart-summary-status:empty { display: none; }
