/* ELITE THREADING DESIGN SYSTEM - Solicite 2026 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;900&display=swap');

/* 1. Reset and Core Layout */
section#comments.comments {
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 5rem 0 !important;
    display: block !important;
    background: transparent !important;
    font-family: 'Outfit', sans-serif !important;
}

/* 2. Global Hiders for Redundant Elements & Persistent Loaders */
section#comments.comments>header,
.comments_count,
.comments_single_likes,
.wc_close,
img.load,
form img,
.comment_login_box img.load {
    display: none !important;
}

/* 3. Main Comment Card - Discrete and Premium */
section#comments.comments .comments_single {
    position: relative !important;
    border: 1px solid #f1f5f9 !important;
    padding: 2.5rem !important;
    background: #ffffff !important;
    border-radius: 2.5rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.05) !important;
    float: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* Vertical Thread Line for Conversations */
section#comments.comments .comments_single:has(.comment_response):before {
    content: '';
    position: absolute;
    left: 4.25rem;
    top: 6rem;
    bottom: 3rem;
    width: 2px;
    background: #f1f5f9;
    z-index: 1;
}

/* 4. Avatar Constraint - Elite Modern Tokens */
section#comments.comments .comments_single_avatar {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 60px !important;
    margin-right: 20px !important;
    flex-shrink: 0 !important;
    display: block !important;
    position: relative;
    z-index: 2;
}

section#comments.comments .comments_single_avatar img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 1.25rem !important;
    object-fit: cover !important;
    border: 2px solid #fff !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08) !important;
    display: block !important;
}

/* Content Area Hierarchy */
section#comments.comments .comments_single_content {
    flex: 1 !important;
    min-width: 0 !important;
    padding-left: 0 !important;
}

section#comments.comments .comments_single_content header h1 {
    font-weight: 800 !important;
    font-size: 1.15rem !important;
    color: #0f172a !important;
    margin: 0 !important;
}

section#comments.comments .comments_single_comment {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    margin: 10px 0 !important;
}

/* 5. Logic for Replies & VISIBILITY FIX */
section#comments.comments .comments_single form {
    display: none;
    /* REQUIRED: SlideDown by JS */
    margin-top: 2rem !important;
    background: #f8fafc !important;
    padding: 2.5rem !important;
    border-radius: 2rem !important;
    border: 1px solid #f1f5f9 !important;
    width: 100% !important;
}

/* The primary "Leave a Comment" form remains visible */
section#comments.comments>form {
    display: block !important;
    background: #ffffff !important;
    border: 2px solid #f1f5f9 !important;
    margin-top: 3rem !important;
    padding: 3rem !important;
    border-radius: 2.5rem !important;
    box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.08) !important;
}

/* Visual Styling for Existng Replies */
.comment_response {
    margin-left: 4.5rem !important;
    width: calc(100% - 4.5rem) !important;
    background: #f8fafc !important;
    padding: 2rem !important;
    border-radius: 2rem !important;
    border: 1px solid #f1f5f9 !important;
    margin-top: 1.5rem !important;
}

.comment_response .comments_single_avatar {
    width: 45px !important;
    min-width: 45px !important;
    max-width: 45px !important;
    height: 45px !important;
}

.comment_response .comments_single_avatar img {
    width: 45px !important;
    height: 45px !important;
}

/* 6. MODAL SYSTEM - SUPREME Z-INDEX & LAYOUT LUXURY */
.comment_login_box {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    display: none;
    z-index: 2147483647 !important;
    overflow-y: auto !important;
    padding: 40px 20px !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Centering Logic */
.comment_login_box[style*="display: block"] {
    display: flex !important;
}

.comment_login_content {
    background: #ffffff !important;
    border-radius: 3rem !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: auto !important;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.6) !important;
    position: relative !important;
    font-family: 'Outfit', sans-serif !important;
    overflow: hidden !important;
    animation: modalReveal 0.5s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

@keyframes modalReveal {
    from {
        transform: scale(1.05) translateY(30px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.comment_login_content header {
    padding: 4rem 3.5rem 1.5rem !important;
    text-align: center !important;
}

.comment_login_content header h1 {
    font-weight: 900 !important;
    font-size: 1.7rem !important;
    color: #0f172a !important;
    text-transform: uppercase !important;
    letter-spacing: -0.05em !important;
    line-height: 1.1 !important;
}

.comment_login_fields {
    padding: 0 3.5rem 2rem !important;
}

/* Dynamic Field Visibility (JS Controlled) */
div.comment_login_fields label.comment_login_create,
div.comment_login_fields label.comment_login_join,
label.comment_recover_label {
    display: none;
}

.comment_login_fields label span {
    display: block !important;
    font-weight: 900 !important;
    font-size: 9px !important;
    text-transform: uppercase !important;
    color: #3b82f6 !important;
    margin-bottom: 8px !important;
    letter-spacing: 0.1em !important;
}

.comment_login_actions {
    padding: 0 3.5rem 4.5rem !important;
    text-align: center !important;
}

.comment_login_close {
    position: absolute !important;
    top: 30px !important;
    right: 30px !important;
    width: 40px !important;
    height: 40px !important;
    background: #f1f5f9 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-weight: 900 !important;
    color: #94a3b8 !important;
}

/* 7. Action Strip Polish (Goste / Responder) */
.comments_single_ui {
    display: flex !important;
    gap: 20px !important;
    align-items: center !important;
    margin-top: 15px !important;
}

.comments_single_ui .stars {
    color: #f59e0b !important;
    font-size: 1rem !important;
}

.comments_single_ui .date {
    font-size: 9px !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.comments_single_ui .like,
.comments_single_ui .response {
    color: #3b82f6 !important;
    font-weight: 900 !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.comments_single_ui .like:hover,
.comments_single_ui .response:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

/* Global Shared Tokens */
section#comments.comments form textarea,
section#comments.comments form select,
.comment_login_box input {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 1.25rem !important;
    padding: 1.25rem 1.5rem !important;
    font-family: 'Outfit', sans-serif !important;
    transition: all 0.3s !important;
    font-size: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

section#comments.comments form button,
.comment_login_box .btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2rem !important;
    font-size: 10px !important;
    padding: 1.5rem 3.5rem !important;
    border-radius: 1.25rem !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.4) !important;
}