/* ================================================================
   Mobile Action Bar – frontend.css
   Baseline styles only. Position/colours come from dynamic CSS.
   ================================================================ */

/* ----------------------------------------------------------------
   BAR  –  defaults for full-width mode
   ---------------------------------------------------------------- */
.mab-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: var(--mab-bar-zindex, 9999);
    background: var(--mab-bar-bg, #ffffff);
    box-shadow: var(--mab-bar-shadow, 0 -2px 8px rgba(0,0,0,.12));
    padding-bottom: var(--mab-safe-area, 0px);
    padding-left: 0;
    padding-right: 0;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.mab-btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    background: var(--mab-bg, transparent);
    color: var(--mab-label-color, #333);
    min-height: var(--mab-bar-height, 64px);
    padding: var(--mab-bar-padding, 10px) 6px;
    gap: 4px;
    transition: opacity .14s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    box-sizing: border-box;
    cursor: pointer;
    border: none;
    outline: none;
}
.mab-btn:hover,
.mab-btn:focus  { opacity: .72; text-decoration: none !important; outline: none; }
.mab-btn:active { opacity: .5; }

/* thin divider between buttons */
.mab-btn + .mab-btn::before {
    content: '';
    position: absolute;
    left: 0; top: 18%; height: 64%; width: 1px;
    background: rgba(0,0,0,.1);
    pointer-events: none;
}

/* ----------------------------------------------------------------
   ICONS – dashicons
   ---------------------------------------------------------------- */
.mab-icon.dashicons {
    font-size: 22px !important;
    width: 22px !important;
    height: 22px !important;
    color: var(--mab-icon-color, #333) !important;
    line-height: 1 !important;
    flex-shrink: 0;
    display: block;
}

/* ----------------------------------------------------------------
   ICONS – UIkit / custom SVG wrapper
   ---------------------------------------------------------------- */
.mab-icon--custom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--mab-icon-color, #333);
    flex-shrink: 0;
}
.mab-icon--custom svg {
    width: 22px; height: 22px;
    fill: none;
    stroke: currentColor;
    color: inherit;
}
.mab-icon--custom [uk-icon] svg,
.mab-icon--custom [uk-navbar-toggle-icon] svg {
    width: 22px; height: 22px;
    color: inherit;
}
.mab-icon--custom img {
    width: 100%; height: 100%; object-fit: contain;
}

/* ----------------------------------------------------------------
   LABEL
   ---------------------------------------------------------------- */
.mab-label {
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
    color: var(--mab-label-color, #333) !important;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    letter-spacing: .04em;
}

/* ----------------------------------------------------------------
   DIALOG – bottom sheet
   ---------------------------------------------------------------- */
.mab-dialog .uk-modal-dialog.mab-dialog-inner {
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px 24px 32px;
    box-sizing: border-box;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    margin: 0 !important;
    box-shadow: 0 -4px 32px rgba(0,0,0,.18);
}
.mab-dialog.uk-open { align-items: flex-end; }
.mab-dialog .uk-modal-close-default { top: 14px; right: 14px; }
.mab-dialog-title {
    margin: 0 0 16px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding-right: 32px;
}
.mab-dialog-content { line-height: 1.65; }
.mab-dialog-content h1,
.mab-dialog-content h2,
.mab-dialog-content h3 { margin-top: 0; }
.mab-dialog-content table { width: 100%; border-collapse: collapse; }
.mab-dialog-content td,
.mab-dialog-content th { padding: 6px 8px; border-bottom: 1px solid #eee; text-align: left; }

/* ----------------------------------------------------------------
   YOOtheme Pro – stay behind offcanvas/modal when open
   ---------------------------------------------------------------- */
.uk-modal-page .mab-bar { z-index: 0 !important; }
