@media (max-width: 768px) {

    /* Keep table normal */
    .table td.text-end {
        white-space: nowrap;
    }

    /* Make the buttons behave nicely */
    .table td.text-end .btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        padding: 6px 10px;
        margin-bottom: 4px;
    }

    /* Stack buttons vertically instead of messy wrapping */
    .table td.text-end {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    /* Make buttons full width */
    .table td.text-end .btn {
        width: 100%;
    }

    /* Hide table headers on mobile */
    .cutqueue_booking_system-stores-table thead {
        display: none !important;
    }

    /* Turn each row into a clean card */
    .cutqueue_booking_system-stores-table tbody tr {
        display: block !important;
        background: #1a1a1a !important;
        /* Softer dark background */
        margin-bottom: 12px !important;
        border-radius: 16px !important;
        padding: 14px !important;
        border: none !important;
        /* Remove ugly border */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        /* Soft shadow */
    }

    /* Make td background match card */
    .cutqueue_booking_system-stores-table tbody td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
        border: none !important;
        background: transparent !important;
        color: #ffffff !important;
        font-size: 14px !important;
    }

    /* Labels before values */
    .cutqueue_booking_system-stores-table tbody td::before {
        content: attr(data-label) !important;
        font-weight: 600 !important;
        color: #bfbfbf !important;
    }

    /* Action buttons */
    .cutqueue_booking_system-stores-table tbody td:last-child {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .cutqueue_booking_system-stores-table .btn {
        width: 100% !important;
        border-radius: 12px !important;
        border: none !important;
    }

    /* Bigger radio buttons */
    .cutqueue_booking_system-stores-table input[type="radio"] {
        transform: scale(0.7);
    }

    .cutqueue_booking_system-store-switcher form {
        justify-content: center !important;
        text-align: center;
    }

    .cutqueue_booking_system-store-switcher label {
        width: 100%;
        text-align: center;
        margin-bottom: 6px;
    }

    .cutqueue_booking_system-store-switcher select {
        width: 100%;
        max-width: none;
    }
}

#cutqueue_booking_system-float-delete {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #dc3545;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    z-index: 9999;
    border: none;
    font-weight: 600;
    display: none;
    transition: all 0.2s ease;
}

#cutqueue_booking_system-float-delete:hover {
    background: #ff4d5a;
    transform: translateY(-2px);
}

.cutqueue_booking_system-store-switcher select {
    min-width: 160px;
}

/* Prevent overriding WP buttons */
.wp-core-ui .button,
.wp-core-ui .button-primary,
.wp-core-ui .button-secondary {
    all: unset;
    display: inline-block;
    padding: 0.5em 1em;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f6f7f7;
    color: #333;
}