/* ==========================================================================
   STRUCTURE: CONTAINER LIFT & OVERHAUL
   ========================================================================== */
.eb-builder-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1800px;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.eb-media-action-row {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   UI COMPONENTS: BUTTONS & SELECTS
   ========================================================================== */
.eb-add-media-btn {
    background: #001f3f !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 10px 25px !important;
    height: auto !important;
    border-radius: 30px !important;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 13px !important;
    transition: background 0.3s ease;
}
.eb-add-media-btn:hover { background: #003366 !important; }

.eb-library-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.eb-tpl-select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 13px;
    height: 34px;
}

.eb-save-btn {
    background: #23282d !important;
    color: #fff !important;
    padding: 8px 15px !important;
    border-radius: 5px !important;
    font-size: 11px !important;
    text-transform: uppercase;
    cursor: pointer;
    border: none !important;
    height: 34px;
}
.eb-btn-green { background: #46b450 !important; }
.eb-btn-red { background: #a00 !important; }

.eb-btn {
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    color: white;
}
.eb-btn-blue { background: #0073aa; }
.eb-btn-dark { background: #23282d; }

/* ==========================================================================
   FIXES: TINYMCE TOOLBAR VISIBILITY RESTORATION
   ========================================================================== */
.eb-builder-container .wp-editor-tools {
    background: #001f3f !important;
    padding: 15px !important;
    border-radius: 8px 8px 0 0;
    border: none !important;
}

.eb-builder-container .wp-switch-editor {
    background: #003366 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    margin: 0 5px !important;
    padding: 2px 15px !important;
}

/* Restored clean background colors to eliminate layout hover blindness */
.eb-builder-container .mce-toolbar-grp, 
.eb-builder-container .mce-panel, 
.eb-builder-container .mce-stack-layout-item {
    background: #f1f1f1 !important;
    border-bottom: 1px solid #ccd0d4 !important;
    box-shadow: none !important;
}

.eb-builder-container .mce-ico,
.eb-builder-container .qt-dfw {
    color: #32373c !important;
    text-shadow: none !important;
}

.eb-builder-container .wp-editor-area {
    border: 2px solid #001f3f !important;
    border-top: none !important;
    padding: 15px !important;
    font-size: 16px;
    line-height: 1.5;
}

/* ==========================================================================
   FOOTER: NOTICES & PREVIEW CANVAS
   ========================================================================== */
.eb-builder-footer {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.eb-save-status {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.eb-copy-notice {
    display: none;
    background: #46b450;
    color: white;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

.eb-preview-label {
    margin-top: 40px; 
    font-weight: bold; 
    color: #001f3f; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 12px;
}

#eb-ebay-preview {
    margin-top: 15px;
    padding: 30px;
    background: #fff;
    border: 2px dashed #001f3f;
    min-height: 800px;
    height: auto !important;
    overflow: visible;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.eb-preview-placeholder {
    color: #ccc; 
    text-align: center; 
    padding-top: 100px;
}