/* ==========================================================================
   Roularta Slide Info Drawer - Figma Compliant v3.1
   Adjustments: Added Initial State Transition Fix
   ========================================================================== */

/* 1. Main Drawer Container */
.roularta-drawer {
    position: fixed !important;
    top: 5vh !important;
    bottom: 5vh !important;
    height: 90vh !important;
    /* Start off-screen using transform for better performance than 'right' */
    right: 0 !important;
    transform: translateX(110%) !important; 
    width: 90vw !important;
    max-width: 504px !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 40px 40px !important;
    gap: 24px !important; 
    background: #FFFFFF !important;
    border-radius: 24px 0 0 24px !important;
    box-shadow: 0 20px 80px 0 rgba(60, 60, 60, 0.12) !important;
    z-index: 99999 !important;
    overflow: hidden !important;
    
    /* EXIT SPEED: Snappier for efficiency */
    transition: transform 0.35s ease-in !important;
    pointer-events: auto !important;
}

/* Open State */
.roularta-drawer.is-open {
    transform: translateX(0) !important;
    /* ENTRY SPEED: Elegant and slow for premium feel */
    transition: transform 0.65s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

/* 2. The Close Button (The X) */
button.roularta-close-btn {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: flex-end !important; 
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
    border: 1px solid #363636 !important; 
    border-radius: 50% !important;
    color: #363636 !important;
    font-size: 16px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    line-height: 0 !important; 
    padding: 0 !important;
    padding-top: 1px !important;
    transition: all 0.2s ease !important;
}

button.roularta-close-btn:hover {
    background-color: rgba(54, 54, 54, 0.05) !important;
    transform: scale(1.05) !important;
}

/* 3. Header & Description Styling */
.drawer-header {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}

.drawer-header h3 {
    color: #363636 !important;
    font-size: 24px !important;
    margin: 0 !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    font-family: inherit;
}

.drawer-description {
    color: #747474 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* 4. Content Area & HTML Message Styling */
.drawer-content {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    color: #747474 !important;
    font-size: 16px !important;
    /*line-height: 1.6 !important;*/
    padding-top: 8px !important;
}

.drawer-content p {
    margin: 0 0 1.2rem 0 !important;
    font-size: 14px !important;
}

.drawer-content strong, 
.drawer-content b {
    font-weight: 700 !important;
    color: #121212 !important;
}

.drawer-content a {
    color: #0682C8 !important; 
    text-decoration: underline !important;
    font-weight: 600 !important;
    transition: opacity 0.2s ease !important;
}

.drawer-content a:hover {
    opacity: 0.7 !important;
}

/* 5. Mobile Adjustments */
@media screen and (max-width: 768px) {
    .roularta-drawer {
        width: 85vw !important;
        padding: 32px 24px !important;
        border-radius: 16px 0 0 16px !important;
    }
}