/* Mobile Widget Panel Responsive Design */

/* Default desktop styles for the widget panel */
.widjet_panel {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9999;
    background: #fff;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    transition: all 0.3s ease;
}

.widjet_panel_item {
    margin-bottom: 10px;
}

.widjet_panel_item:last-child {
    margin-bottom: 0;
}

.widjet_panel_item_button {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    border: 1px solid #e5e7eb;
}

.widjet_panel_item_button:hover {
    background: #f9fafb;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #333;
    text-decoration: none;
}

.widjet_panel_item_button img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    filter: none;
}

.widjet_panel_item_button span {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
    .widjet_panel {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        background: transparent;
        box-shadow: none;
        padding: 0;
        width: auto;
        height: auto;
        z-index: 9999;
    }

    /* Always show the panel items on mobile - pinned to bottom right */
    .widjet_panel .widjet_panel_item {
        display: block;
        position: relative;
        bottom: auto;
        right: auto;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        padding: 8px;
        margin-bottom: 15px;
        opacity: 1;
        transform: none;
        z-index: 10000;
    }

    .widjet_panel .widjet_panel_item:last-child {
        margin-bottom: 0;
    }

    /* Remove all pseudo elements (no floating action button) */
    .widjet_panel::after,
    .widjet_panel::before {
        display: none;
    }

    /* Adjust button styles for mobile popup */
    .widjet_panel_item_button {
        min-width: 160px;
        padding: 14px 16px;
        font-size: 14px;
    }

    .widjet_panel_item_button img {
        width: 18px;
        height: 18px;
        margin-right: 6px;
    }

    .widjet_panel_item_button span {
        font-size: 13px;
    }
}

/* Very small screens (phones in portrait) */
@media screen and (max-width: 480px) {
    .widjet_panel::after {
        width: 48px;
        height: 48px;
        bottom: 15px;
        right: 15px;
        background-size: 24px;
    }

    .widjet_panel .widjet_panel_item {
        bottom: 75px;
        right: 0;
    }

    .widjet_panel .widjet_panel_item:last-child {
        bottom: 130px;
    }

    .widjet_panel_item_button {
        min-width: 120px;
        padding: 8px 10px;
    }

    .widjet_panel_item_button img {
        width: 16px;
        height: 16px;
        margin-right: 5px;
    }

    .widjet_panel_item_button span {
        font-size: 12px;
    }
}

/* Animation delays for staggered appearance */
.widjet_panel.expanded .widjet_panel_item:first-child {
    transition-delay: 0.1s;
}

.widjet_panel.expanded .widjet_panel_item:last-child {
    transition-delay: 0.2s;
}