:root{
  --db-accent:#800000; --db-bg:#ffffff; --db-border:#e9e9e9; --db-ease:cubic-bezier(.22,.61,.36,1);
  --db-dark-1:#1c1d20; --db-dark-2:#232427; --db-dark-3:#2a2b30; --db-dark-4:#3a3b3f; --db-text:#ffffff;
}
*{ -webkit-tap-highlight-color: rgba(0,0,0,0); }

/* Mobile only for the floating UI */
@media (max-width: 768px){
  .db-header-actions{ position:fixed; right:12px; top:12px; z-index:100002; display:flex; gap:8px; background:rgba(255,255,255,.92); border:1px solid var(--db-border); border-radius:20px; padding:8px; box-shadow:0 6px 20px rgba(0,0,0,.12); backdrop-filter:blur(8px); }
  .db-header-actions .db-btn{ display:flex; align-items:center; gap:8px; padding:12px 16px; border-radius:16px; background:#111; color:#fff; font-size:15px; text-decoration:none; box-shadow:0 4px 12px rgba(0,0,0,.12); transition: transform .18s var(--db-ease); }
  .db-header-actions .db-btn:active{ transform: translateY(1px); }
  .db-header-actions .db-btn.ghost{ background:#fff; color:#111; border:1px solid var(--db-border); }
  .db-header-actions .db-btn.primary{ background:var(--db-accent); }

  #db-footer-cartbar{ position:fixed; left:0; right:0; bottom:0; background:var(--db-bg); border-top:1px solid var(--db-border); z-index:100002; padding:0; box-shadow:0 -6px 18px rgba(0,0,0,.08); display:flex; justify-content:center; }
  #db-footer-cartbar .db-cart-toggle{ flex:1; width:100%; display:flex; align-items:center; justify-content:center; gap:10px; background:var(--db-accent); color:#fff; border:0; padding:16px; font-size:17px; font-weight:800; border-radius:16px 16px 0 0; transition: background .2s var(--db-ease); }
  .db-cart-count{ min-width:20px; height:20px; padding:0 6px; border-radius:9999px; background:#fff; color:var(--db-accent); font-weight:900; font-size:12px; display:none; align-items:center; justify-content:center; }
  body{ padding-bottom:64px; }
}

@media (min-width:769px){
  #db-footer-cartbar, #db-cart-drawer, .db-header-actions{ display:none !important; }
}

/* Drawer */
#db-cart-drawer{ position:fixed; left:0; right:0; bottom:-70vh; height:70vh; background:var(--db-bg); border-top-left-radius:24px; border-top-right-radius:24px; box-shadow:0 -12px 28px rgba(0,0,0,.25); z-index:100002; transition:bottom .25s var(--db-ease); display:flex; flex-direction:column; backdrop-filter:saturate(120%) blur(6px); }
#db-cart-drawer[aria-hidden="false"]{ bottom:64px; }
.db-cart-header{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--db-border); font-weight:700; }
.db-cart-close{ font-size:24px; line-height:1; background:#800000; color:#fff; border:none; cursor:pointer; width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:bold; box-shadow:0 3px 8px rgba(0,0,0,.25); }
.db-cart-body{ padding:14px; overflow:auto; -webkit-overflow-scrolling:touch; }
.db-cart-actions{ margin-top:14px; display:flex; }
.db-checkout{ display:block; width:100%; text-align:center; background:var(--db-accent); color:#fff; padding:14px 20px; border-radius:16px; text-decoration:none; font-weight:800; font-size:16px; }

.db-flyclone{ position:fixed; width:48px; height:48px; border-radius:50%; pointer-events:none; z-index:100003; background:var(--db-accent); box-shadow:0 6px 20px rgba(0,0,0,.25); transform:translate(-50%,-50%) scale(1); transition:transform .6s var(--db-ease), opacity .6s ease; opacity:.95; }

/* '+' FAB */
.wppizza-article-default, .wppizza-article{ position:relative; }
.db-plus{ position:absolute; right:10px; top:10px; width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--db-accent); color:#fff; font-size:22px; line-height:1; box-shadow:0 8px 20px rgba(0,0,0,.22); border:none; z-index:2; }
.db-plus:active{ transform: translateY(1px); }

/* Size sheet (dark) */
.db-size-sheet{ position:fixed; left:0; right:0; bottom:-70vh; background:var(--db-dark-1); color:var(--db-text); border-top-left-radius:20px; border-top-right-radius:20px; box-shadow:0 -12px 28px rgba(0,0,0,.35); z-index:100004; transition:bottom .25s var(--db-ease); padding-bottom: env(safe-area-inset-bottom,16px); }
.db-size-sheet.open{ bottom:0; }
.db-size-head{ padding:18px 20px; display:flex; align-items:center; justify-content:space-between; background:var(--db-dark-2); border-top-left-radius:20px; border-top-right-radius:20px; }
.db-size-title{ font-size:20px; font-weight:900; }
.db-size-sub{ opacity:.8; margin-top:4px; font-size:14px; }
.db-pill{ font-size:12px; padding:4px 8px; background:var(--db-dark-4); border-radius:9999px; margin-left:8px; font-weight:700; }
.db-pill--req { background: rgba(128,0,0,.25); }
.db-pill--opt { background: #3a3b3f; }
.db-size-close{ background:transparent; border:0; color:#fff; font-size:26px; line-height:1; cursor:pointer; }
.db-size-body{ background:var(--db-dark-3); border-top:1px solid rgba(255,255,255,.06); max-height:60vh; overflow:auto; -webkit-overflow-scrolling:touch; }
.db-size-list{ list-style:none; margin:0; padding:0; }
.db-size-row{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 20px; border-bottom:1px solid rgba(255,255,255,.06); transition: background .12s var(--db-ease); }
.db-size-row:hover{ background: rgba(255,255,255,.04); }
.db-size-row[aria-checked="true"]{ background: rgba(128,0,0,.12); }
.db-size-left{ display:flex; align-items:center; gap:12px; }
.db-radio{ width:22px; height:22px; border-radius:50%; border:2px solid #777; position:relative; flex:0 0 22px; transition: border-color .15s; }
.db-radio::after{ content:''; position:absolute; inset:3px; border-radius:50%; background:var(--db-accent); transform:scale(0); transition:transform .15s var(--db-ease); }
.db-size-row[aria-checked="true"] .db-radio{ border-color:var(--db-accent); }
.db-size-row[aria-checked="true"] .db-radio::after{ transform:scale(1); }
.db-size-label{ font-weight:800; } .db-size-price{ font-weight:900; opacity:.95; }

/* Ingredients sheet (dark) */
.db-ing-sheet{ position:fixed; left:0; right:0; bottom:-72vh; background:var(--db-dark-1); color:var(--db-text); border-top-left-radius:20px; border-top-right-radius:20px; box-shadow:0 -12px 28px rgba(0,0,0,.35); z-index:100005; transition:bottom .25s var(--db-ease); padding-bottom:env(safe-area-inset-bottom,16px); }
.db-ing-sheet.open{ bottom:0; }
.db-ing-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:18px 20px; background:var(--db-dark-2); border-top-left-radius:20px; border-top-right-radius:20px; }
.db-ing-title{ font-weight:900; font-size:20px; }
.db-ing-sub{ opacity:.8; font-size:14px; }
.db-ing-close{ background:transparent; color:#fff; border:0; font-size:26px; line-height:1; cursor:pointer; }
.db-ing-body{ background:var(--db-dark-3); border-top:1px solid rgba(255,255,255,.06); max-height:60vh; overflow:auto; -webkit-overflow-scrolling:touch; }
.db-ing-content{ padding:8px 8px 120px; }
.db-ing-cta{ position:sticky; bottom:0; left:0; right:0; display:flex; align-items:center; gap:12px; background:var(--db-dark-2); padding:12px 16px 16px; border-top:1px solid rgba(255,255,255,.06); }
.db-qty{ display:flex; align-items:center; gap:10px; background:var(--db-dark-3); padding:8px 12px; border-radius:9999px; font-weight:900; }
.db-qty button{ width:36px; height:36px; border:none; border-radius:12px; background:var(--db-dark-4); color:#fff; font-size:20px; line-height:36px; }
.db-qty span{ min-width:24px; text-align:center; display:inline-block; }
.db-cta-add{ flex:1; display:flex; align-items:center; justify-content:center; gap:12px; background:var(--db-accent); color:#fff; border:none; font-weight:900; font-size:16px; border-radius:16px; padding:14px; text-align:center; }
.db-cta-price{ font-weight:900; background: rgba(255,255,255,.12); padding:6px 10px; border-radius:9999px; }

/* Groups and items */
.db-group{ background:var(--db-dark-2); border:1px solid rgba(255,255,255,.08); border-radius:16px; padding:12px; margin:12px; }
.db-group-title{ display:flex; align-items:center; justify-content:space-between; font-weight:900; margin-bottom:8px; }
.db-item{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px; border-bottom:1px solid rgba(255,255,255,.06); }
.db-item:last-child{ border-bottom:none; }
.db-item-left{ display:flex; align-items:center; gap:12px; }
.db-check{ width:22px; height:22px; border:2px solid #777; border-radius:6px; position:relative; flex:0 0 22px; }
.db-item[aria-checked="true"] .db-check{ border-color:var(--db-accent); background:var(--db-accent); box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); }
.db-check::after{ content:''; position:absolute; inset:4px; border-radius:3px; background:#fff; transform: scale(0); transition: transform .14s var(--db-ease); }
.db-item[aria-checked="true"] .db-check::after{ transform: scale(1); }
.db-item-label{ font-weight:800; }
.db-item-price{ font-weight:900; opacity:.95; }

/* Hide floating bars when modal open */
html.db-modal-open .db-header-actions,
html.db-modal-open #db-footer-cartbar{ display:none !important; }
html.db-modal-open #db-footer-cartbar{ pointer-events:none !important; }

/* ThickBox drawer look */
#TB_overlay{ background: rgba(0,0,0,.55) !important; }
#TB_window{ position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important; margin: 0 !important; width: 100% !important; height: 70vh !important; max-width: none !important; background: #1c1d20 !important; border-radius: 20px 20px 0 0 !important; box-shadow: 0 -16px 36px rgba(0,0,0,.45) !important; border: none !important; z-index: 999999 !important; overflow: hidden !important; }
#TB_title{ background:#2a2b30 !important; border:none !important; padding:16px 18px !important; position: sticky !important; top:0; z-index:2; border-bottom:1px solid rgba(255,255,255,.06) !important; }
#TB_ajaxWindowTitle{ color:#fff !important; font-weight:900 !important; font-size:18px !important; }
#TB_closeWindowButton{ position:absolute !important; right:12px; top:10px; width:36px; height:36px; background:var(--db-accent) !important; color:#fff !important; border:none !important; border-radius:50% !important; font-size:20px !important; line-height:36px !important; text-align:center !important; box-shadow:0 4px 10px rgba(0,0,0,.25) !important; }
#TB_ajaxContent{ background:#1c1d20 !important; padding:0 !important; height:calc(70vh - 56px) !important; overflow:auto !important; -webkit-overflow-scrolling:touch; color:#fff !important; }

@supports(padding:max(0px)){
 .db-size-sheet.open, .db-ing-sheet.open, #TB_window { padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion:reduce){ *{ transition:none!important; animation:none!important; } }