/**
 * MLabs Photo Upload - Styles
 * 
 * Styles for drag-and-drop photo uploads, preview grid, 
 * progress bars, cart display, and edit modal.
 */

/* ==========================================================================
   Hide Standard Quantity Field for Photo Upload Products
   ========================================================================== */

/* Hide the quantity input when photo upload wrapper is present */
.mlabs-photo-upload-wrapper ~ .quantity,
.mlabs-photo-upload-wrapper + .quantity,
body.has-mlabs-photo-upload .quantity {
    display: none !important;
}

/* Also hide quantity in the cart/variations form when photo upload is active */
form.cart:has(.mlabs-photo-upload-wrapper) .quantity {
    display: none !important;
}

/* ==========================================================================
   Product Page Upload Form
   ========================================================================== */

.mlabs-photo-upload-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.mlabs-photo-upload-title {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.mlabs-photo-upload-info {
    margin-bottom: 15px;
}

.mlabs-photo-upload-info p {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    color: #666;
}

.mlabs-photo-upload-specs {
    font-size: 0.85em !important;
    color: #888 !important;
}

/* ==========================================================================
   Dropzone
   ========================================================================== */

.mlabs-photo-dropzone {
    position: relative;
    padding: 40px 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mlabs-photo-dropzone:hover {
    border-color: #999;
    background: #fafafa;
}

.mlabs-photo-dropzone.mlabs-dropzone-active {
    border-color: #2271b1;
    background: #f0f7fc;
}

.mlabs-dropzone-content {
    pointer-events: none;
}

.mlabs-dropzone-icon {
    display: block;
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.mlabs-dropzone-text {
    margin: 0 0 5px 0;
    font-size: 1em;
    color: #555;
}

.mlabs-dropzone-or {
    margin: 10px 0;
    font-size: 0.9em;
    color: #888;
}

/* Browse button - needs explicit pointer-events since parent has none */
.mlabs-browse-button,
.mlabs-dropzone-content .mlabs-browse-button {
    pointer-events: auto !important;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   Photo Counter
   ========================================================================== */

.mlabs-photo-counter {
    margin: 15px 0;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.95em;
    color: #555;
}

.mlabs-photo-counter.mlabs-counter-full {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.mlabs-counter-current {
    font-weight: 700;
    color: #2271b1;
}

.mlabs-counter-full .mlabs-counter-current {
    color: #856404;
}

/* ==========================================================================
   Photo Preview Grid
   ========================================================================== */

#mlabs-photo-preview-grid,
.mlabs-modal-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.mlabs-photo-item {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.mlabs-photo-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mlabs-photo-item.mlabs-uploading {
    opacity: 0.7;
}

.mlabs-photo-item.mlabs-removing {
    opacity: 0.5;
    pointer-events: none;
}

.mlabs-photo-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
}

.mlabs-photo-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mlabs-photo-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.mlabs-photo-item:hover .mlabs-photo-remove {
    opacity: 1;
}

.mlabs-photo-remove:hover {
    background: #dc3545;
}

.mlabs-photo-info {
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    padding: 8px;
}

.mlabs-photo-name {
    display: block;
    font-size: 0.75em;
    color: #666;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.mlabs-photo-qty-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mlabs-photo-qty-wrap label {
    font-size: 0.75em;
    color: #666;
    margin: 0;
}

.mlabs-photo-qty {
    width: 50px;
    padding: 4px 6px;
    font-size: 0.85em;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mlabs-photo-qty:focus {
    outline: none;
    border-color: #2271b1;
}

/* ==========================================================================
   Upload Progress
   ========================================================================== */

.mlabs-upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
}

.mlabs-progress-bar {
    height: 100%;
    background: #2271b1;
    transition: width 0.3s ease;
    width: 0%;
}

/* ==========================================================================
   Quantity Hint
   ========================================================================== */

.mlabs-qty-hint {
    margin: 15px 0 0;
    padding: 10px 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    font-size: 0.9em;
    color: #155724;
}

/* ==========================================================================
   Cart Page - Photo Display
   ========================================================================== */

.mlabs-cart-photos {
    margin-top: 10px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.mlabs-cart-photos-label {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    font-weight: 600;
    color: #555;
}

.mlabs-cart-photos-grid {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.mlabs-cart-photo-thumb {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.mlabs-cart-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mlabs-cart-photo-qty {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 3px;
    line-height: 1;
}

.mlabs-cart-photo-more {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.mlabs-edit-photos-btn {
    font-size: 0.85em !important;
    padding: 5px 12px !important;
}

/* Read-only quantity display for photo upload items */
.mlabs-photo-quantity {
    display: inline-block;
    padding: 8px 12px;
    background: #f0f7fc;
    border: 1px solid #c3ddf1;
    border-radius: 4px;
    font-weight: 600;
    color: #2271b1;
    text-align: center;
    line-height: 1.3;
}

.mlabs-photo-quantity small {
    display: block;
    font-weight: 400;
    font-size: 0.85em;
    color: #666;
}

/* Hide quantity input for photo upload items in cart */
.woocommerce-cart-form .mlabs-cart-photos ~ .quantity,
.woocommerce-cart-form tr:has(.mlabs-cart-photos) .quantity input {
    display: none !important;
}

/* ==========================================================================
   Edit Modal
   ========================================================================== */

.mlabs-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
}

.mlabs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.mlabs-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mlabs-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.mlabs-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.mlabs-modal-title {
    margin: 0;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
}

.mlabs-modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.mlabs-modal-dropzone {
    padding: 30px 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #fafafa;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mlabs-modal-dropzone:hover,
.mlabs-modal-dropzone.mlabs-dropzone-active {
    border-color: #2271b1;
    background: #f0f7fc;
}

.mlabs-modal-counter {
    margin: 15px 0;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 4px;
    text-align: center;
    font-size: 0.95em;
}

.mlabs-modal-counter.mlabs-counter-full {
    background: #fff3cd;
    color: #856404;
}

.mlabs-modal-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.mlabs-modal-loading .mlabs-modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.mlabs-modal-loading .mlabs-modal-body::after {
    content: "Loading...";
    color: #666;
}

.mlabs-modal-loading .mlabs-modal-dropzone,
.mlabs-modal-loading .mlabs-modal-counter,
.mlabs-modal-loading .mlabs-modal-preview-grid {
    display: none;
}

body.mlabs-modal-open {
    overflow: hidden;
}

/* ==========================================================================
   Notice Messages
   ========================================================================== */

.mlabs-notice {
    position: relative;
    max-width: 100%;
    padding: 12px 40px 12px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    animation: mlabs-fade-in 0.3s ease;
}

/* When notice is appended to body (fallback), use fixed positioning */
body > .mlabs-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999999;
    animation: mlabs-slide-in 0.3s ease;
}

@keyframes mlabs-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mlabs-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mlabs-notice-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.mlabs-notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mlabs-notice-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.mlabs-notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mlabs-notice-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    padding: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    font-size: 18px;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
}

.mlabs-notice-close:hover {
    opacity: 1;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    .mlabs-photo-upload-wrapper {
        padding: 15px;
    }

    .mlabs-photo-dropzone {
        padding: 30px 15px;
    }

    .mlabs-dropzone-icon {
        font-size: 36px;
    }

    #mlabs-photo-preview-grid,
    .mlabs-modal-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 10px;
    }

    .mlabs-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .mlabs-modal-body {
        padding: 15px;
    }

    .mlabs-notice {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    #mlabs-photo-preview-grid,
    .mlabs-modal-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mlabs-cart-photo-thumb,
    .mlabs-cart-photo-more {
        width: 40px;
        height: 40px;
    }

    .mlabs-modal-footer {
        flex-direction: column;
    }

    .mlabs-modal-footer button {
        width: 100%;
    }
}

/* ==========================================================================
   Admin Styles (Order Page)
   ========================================================================== */

.mlabs-customer-photos-gallery {
    margin-top: 10px;
}

.mlabs-customer-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.mlabs-admin-photo-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.mlabs-admin-photo-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.mlabs-admin-photo-item a {
    display: block;
    text-decoration: none;
}

.mlabs-admin-photo-item:hover {
    border-color: #2271b1;
}

.mlabs-admin-photo-name {
    display: block;
    padding: 5px;
    font-size: 10px;
    color: #666;
    background: #f9f9f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mlabs-download-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mlabs-download-all-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.mlabs-photo-count-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #2271b1;
    color: #fff;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 5px;
}

/* Order item meta photos display */
.wc-order-item-meta .mlabs-line-item-photos {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.mlabs-line-item-photos-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 12px;
}

.mlabs-line-item-photos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mlabs-line-item-photo {
    width: 60px;
    height: 60px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.mlabs-line-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Previously Uploaded Photos Section
   ========================================================================== */

.mlabs-previous-uploads {
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.mlabs-previous-uploads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    padding: 2px 0;
    user-select: none;
}

.mlabs-previous-uploads-header:hover {
    opacity: 0.8;
}

.mlabs-previous-uploads-header:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    border-radius: 3px;
}

.mlabs-previous-uploads-header .mlabs-toggle-icon {
    font-size: 0.8em;
    color: #666;
    transition: transform 0.2s ease;
}

.mlabs-previous-uploads-title {
    margin: 0;
    font-size: 0.95em;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mlabs-previous-icon {
    font-size: 1.1em;
}

.mlabs-previous-uploads-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mlabs-delete-all-uploads {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #d63638;
    border-radius: 4px;
    font-size: 0.8em;
    color: #d63638;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mlabs-delete-all-uploads:hover {
    background: #d63638;
    color: #fff;
}

.mlabs-delete-all-icon {
    font-size: 0.9em;
}

.mlabs-delete-all-text {
    font-weight: 500;
}

.mlabs-previous-uploads-content {
    margin-top: 15px;
}

.mlabs-previous-uploads-info {
    margin: 0;
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}

.mlabs-previous-uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}

.mlabs-previous-uploads-grid.mlabs-deleting {
    opacity: 0.5;
    pointer-events: none;
}

.mlabs-previous-photo-item {
    position: relative;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.mlabs-previous-photo-item:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.15);
    transform: translateY(-2px);
}

.mlabs-previous-photo-item.mlabs-in-order {
    background: #f0f7fc;
    border-color: #2271b1;
    cursor: default;
}

.mlabs-previous-photo-item.mlabs-in-order:hover {
    transform: none;
    box-shadow: none;
}

.mlabs-previous-photo-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.mlabs-previous-photo-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mlabs-add-badge,
.mlabs-in-order-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px;
    font-size: 0.75em;
    font-weight: 600;
    text-align: center;
    background: rgba(34, 113, 177, 0.9);
    color: #fff;
}

.mlabs-in-order-badge {
    background: rgba(40, 167, 69, 0.9);
}

.mlabs-previous-photo-name {
    display: block;
    font-size: 0.75em;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Delete button for previous uploads */
.mlabs-previous-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    font-size: 14px;
    line-height: 18px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 10;
}

.mlabs-previous-photo-item:hover .mlabs-previous-delete {
    opacity: 1;
}

.mlabs-previous-delete:hover {
    background: rgba(200, 35, 51, 1);
}

.mlabs-previous-photo-item {
    position: relative;
}

/* ==========================================================================
   Batch Upload Progress
   ========================================================================== */

.mlabs-batch-progress {
    margin: 15px 0;
    padding: 15px;
    background: #e8f4fd;
    border: 1px solid #b8daff;
    border-radius: 8px;
}

.mlabs-batch-progress-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mlabs-batch-progress-icon {
    font-size: 18px;
}

.mlabs-batch-progress-title {
    font-weight: 600;
    color: #004085;
    font-size: 14px;
}

.mlabs-batch-progress-track {
    width: 100%;
    height: 8px;
    background: #cce5ff;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.mlabs-batch-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.mlabs-batch-progress-text {
    font-size: 12px;
    color: #004085;
    text-align: center;
}

/* Batch complete state */
.mlabs-batch-progress .mlabs-batch-progress-bar {
    background: linear-gradient(90deg, #28a745, #1e7e34);
}

.mlabs-batch-has-errors {
    background: #fff3cd;
    border-color: #ffc107;
}

.mlabs-batch-has-errors .mlabs-batch-progress-title,
.mlabs-batch-has-errors .mlabs-batch-progress-text {
    color: #856404;
}

.mlabs-batch-has-errors .mlabs-batch-progress-track {
    background: #ffe69c;
}

.mlabs-batch-has-errors .mlabs-batch-progress-bar {
    background: linear-gradient(90deg, #ffc107, #d39e00);
}

/* ==========================================================================
   Confirmation Modal
   ========================================================================== */

body.mlabs-modal-open {
    overflow: hidden;
}

.mlabs-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mlabs-confirm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.mlabs-confirm-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: mlabs-modal-appear 0.2s ease-out;
}

@keyframes mlabs-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.mlabs-confirm-modal-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.mlabs-confirm-modal-title {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
}

.mlabs-confirm-modal-message {
    margin: 0 0 25px 0;
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
}

.mlabs-confirm-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.mlabs-confirm-modal-cancel,
.mlabs-confirm-modal-confirm {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.mlabs-confirm-modal-cancel {
    background: #f0f0f0;
    color: #333;
}

.mlabs-confirm-modal-cancel:hover {
    background: #e0e0e0;
}

.mlabs-confirm-modal-confirm {
    background: #d63638;
    color: #fff;
}

.mlabs-confirm-modal-confirm:hover {
    background: #b32d2e;
}

.mlabs-confirm-modal-cancel:focus,
.mlabs-confirm-modal-confirm:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}
