/**
 * Mobile Fixed Bottom Nav Bar - Public Styles
 *
 * @package Mobile_Fixed_Bottom_Nav_Bar
 * @since   1.0.0
 */

/* Navigation Bar - Hidden by default on larger screens */
.mfbnb-nav-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background-color: #ffffff;
    height: 60px;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* RTL Support */
[dir="rtl"] .mfbnb-nav-bar,
.rtl .mfbnb-nav-bar {
    direction: rtl;
}

/* Navigation Item */
.mfbnb-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 4px;
    text-decoration: none;
    color: inherit;
    outline: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

.mfbnb-nav-item:hover,
.mfbnb-nav-item:focus {
    opacity: 0.7;
    text-decoration: none;
}

.mfbnb-nav-item:focus {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

.mfbnb-nav-item:focus:not(:focus-visible) {
    outline: none;
}

.mfbnb-nav-item:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

/* Navigation Icon */
.mfbnb-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-bottom: 4px;
    color: #333333;
    font-size: 24px;
    width: 24px;
    height: 24px;
    position: relative;
}

.mfbnb-nav-icon .dashicons {
    font-size: inherit;
    width: inherit;
    height: inherit;
    line-height: 1;
}

.mfbnb-nav-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.mfbnb-nav-icon .mfbnb-icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Cart Count Badge */
.mfbnb-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    color: #ffffff;
    background-color: #e74c3c;
    border-radius: 9px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 1;
}

/* RTL Cart Count Badge */
[dir="rtl"] .mfbnb-cart-count,
.rtl .mfbnb-cart-count {
    right: auto;
    left: -10px;
}

/* Navigation Label */
.mfbnb-nav-label {
    display: block;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: #333333;
}

/* Ensure proper stacking context */
.mfbnb-nav-bar * {
    box-sizing: border-box;
}

/* Safe area inset for notched devices (iPhone X, etc.) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mfbnb-nav-bar {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(60px + env(safe-area-inset-bottom));
    }
}

/* Print styles - hide nav bar */
@media print {
    .mfbnb-nav-bar {
        display: none !important;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .mfbnb-nav-item {
        transition: none;
    }
}
