/* ==========================================================================
   Dedicated Comments & Discussion Page Styles
   Location: css/single-product/product-comments.css
   Production Ready Version - Full File, No Code Skipped
   ========================================================================== */

.product-comments-page-wrapper,
.product-comments-page-wrapper *,
.product-comments-page-wrapper a,
.product-comments-page-wrapper button,
.product-comments-page-wrapper input,
.product-comments-page-wrapper textarea,
.product-comments-page-wrapper select {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    box-sizing: border-box !important;
}

.product-comments-page-wrapper {
    max-width: 1140px !important;
    margin: 20px auto 60px auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
    clear: both !important;
}

/* --- HEADER / TEXT-ONLY BACK LINK --- */
.pc-header {
    margin-bottom: 24px !important;
}

.pc-back-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    font-size: 14.5px !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pc-back-link svg {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor !important;
    stroke-width: 2.5 !important;
    fill: none !important;
    transform: translateX(0) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease !important;
}

.pc-back-link:hover { 
    color: #a78bfa !important; 
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.pc-back-link:hover svg {
    transform: translateX(-4px) !important;
    stroke: #a78bfa !important;
}

/* ==========================================================================
   📦 ENTITY CONTEXT CARD (ZERO SHADOW, CLEAN BORDER)
   ========================================================================== */
.entity-context-card {
    display: flex !important;
    align-items: center !important;
    gap: 28px !important;
    background: #17141c !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important; 
    padding: 26px 30px !important;
    margin-bottom: 36px !important;
    box-shadow: none !important;
    transition: border-color 0.25s ease !important;
}

.entity-context-card:hover {
    border-color: rgba(124, 58, 237, 0.4) !important;
    box-shadow: none !important;
}

.entity-cc-image {
    width: 110px !important;
    height: 110px !important;
    border-radius: 14px !important;
    object-fit: cover !important;
    background-color: #0b0f19 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
}

.entity-cc-info {
    flex-grow: 1 !important;
    text-align: left !important;
}

.entity-cc-info h1 {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
}

.entity-cc-rating {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
    font-size: 15px !important;
    color: #cbd5e1 !important;
    margin-top: -4px !important;
}

.entity-cc-rating svg {
    width: 18px !important;
    height: 18px !important;
    color: #facc15 !important;
    fill: #facc15 !important;
}

.entity-cc-rating strong {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.entity-cc-info p {
    font-size: 14px !important;
    color: #94a3b8 !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

.entity-cc-actions {
    flex-shrink: 0 !important;
}

.entity-cc-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 13px 26px !important;
    background-color: #7c3aed !important; 
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.entity-cc-btn .mcb-glide-arrow {
    stroke: currentColor !important;
    transform: translateX(0) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    flex-shrink: 0 !important;
}

.entity-cc-btn:hover {
    background-color: #6d28d9 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5) !important;
}

.entity-cc-btn:hover .mcb-glide-arrow {
    transform: translateX(5px) !important;
}

/* ==========================================================================
   📑 ENTERPRISE TABS (CENTERED & RESPONSIVE)
   ========================================================================== */
.enterprise-tabs-container {
    display: flex !important;
    justify-content: center !important; 
    margin-bottom: 36px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 24px !important;
    width: 100% !important;
}

.enterprise-tabs {
    position: relative !important;
    display: flex !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    padding: 5px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    max-width: 580px !important;
    width: 100% !important;
}

.ent-tab-btn {
    flex: 1 1 50% !important;
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.ent-tab-btn svg {
    width: 18px !important;
    height: 18px !important;
    transition: stroke 0.3s ease, fill 0.3s ease !important;
    flex-shrink: 0 !important;
}

.ent-tab-btn.active {
    background-color: #7c3aed !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4) !important;
}

.ent-tab-text-mobile {
    display: none !important;
}

@media screen and (max-width: 640px) {
    .enterprise-tabs-container {
        padding-bottom: 16px !important;
    }
    .enterprise-tabs {
        max-width: 100% !important;
    }
    .ent-tab-text-full {
        display: none !important;
    }
    .ent-tab-text-mobile {
        display: inline !important;
    }
    .ent-tab-btn {
        padding: 10px 10px !important;
        font-size: 13.5px !important;
        gap: 6px !important;
    }
}

/* --- DISMISSIBLE NOTICE --- */
.review-info-notice {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    background: rgba(124, 58, 237, 0.06) !important;
    border: 1px solid rgba(124, 58, 237, 0.25) !important;
    border-left: 4px solid #7c3aed !important;
    border-radius: 12px !important;
    padding: 18px 24px !important;
    margin-bottom: 36px !important;
    position: relative !important;
}

.review-info-notice .notice-icon svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #a78bfa !important;
}

.review-info-notice .notice-content h4 {
    margin: 0 0 4px 0 !important;
    font-size: 15.5px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}

.review-info-notice .notice-content p {
    margin: 0 !important;
    font-size: 13.5px !important;
    color: #94a3b8 !important;
    line-height: 1.6 !important;
}

.review-info-notice .notice-dismiss-btn {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    padding: 4px !important;
    display: inline-flex !important;
    transition: color 0.2s !important;
}

.review-info-notice .notice-dismiss-btn:hover {
    color: #ffffff !important;
}

.review-info-notice .notice-dismiss-btn svg {
    width: 16px !important;
    height: 16px !important;
}

/* ==========================================================================
   2-COLUMN LAYOUT: DISCUSSION AREA VS STICKY STORE PRODUCT CARD
   ========================================================================== */
.product-comments-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 340px !important;
    gap: 40px !important;
    align-items: flex-start !important;
    width: 100% !important;
}

.pc-main-column {
    width: 100% !important;
    min-width: 0 !important;
}

/* Sticky Product Card Sidebar */
.pc-sidebar-sticky {
    position: sticky !important;
    top: 90px !important;
    width: 100% !important;
}

.pc-product-grid-mount {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 0 !important;
}

.pc-product-grid-mount .mcb-pc-card {
    width: 100% !important;
    margin: 0 !important;
}

/* Container Box for Discussion Thread */
.mcb-wpdiscuz-mount-box {
    background: #17141c !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px !important;
    padding: 30px !important;
    box-shadow: none !important;
    width: 100% !important;
}

/* ==========================================================================
   WPDISCUZ & NATIVE COMMENT FORM DARK LUXURY STYLES
   ========================================================================== */
#wpcomm,
.mcb-discussion-comments-area {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #cbd5e1 !important;
}

.mcb-discussion-title,
#reply-title,
.comment-reply-title {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 16px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.comment-notes,
.mcb-comment-notes {
    font-size: 13px !important;
    color: #94a3b8 !important;
    margin-bottom: 20px !important;
}

.comment-form p {
    margin-bottom: 18px !important;
}

.comment-form label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    display: block !important;
    margin-bottom: 8px !important;
}

.comment-form label .required {
    color: #ef4444 !important;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100% !important;
    height: 48px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    padding: 0 16px !important;
    font-size: 14.5px !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2) !important;
    background: #17141c !important;
}

.comment-form textarea {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    padding: 14px 16px !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.comment-form textarea:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2) !important;
    background: #17141c !important;
}

