/* =========================================
   1. Base Container & Animations
   ========================================= */
#sb-cookie-banner {
    position: fixed;
    z-index: 999999;
    font-family: inherit;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
    /* ডিফল্টভাবে ডিসপ্লে none থাকবে না CSS এ, 
       কারণ আমরা PHP তে ইনলাইন style="display:none" দিয়েছি।
       JS দিয়ে আমরা ডিসপ্লে ফ্লেক্স করব। */
    display: flex; 
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Animation for Slide Up */
@keyframes sbSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#sb-cookie-banner.sb-show {
    animation: sbSlideUp 0.5s ease forwards;
}

/* =========================================
   2. Layout: Modern Box (Bottom Left/Right)
   ========================================= */
.sb-cookie-modern {
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    padding: 24px;
    background-color: var(--sb-cookie-bg);
}

.sb-cookie-modern .sb-cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sb-cookie-modern .sb-cookie-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.sb-cookie-modern .sb-btn-accept, 
.sb-cookie-modern .sb-btn-reject {
    flex: 1; /* বাটনগুলো সমান বড় হবে */
    justify-content: center;
}

/* Positions for Box Layout */
.sb-pos-bottom-left {
    bottom: 20px;
    left: 20px;
}

.sb-pos-bottom-right {
    bottom: 20px;
    right: 20px;
}

/* =========================================
   3. Layout: Sticky Bar (Full Width)
   ========================================= */
.sb-cookie-bar {
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    padding: 15px 30px;
    background-color: var(--sb-cookie-bg);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.sb-cookie-bar .sb-cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 20px;
}

.sb-cookie-bar .sb-cookie-text {
    flex: 1;
}

.sb-cookie-bar .sb-cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* =========================================
   4. Typography & Colors
   ========================================= */
.sb-cookie-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--sb-cookie-title);
}

.sb-cookie-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--sb-cookie-text);
}

/* =========================================
   5. Buttons
   ========================================= */
.sb-btn-accept, .sb-btn-reject {
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.sb-btn-accept {
    background-color: var(--sb-cookie-accept-bg);
    color: var(--sb-cookie-accept-text);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sb-btn-reject {
    background-color: var(--sb-cookie-reject-bg);
    color: var(--sb-cookie-reject-text);
}

.sb-btn-accept:hover {
    opacity: 0.9;
    background-color: var(--sb-cookie-accept-bg) !important;
    color: var(--sb-cookie-accept-text) !important;
}

.sb-btn-reject:hover {
    opacity: 0.9;
    background-color: var(--sb-cookie-reject-bg) !important;
    color: var(--sb-cookie-reject-text) !important;
}

/* =========================================
   6. Mobile Responsiveness
   ========================================= */
@media (max-width: 768px) {
    .sb-cookie-bar {
        padding: 20px;
    }
    
    .sb-cookie-bar .sb-cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .sb-cookie-bar .sb-cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }
    
    .sb-cookie-bar .sb-btn-accept {
        flex-grow: 1;
        text-align: center;
        justify-content: center;
    }
    
    /* Box layout mobile fix */
    .sb-cookie-modern {
        left: 5% !important;
        width: 90% !important;
        right: auto !important;
        bottom: 20px !important;
    }
}