/* =====================================================
   Pharma EW v4 — Mobile Bottom Menu
   ===================================================== */
.pew-bm, .pew-bm * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ── Bar ── */
.pew-bm {
    position: fixed !important;
    bottom: 0; left: 0; right: 0;
    z-index: 99980;
    display: flex !important;
    align-items: stretch;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    height: 62px;
    overflow: visible !important;
}

/* Editor: inline display */
.elementor-editor-active .pew-bm,
.elementor-edit-area .pew-bm {
    position: relative !important;
    bottom: auto !important;
    z-index: auto;
    outline: 2px dashed #5b3fc5;
    border-radius: 6px;
    overflow: visible !important;
}

/* Mobile only */
.pew-bm.pew-bm--mobile-only { display: flex; }
@media (min-width: 769px) {
    .pew-bm.pew-bm--mobile-only { display: none !important; }
    body.pew-has-bm { padding-bottom: 0 !important; }
}

/* Body clearance */
body.pew-has-bm { padding-bottom: 70px; }
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body.pew-has-bm.pew-safe { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* Safe area */
.pew-bm.pew-bm--safe {
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: calc(62px + env(safe-area-inset-bottom, 0px));
}

/* ── Item ── */
.pew-bm .pew-bm-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; text-decoration: none !important; color: #888;
    padding: 5px 2px 4px; position: relative;
    transition: color .18s; min-width: 0; cursor: pointer; overflow: visible;
}
.pew-bm .pew-bm-item:hover, .pew-bm .pew-bm-item:focus { outline: none; text-decoration: none; }
.pew-bm .pew-bm-item.is-active:not(.is-center) { color: #0a7c60; }

/* ── Icon wrap ── */
.pew-bm .pew-bm-item:not(.is-center) .pew-bm-icon-wrap {
    position: relative; display: inline-flex;
    align-items: center; justify-content: center;
    width: 32px; height: 32px;
}
.pew-bm .pew-bm-item:not(.is-center) .pew-bm-icon {
    display: inline-flex; align-items: center; justify-content: center; line-height: 1;
    transition: transform .15s;
}
/* Force icon size — covers both <i> and <svg> from Elementor icon picker */
.pew-bm .pew-bm-item:not(.is-center) .pew-bm-icon i   { font-size: 22px !important; color: inherit !important; display: block; line-height: 1; }
.pew-bm .pew-bm-item:not(.is-center) .pew-bm-icon svg { width: 22px !important; height: 22px !important; fill: currentColor; display: block; }
.pew-bm .pew-bm-item.is-active:not(.is-center) .pew-bm-icon { transform: scale(1.08); }

/* ── Label ── */
.pew-bm .pew-bm-label {
    font-size: 9.5px; font-weight: 500; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 100%; color: inherit; line-height: 1.2; display: block;
}
.pew-bm .pew-bm-item.is-active:not(.is-center) .pew-bm-label { font-weight: 700; }

/* ── Active indicators ── */
.pew-bm.pew-bm--ind-dot .pew-bm-item.is-active:not(.is-center)::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; border-radius: 50%; background: var(--pew-ind, #0a7c60);
}
.pew-bm.pew-bm--ind-top_line .pew-bm-item.is-active:not(.is-center)::before {
    content: ''; position: absolute; top: 0; left: 18%; right: 18%;
    height: 2.5px; border-radius: 0 0 4px 4px; background: var(--pew-ind, #0a7c60);
}
.pew-bm.pew-bm--ind-pill .pew-bm-item.is-active:not(.is-center) .pew-bm-icon-wrap {
    background: rgba(10,124,96,.1); border-radius: 14px; width: 46px;
}

/* ── Badge ── */
.pew-bm .pew-bm-badge {
    position: absolute; top: -4px; right: -5px;
    min-width: 17px; height: 17px; background: #e63946; color: #fff;
    font-size: 10px; font-weight: 800; border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px; border: 1.5px solid #fff; line-height: 1;
    pointer-events: none; white-space: nowrap;
}

/* ═══════════════ HERO CENTRE ITEM ═══════════════ */
.pew-bm .pew-bm-item.is-center {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end;
    padding-bottom: 4px; gap: 3px; position: relative;
    margin-top: -14px;  /* default lift, overridden by Elementor slider */
    color: #555; overflow: visible;
}

/* The circle */
.pew-bm .pew-bm-circle {
    display: flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; border-radius: 50%;
    background: #5b3fc5;
    /* ── Border ON by default ── */
    border: 3px solid #ffffff;
    /* ── Shadow OFF by default ── */
    box-shadow: none;
    flex-shrink: 0;
    transition: transform .15s;
}
.pew-bm .pew-bm-item.is-center:hover  .pew-bm-circle,
.pew-bm .pew-bm-item.is-center:active .pew-bm-circle { transform: scale(1.06); }

/* Icon inside circle */
.pew-bm .pew-bm-circle i   { font-size: 24px !important; color: #fff !important; display: block; line-height: 1; }
.pew-bm .pew-bm-circle svg { width: 24px !important; height: 24px !important; fill: #fff !important; display: block; }

/* Centre label */
.pew-bm .pew-bm-item.is-center .pew-bm-label {
    font-size: 9px; font-weight: 600; color: #555;
    text-align: center; line-height: 1.2;
    max-width: 72px; white-space: normal; word-break: break-word;
}

/* ── Ripple ── */
.pew-bm .pew-bm-ripple {
    position: absolute; border-radius: 50%; width: 44px; height: 44px;
    background: rgba(0,0,0,.08); transform: scale(0);
    animation: pew-ripple .45s ease-out forwards; pointer-events: none;
}
@keyframes pew-ripple { to { transform: scale(2.8); opacity: 0; } }
