/**
 * Doko Bundle Builder Responsive Styles
 *
 * @package doko
 * @since 1.0.0
 */

/* Responsive Bottom Bar */
.doko-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 10px 20px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.doko-bottom-bar .doko-bundle-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    flex-grow: 1;
}

.doko-bottom-bar .doko-bundle-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.doko-bottom-bar .doko-bundle-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.doko-bottom-bar .doko-bundle-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Style 2: Centered Navigation */
.doko-nav-centered .hs-dk-menu-box {
    justify-content: center;
}

.doko-nav-centered .hs-dk-menu-box-img-fix {
    justify-content: center;
    flex-grow: 0;
}

.doko-nav-centered .hs-dk-menu-btn-content-fix {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

/* Style 3: Buttons on Left */
.doko-nav-buttons-left .hs-dk-menu-box {
    flex-direction: row-reverse;
    justify-content: space-between;
}

/* Style 4: Modern Navigation */
.doko-nav-modern .hs-dk-menu-box {
    border-radius: 15px 15px 0 0;
    padding: 5px 20px;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.doko-nav-modern .hs-dk-menu-box-img-fix {
    display: flex;
    align-items: center;
    gap: 10px;
}

.doko-nav-modern .doko-toggle-arrow {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background-color: #fff;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-bottom: none;
}

.doko-nav-modern .doko-toggle-arrow i {
    transition: transform 0.3s;
}

.doko-nav-modern.collapsed .hs-dk-menu-box-img-fix,
.doko-nav-modern.collapsed .hs-dk-menu-btn-content-fix {
    display: none !important;
}

.doko-nav-modern.collapsed .doko-toggle-arrow i {
    transform: rotate(180deg);
}

/* Mobile: compact buttons, Back+Next on same row, Total above */
@media only screen and (max-width: 767px) {
    .doko-btn-navigation {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin: 6px !important;
        padding: 0 !important;
        width: 100% !important;
    }

    /* Total button: full width on top row */
    .doko-btn-navigation li.doko-button-rb {
        order: 1 !important;
        width: 100% !important;
        display: block !important;
    }

    /* Back button: left half of second row */
    .doko-btn-navigation li:nth-child(2) {
        order: 2 !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    /* Next button: right half of second row */
    .doko-btn-navigation li:nth-child(3) {
        order: 3 !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    /* Complete Box button: full width below */
    .doko-btn-navigation li:nth-child(4) {
        order: 4 !important;
        width: 100% !important;
    }

    /* Smaller buttons on mobile */
    .doko-btn-navigation li button.doko-page-btn {
        font-size: 13px !important;
        padding: 8px 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hs-dk-menu-box {
        flex-direction: column !important;
        gap: 6px !important;
        padding: 6px 8px !important;
    }

    .hs-dk-menu-btn-content-fix {
        width: 100% !important;
    }
}
}
