/* =============================================================================
   🧱 Base Container Styling
============================================================================= */
.takeaways-box {
    background-color: #f9fbff;
    padding: 1.75rem 1.5rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    font-family: system-ui, sans-serif;
    color: #1e1e1e;
    line-height: 1.65;
}

/* =============================================================================
   🔠 Heading (Title Bar)
============================================================================= */
.takeaways-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1b4f91;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    margin: 0 0 1.25rem 0;
    border-bottom: 1px solid #dbe7fa;
}


/* =============================================================================
   📋 List Styling
============================================================================= */
.takeaways-box ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* 📝 Individual List Item Layout */
.takeaways-box li {
    display: flex;
    flex-wrap: wrap; /* ✅ Responsive wrap */
    align-items: center;
    position: relative;
    margin-bottom: 0.85rem;
    font-size: 0.96rem;
    color: #2a2a2a;
    padding-left: 1.6rem;
}

/* =============================================================================
   ❌ Remove Button Styling
============================================================================= */
.takeaways-box .remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background-color: #e74c3c;
    border: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    margin-left: auto;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* 🔴 Hover and Active States for Button */
.takeaways-box .remove-btn:hover {
    background-color: #c0392b;
}
.takeaways-box .remove-btn:active {
    transform: scale(0.95);
    background-color: #d73c2c;
}

/* =============================================================================
   🎨 Variant Themes
============================================================================= */


/* 🎨 Variant Styles (No Icons, Just Color) */

.is-style-default .takeaways-box {
    background-color: #f9fbff;
    border: none;
}

.is-style-tip .takeaways-box {
    background-color: #eef9ff;
    border: 1px solid #a8d9ff;
}

.is-style-warning .takeaways-box {
    background-color: #fff8e1;
    border: 1px solid #f4c542;
}

.is-style-note .takeaways-box {
    background-color: #fef6fb;
    border: 1px dashed #da4ea2;
}

.takeaways-box-editor button:hover {
    background-color: #1e40af !important;
}


/* =============================================================================
   🌒 Dark Mode (Astra or body.is-dark-theme)
============================================================================= */
body.is-dark-theme .takeaways-box,
html.is-dark-theme .takeaways-box {
    background-color: #20262f;
    color: #e5f4ff;
}

body.is-dark-theme .takeaways-box h3,
html.is-dark-theme .takeaways-box h3 {
    color: #aad4ff;
}

body.is-dark-theme .takeaways-box li,
html.is-dark-theme .takeaways-box li {
    color: #d9f0ff;
}

body.is-dark-theme .takeaways-box li::before {
    color: #66bfff;
}

/* =============================================================================
   📱 Mobile Responsiveness
============================================================================= */
@media (max-width: 480px) {
    .takeaways-box {
        padding: 1.25rem 1rem;
    }

    .takeaways-box h3 {
        font-size: 1.05rem;
    }

    .takeaways-box li {
        font-size: 0.92rem;
    }

    .takeaways-box .remove-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}
