/**
 * Lebasino Size Guides - Frontend Styles
 * Final Version: 4.0.0
 */

/* --- Standard Button Style --- */
.lebasino-sg-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 18px;
    margin: 15px 0;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.2;
    width:fit-content;
}
.lebasino-sg-open-btn:hover {
    background-color: #e9e9e9;
    border-color: #ccc;
}

/* --- Floating Button Styles --- */

/* **CRUCIAL**: Make the product image gallery a positioning context */
.woocommerce-product-gallery {
    position: relative;
}

.lebasino-sg-floating-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    margin: 0; 
   background-color: var(--lebasino-sg-floating-btn-bg, #2d3748); 
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 8px 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    font-size: 14px;
        transition: filter 0.2s ease, transform 0.2s ease; /* Change transition property */

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.lebasino-sg-floating-btn:hover {
       background-color: var(--lebasino-sg-floating-btn-bg, #2d3748); 
           color: #fff;
    filter: brightness(90%); 
}

.lebasino-sg-floating-btn:focus{
        color: #fff;
}
/* --- Modal & Tab Styles --- */
/* The rest of the CSS code you provided is correct. Paste it here without changes. */
/* (بقیه کدهای CSS که ارسال کردید صحیح هستند و بدون تغییر در اینجا قرار می‌گیرند) */

/* --- Modal Overlay --- */
.lebasino-sg-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65); display: flex; justify-content: center;
    align-items: center; padding: 20px; box-sizing: border-box;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease; z-index: 99999;
}
.lebasino-sg-overlay.active { opacity: 1; visibility: visible; }

/* --- Modal Container --- */
.lebasino-sg-container.lebasino-sg-context-modal {
    background: #fff; padding: 0; border-radius: 12px; width: 100%;
    max-width: 800px; max-height: 90vh; overflow: hidden; display: flex;
    flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: scale(0.95); transition: transform 0.3s ease;
}
.lebasino-sg-overlay.active .lebasino-sg-container.lebasino-sg-context-modal { transform: scale(1); }

/* --- Modal Header --- */
.lebasino-sg-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 25px; border-bottom: 1px solid #eee; flex-shrink: 0;
}
.lebasino-sg-header h2 { margin: 0; font-size: 20px; }
.lebasino-sg-close-btn { background: none; border: none; font-size: 30px; line-height: 1; cursor: pointer; color: #999; padding: 5px; }

/* --- Shared Content Styles --- */
.lebasino-sg-container h2 { font-size: 22px; margin-top: 0; margin-bottom: 25px; }
.lebasino-sg-content { display: grid; grid-template-columns: 1fr; padding: 25px; gap: 30px; overflow-y: auto; }
@media (min-width: 768px) { .lebasino-sg-content { grid-template-columns: 250px 1fr; } }
.lebasino-sg-visual-guide img { width: 100%; border-radius: 8px; border: 1px solid #eee; }
.lebasino-sg-table-wrapper { overflow-x: auto; }
.lebasino-sg-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 14px; }
.lebasino-sg-table th, .lebasino-sg-table td { padding: 12px 10px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
.lebasino-sg-table thead { background-color: #f7fafc; }
.lebasino-sg-table th { font-weight: 600; color: #4a5568; font-size: 13px; vertical-align: middle; }
.lebasino-sg-table th span { display: block; font-size: 11px; font-weight: normal; color: #2271b1; margin-top: 2px; }
.lebasino-sg-table tbody tr:last-child td { border-bottom: none; }
