/* ── Back-nav bar (injected above the preview canvas) ── */
#repefoel-back-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a2e;
    padding: 0 20px;
    height: 44px;
    flex-shrink: 0;
    border-bottom: 2px solid #4a90d9;
    width: 100%;
    box-sizing: border-box;
}

#repefoel-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 1px solid rgba(147, 176, 200, 0.35);
    border-radius: 4px;
    color: #93b0c8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 12px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#repefoel-back-btn:hover {
    background: rgba(74, 144, 217, 0.2);
    border-color: #4a90d9;
    color: #fff;
}

#repefoel-back-btn i {
    font-size: 14px;
    line-height: 1;
}

#repefoel-publish-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f0abfc;
    border: 1px solid #f0abfc;
    border-radius: 4px;
    color: #000;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 14px;
    transition: background 0.15s, border-color 0.15s, opacity 0.15s;
    letter-spacing: 0.04em;
    margin-left: 5px;
}

#repefoel-publish-btn:hover {
    background: #eb8efb;
    border-color: #eb8efb;
}

#repefoel-publish-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#repefoel-publish-btn.repefoel-publish-done {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.12);
}

#repefoel-editing-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#repefoel-editing-label i {
    font-size: 14px;
    color: #4a90d9;
    flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────────────────── */

.elementor-template-library-template-custom {
    border: 2px solid #007cba !important;
}

.elementor-template-library-template-badge-custom {
    background: #007cba !important;
    color: #fff !important;
    padding: 2px 6px !important;
    font-size: 10px !important;
    border-radius: 3px !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 1 !important;
}

.elementor-editor-custom-template .elementor-panel-navigation .elementor-panel-navigation-tab {
    border-bottom: 2px solid #007cba;
}

.custom-template-settings {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.elementor-element .icon .REPEFOEL-icon:before {
    content: '';
    background-image: url('/wp-content/plugins/addoncraft-repeater-for-elementor-acf/assets/icons/repefoel-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 45px;
    height: 40px;
    display: block;
    margin: auto;
}
