/* Cravella bottom bar: deep blue glass (TEST).
   Colours only: no sizes, no layout, no scripts, no new blur (the bar keeps the blur the site
   already gave it). Covers: Menu, My orders, Cart, Chat, Call and the cart count badge.
   To turn it off, remove the one <link href="glass-nav.css"> line from the page. */

/* ---- The bar: deep blue glass with a light top edge ---- */
.bn,
body.fest .bn{
  background:linear-gradient(180deg,rgba(30,58,138,.94),rgba(12,26,78,.97)) !important;
  border-top:1px solid rgba(150,185,255,.55) !important;
  box-shadow:0 -8px 24px rgba(10,20,70,.38),inset 0 1px 0 rgba(255,255,255,.35) !important;
}

/* ---- Labels and icons: bright on blue ---- */
.bn>*,
body.fest .bn>*{
  color:#eef3ff !important;
}
.bn i{
  /* soft light halo so the emoji stand out on the blue (used only where white icons can't be drawn) */
  text-shadow:0 0 7px rgba(255,255,255,.60),0 1px 2px rgba(0,0,0,.30);
}

/* ---- White icons: the emoji are swapped for white outline icons drawn in CSS ----
   Same 23px icon box as before, so the bar height and button sizes do not change.
   Browsers that can't draw these keep the emoji (with the halo above). */
@supports ((-webkit-mask-image:url("x")) or (mask-image:url("x"))){
  .bn i{
    display:block;
    width:23px;
    height:23px;
    font-size:0 !important;
    line-height:0 !important;
    color:transparent;
    text-shadow:none;
  }
  .bn i::before{
    content:"";
    display:block;
    width:23px;
    height:23px;
    background:#ffffff;
    -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
    -webkit-mask-position:center;mask-position:center;
    -webkit-mask-size:23px 23px;mask-size:23px 23px;
  }
  /* Menu: house */
  .bn [data-n="home"] i::before{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h5v-6h4v6h5V10'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h5v-6h4v6h5V10'/%3E%3C/svg%3E");
  }
  /* My orders: clipboard */
  .bn [data-n="orders"] i::before{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 2.5h6v3H9z'/%3E%3Cpath d='M9 11h6M9 15h6'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 2.5h6v3H9z'/%3E%3Cpath d='M9 11h6M9 15h6'/%3E%3C/svg%3E");
  }
  /* Cart */
  .bn [data-n="cart"] i::before{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 3.5h2.6l2.1 11.2a1.6 1.6 0 0 0 1.6 1.3h8.1a1.6 1.6 0 0 0 1.6-1.2l1.5-6.6H6'/%3E%3Ccircle cx='9.5' cy='20' r='1.4'/%3E%3Ccircle cx='17' cy='20' r='1.4'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 3.5h2.6l2.1 11.2a1.6 1.6 0 0 0 1.6 1.3h8.1a1.6 1.6 0 0 0 1.6-1.2l1.5-6.6H6'/%3E%3Ccircle cx='9.5' cy='20' r='1.4'/%3E%3Ccircle cx='17' cy='20' r='1.4'/%3E%3C/svg%3E");
  }
  /* Chat: speech bubble with dots */
  .bn a[href^="https://wa.me"] i::before{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.5 8.5 0 0 1-12.4 7.5L3 20.5l1.6-4.9A8.5 8.5 0 1 1 21 11.5z'/%3E%3Cpath d='M8.5 11.5h.01M12 11.5h.01M15.5 11.5h.01' stroke-width='2.6'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.5 8.5 0 0 1-12.4 7.5L3 20.5l1.6-4.9A8.5 8.5 0 1 1 21 11.5z'/%3E%3Cpath d='M8.5 11.5h.01M12 11.5h.01M15.5 11.5h.01' stroke-width='2.6'/%3E%3C/svg%3E");
  }
  /* Call: phone handset */
  .bn a[href^="tel:"] i::before{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  }
}

/* ---- The selected tab: lit-up glass chip ---- */
.bn .on,
body.fest .bn .on{
  background:rgba(255,255,255,.20) !important;
  color:#ffffff !important;
  box-shadow:inset 0 0 0 1px rgba(170,200,255,.65),inset 0 1px 0 rgba(255,255,255,.35) !important;
}

/* ---- Cart count badge: amber so it stands out on blue ---- */
.bn .n,
body.fest .bn .n{
  background:#ffd366 !important;
  color:#10204a !important;
}

@media (prefers-reduced-transparency:reduce){
  .bn,body.fest .bn{background:#10204a !important}
}
