/*
Theme Name: Shoptimizer Child Theme
Theme URI: 
Description: Child theme of Shoptimizer
Author: CommerceGurus
Author URI: 
Template: shoptimizer
Version: 1.2.2
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
*/


/* Stellt sicher, dass der Inhaltsbereich von Elementor auf volle Breite geht */
.elementor-page .shoptimizer-archive {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Entfernt eventuell gesetzte Begrenzungen des Hauptcontainers */
.elementor-page #content.site-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Setzt alle Elementor-Sektionen auf die volle Bildschirmbreite */
.elementor-section {
    width: 100vw !important;
    max-width: 100vw !important;
}

/* Anpassungen Frontend Upload Datenblätter, Matrix, Katalog */
/* Box für jedes Produkt */
.acf-repeater > .acf-row {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

/* Produkt Dropdown */
.acf-field[data-name="produkte"] {
    width: 100%;
    max-width: 400px;
}

/* Datei Upload Feld */
.acf-field[data-name="produkt_datenblatt"] {
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Hochgeladene Datei anzeigen */
.acf-file-uploader {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acf-file-uploader img {
    max-width: 50px;
    height: auto;
}

.acf-file-uploader .acf-button {
    background: #0073aa;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
}

.acf-file-uploader .acf-button:hover {
    background: #005b8c;
}

/* Button für Datei hochladen */
.acf-form-submit input {
    background: #28a745 !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    font-size: 16px !important;
}

.acf-form-submit input:hover {
    background: #218838 !important;
}

/* Überschrift für Dateien */
h2 {
    border-bottom: 0px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* Liste der hochgeladenen Dateien */
.uploaded-files ul {
    list-style: none;
    padding: 0;
}

.uploaded-files li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.uploaded-files li a {
    color: #0073aa;
    font-weight: bold;
}

.uploaded-files li a:hover {
    text-decoration: underline;
}