.form-submit input[type="submit"],
.mcb-btn-post-comment,
.submit.wp-element-button {
    background: #7c3aed !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 13px 32px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4) !important;
    transition: all 0.25s ease !important;
    outline: none !important;
}

.form-submit input[type="submit"]:hover,
.mcb-btn-post-comment:hover,
.submit.wp-element-button:hover {
    background: #6d28d9 !important;
    box-shadow: 0 6px 22px rgba(124, 58, 237, 0.55) !important;
    transform: translateY(-2px) !important;
}

/* wpDiscuz Rich Editor Overrides */
#wpcomm .wc-comment-header,
#wpcomm .wpd-form-head {
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

#wpcomm .wpd-thread-head {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 14px !important;
    margin-bottom: 24px !important;
}

#wpcomm .wpd-thread-info {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}

#wpcomm .wpd-form-wrap {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    padding: 20px !important;
    margin-bottom: 30px !important;
}

#wpcomm .ql-toolbar {
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

#wpcomm .ql-container {
    background: #0b0f19 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: none !important;
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    color: #ffffff !important;
}

#wpcomm .ql-editor {
    color: #ffffff !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
}

#wpcomm .ql-editor.ql-blank::before {
    color: #64748b !important;
}

#wpcomm .wc_comm_submit,
#wpcomm .wpd-field-submit input[type="submit"] {
    background: #7c3aed !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 11px 28px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

#wpcomm .wc_comm_submit:hover,
#wpcomm .wpd-field-submit input[type="submit"]:hover {
    background: #6d28d9 !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.55) !important;
    transform: translateY(-2px) !important;
}

#wpcomm .wpd-comment {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-bottom: 14px !important;
}

#wpcomm .wpd-comment-author,
#wpcomm .wpd-comment-author a {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
}

#wpcomm .wpd-comment-date {
    color: #64748b !important;
    font-size: 12px !important;
}

#wpcomm .wpd-comment-text {
    color: #cbd5e1 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .product-comments-layout {
        grid-template-columns: 1fr !important;
    }
    
    .pc-sidebar-sticky {
        position: static !important;
        order: -1 !important;
        margin-bottom: 30px !important;
    }

    .mcb-wpdiscuz-mount-box {
        padding: 20px 16px !important;
    }
}