/**
 * Reiter "Werbematerial"
 *
 * Farben aus der Portal-Palette (#38B5CF Markenblau, #E2E6EC Rahmen),
 * Karten wie die uebrigen Abschnitte des Portals.
 *
 * @since 1.5.556
 */

#gstro_public_content .gstro_wm_sub {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
}

/* ---------- Kacheln ---------- */

#gstro_public_content .gstro_wm_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

#gstro_public_content .gstro_wm_tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

#gstro_public_content .gstro_wm_thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: 6px;
    border: 1px solid #E2E6EC;
    background: #f7f9fb;
    overflow: hidden;
}

#gstro_public_content .gstro_wm_thumb.gstro_wm_thumb_hoch {
    aspect-ratio: 9 / 16;
}

#gstro_public_content .gstro_wm_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#gstro_public_content .gstro_wm_neu {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #303133;
    color: #ffffff;
    font-size: 11px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 10px;
}

#gstro_public_content .gstro_wm_name {
    font-size: 14px;
    font-weight: 500;
    color: #303133;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#gstro_public_content .gstro_wm_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

/* Filter-Dropdown: dieselben Regeln wie #gstro_historicPriceToggle_select
   in my_drinks.css (Box: .gstro_historicPriceToggle_outerBox von dort) */
#gstro_public_content #gstro_wm_filter_select{
    font-weight: 300;
    line-height: 25px;
    border-radius: 4px;
    font-family: sans-serif;
    box-shadow: none;
    padding: 0 24px 0 8px;
    width: 130px;
    -webkit-appearance: none;
    background: #fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55%;
    background-size: auto;
    max-height: 30px;
    cursor: pointer;
    margin-bottom: 5px;
}

#gstro_public_content #gstro_wm_filter_select option{
    cursor: pointer;
    color: #303133!important;
}

/* ---------- Rechte Spalte ---------- */

#gstro_public_content .gstro_wm_hinweis,
#gstro_public_content .gstro_wm_text {
    font-size: 14px;
    line-height: 1.5;
    margin: 12px 0 0;
}

#gstro_public_content .gstro_wm_hinweis {
    font-size: 13px;
    color: #6b7280;
}

#gstro_public_content .gstro_wm_schritte {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.5;
}

#gstro_public_content .gstro_wm_schritte li {
    margin-bottom: 8px;
}

#gstro_public_content .gstro_wm_details_link {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
}

/* ---------- Schmale Ansicht ---------- */

@media (max-width: 1000px) {
    #gstro_public_content .gstro_wm_grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    #gstro_public_content .gstro_wm_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

/* Mehr Platz fuer die Kacheln als in den anderen Reitern (45 / 45).
   Unter der Mobil-Grenze setzt public.css beide Spalten mit !important
   auf 100 %. */
#gstro_public_content #gstro_werbematerial_section .gstro_desktop_left_box {
    width: 62%;
}

#gstro_public_content #gstro_werbematerial_section .gstro_desktop_right_box {
    width: 33%;
}

/* ---------- Laden (ab 1.5.557) ----------
   Spinner ist der vorhandene .gstro_smallPopupLoadPanel aus public.css. */

#gstro_public_content .gstro_wm_laedt {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    padding: 40px 0;
}

#gstro_public_content .gstro_wm_thumb .gstro_smallPopupLoadPanel {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -15px 0 0 -15px;
    background: transparent;
}

#gstro_public_content .gstro_wm_thumb.gstro_wm_thumb_laedt .gstro_smallPopupLoadPanel {
    display: block;
}

#gstro_public_content .gstro_wm_thumb.gstro_wm_thumb_laedt img {
    opacity: 0;
}

/* ---------- Ordner (ab 1.5.560) ----------
   Ordner-Kachel in derselben Form wie die Datei-Kacheln, Symbol aus den
   Dashicons. Pfad als normale Links, ohne eigene Gestaltung. */

#gstro_public_content .gstro_wm_thumb.gstro_wm_ordner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

#gstro_public_content .gstro_wm_thumb.gstro_wm_ordner .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #8c8f94;
}

#gstro_public_content .gstro_wm_pfad {
    font-size: 14px;
    margin: 0 0 16px;
}

/* ---------- Liste wie im Drive-Ordner (ab 1.5.563) ----------
   Tabelle und Kopfzeile wie unter "Rechnungen" (gstro_data_table),
   hier nur das kleine Vorschaubild vor dem Namen. */

#gstro_public_content .gstro_wm_liste {
    width: 100%;
}

#gstro_public_content .gstro_wm_liste td a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#gstro_public_content .gstro_wm_icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 4px;
    overflow: hidden;
    background: #f7f9fb;
}

#gstro_public_content .gstro_wm_icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#gstro_public_content .gstro_wm_icon .dashicons {
    color: #8c8f94;
}

#gstro_public_content .gstro_wm_icon .gstro_smallPopupLoadPanel {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    background: transparent;
}

#gstro_public_content .gstro_wm_icon.gstro_wm_icon_laedt .gstro_smallPopupLoadPanel {
    display: block;
}

#gstro_public_content .gstro_wm_icon.gstro_wm_icon_laedt img {
    opacity: 0;
}

#gstro_public_content .gstro_wm_liste .gstro_wm_neu {
    position: static;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
}

/* ---------- Schalter Liste / Vorschau (ab 1.5.567) ----------
   Schalter selbst ist der vorhandene .switch / .gstroSlider aus public.css. */

#gstro_public_content .gstro_wm_ansicht {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}
