/*!
 * CUBAR UI global v1.0.3 (2026-11-27) – auf allen Seiten geladen (layout/header.tpl)
 * Ein Stil für Auswahllisten, Bootstrap-Select-Dropdowns, Formularfelder und Bewertungs-Sterne.
 * Farben = PDP v2: Text #1a2535, Linien #e6eef3, Verlauf #0AB4FF -> #00EDFF, Poppins.
 * Nur Optik: Markup, Feldnamen, Werte und JTL-Logik bleiben unverändert.
 */
:root{
  --ui-ink:#1a2535; --ui-muted:#5f6d7e; --ui-line:#e6eef3; --ui-line-hover:#cfe3ec; --ui-surface:#f6fafc;
  --ui-brand:#0AB4FF; --ui-brand-ink:#0789a8; --ui-grad:linear-gradient(90deg,#0AB4FF 0%,#00EDFF 100%);
  --ui-star:#ffb400; --ui-star-off:#dfe6ec; --ui-ring:0 0 0 3px rgba(10,180,255,.15);
  --ui-body:"Poppins",system-ui,-apple-system,"Segoe UI",sans-serif;
  --ui-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231a2535' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- 1) Native Auswahllisten (z. B. Einträge pro Seite, Sortierung der Bewertungen, Anrede, Land) ---------- */
select.custom-select,
select.form-control:not([multiple]):not([size]){
  -webkit-appearance:none; appearance:none;
  height:46px; padding:0 42px 0 14px!important;
  border:1.5px solid var(--ui-line)!important; border-radius:12px!important;
  background:#fff var(--ui-chevron) no-repeat right 15px center/12px 8px!important;
  box-shadow:none!important; outline:0;
  font-family:var(--ui-body)!important; font-size:14px!important; font-weight:500; color:var(--ui-ink)!important;
  cursor:pointer; transition:border-color .15s,box-shadow .15s;
}
select.custom-select:hover,select.form-control:not([multiple]):not([size]):hover{border-color:var(--ui-line-hover)!important}
select.custom-select:focus,select.form-control:not([multiple]):not([size]):focus{border-color:var(--ui-brand)!important;box-shadow:var(--ui-ring)!important}
/* eigene Regel: Browser ohne :open verwerfen sonst die ganze Selektorliste */
select.custom-select:open,select.form-control:not([multiple]):not([size]):open{border-color:var(--ui-brand)!important;box-shadow:var(--ui-ring)!important}
select.custom-select:disabled{opacity:.55;cursor:not-allowed}

/* Aufgeklappte Liste im gleichen Stil: nur Browser mit "appearance: base-select" (Chrome/Edge ab 135).
   Safari/Firefox zeigen weiter die System-Liste, das geschlossene Feld ist trotzdem im Theme-Stil. */
@supports (appearance:base-select){
  select.custom-select,
  select.form-control:not([multiple]):not([size]){appearance:base-select;display:inline-flex;align-items:center}
  select.custom-select::picker-icon,
  select.form-control:not([multiple]):not([size])::picker-icon{display:none}
  select.custom-select::picker(select),
  select.form-control:not([multiple]):not([size])::picker(select){
    appearance:base-select; margin-top:6px; padding:6px; border:1px solid var(--ui-line); border-radius:14px;
    background:#fff; box-shadow:0 12px 32px rgba(26,37,53,.12);
  }
  select.custom-select option,
  select.form-control:not([multiple]):not([size]) option{
    display:flex; align-items:center; min-height:40px; padding:8px 12px; border-radius:10px;
    font-family:var(--ui-body); font-size:14px; font-weight:500; color:var(--ui-ink); background:transparent;
  }
  select.custom-select option::checkmark,
  select.form-control:not([multiple]):not([size]) option::checkmark{display:none}
  select.custom-select option:hover,select.custom-select option:focus-visible,
  select.form-control:not([multiple]):not([size]) option:hover,
  select.form-control:not([multiple]):not([size]) option:focus-visible{background:var(--ui-surface)}
  select.custom-select option:checked,
  select.form-control:not([multiple]):not([size]) option:checked{background:var(--ui-grad); color:#fff; font-weight:700}
  select.custom-select option:disabled,
  select.form-control:not([multiple]):not([size]) option:disabled{color:var(--ui-muted); font-size:12px; font-weight:600; min-height:30px; background:none}
}

/* ---------- 2) Bootstrap-Select (z. B. Variationen) – überall gleich wie auf der Produktseite ---------- */
.bootstrap-select>.dropdown-toggle{
  min-height:46px; padding:0 42px 0 14px!important;
  border:1.5px solid var(--ui-line)!important; border-radius:12px!important; background:#fff!important; box-shadow:none!important; outline:0!important;
  font-family:var(--ui-body)!important; font-size:14px!important; font-weight:600!important; color:var(--ui-ink)!important;
}
.bootstrap-select>.dropdown-toggle.bs-placeholder{color:var(--ui-muted)!important;font-weight:500!important}
.bootstrap-select>.dropdown-toggle:hover{border-color:var(--ui-line-hover)!important}
.bootstrap-select.show>.dropdown-toggle,.bootstrap-select>.dropdown-toggle:focus-visible{border-color:var(--ui-brand)!important;box-shadow:var(--ui-ring)!important}
.bootstrap-select>.dropdown-toggle .filter-option{display:flex!important;align-items:center;height:100%;padding:0!important}
.bootstrap-select>.dropdown-toggle::after{content:""!important;position:absolute;right:16px;top:50%;width:8px;height:8px;margin:-6px 0 0!important;border:0!important;border-right:2px solid var(--ui-ink)!important;border-bottom:2px solid var(--ui-ink)!important;transform:rotate(45deg);transition:transform .15s,margin .15s}
.bootstrap-select.show>.dropdown-toggle::after{transform:rotate(-135deg);margin-top:-2px!important}
.bootstrap-select>.dropdown-menu{margin:6px 0!important;padding:6px!important;border:1px solid var(--ui-line)!important;border-radius:14px!important;box-shadow:0 12px 32px rgba(26,37,53,.12)!important;background:#fff!important;min-width:100%!important}
.bootstrap-select .dropdown-menu.inner{padding:0!important;margin:0!important;border:0!important;box-shadow:none!important}
.bootstrap-select .dropdown-item{display:flex!important;align-items:center;min-height:40px;padding:8px 12px!important;border-radius:10px!important;font-family:var(--ui-body)!important;font-size:14px!important;font-weight:500!important;color:var(--ui-ink)!important;background:transparent!important;white-space:normal}
.bootstrap-select .dropdown-item:hover,.bootstrap-select .dropdown-item:focus{background:var(--ui-surface)!important;outline:0}
.bootstrap-select .dropdown-item.active,.bootstrap-select .dropdown-item.selected,.bootstrap-select li.selected>.dropdown-item{background:var(--ui-grad)!important;color:#fff!important;font-weight:700!important}
.bootstrap-select .dropdown-item .check-mark{display:none!important}
.bootstrap-select li.disabled>.dropdown-item{opacity:.45}

/* ---------- 3) Formularfelder im Inhalt (nicht Kopfzeile/Suche, nicht Mengenfelder in Eingabegruppen) ---------- */
#content form input.form-control:not([type="hidden"]):not(:is(.input-group *)),
#content form textarea.form-control{
  border:1.5px solid var(--ui-line)!important; border-radius:12px!important; box-shadow:none!important;
  font-family:var(--ui-body); color:var(--ui-ink); transition:border-color .15s,box-shadow .15s;
}
#content form input.form-control:not([type="hidden"]):not(:is(.input-group *)):hover,
#content form textarea.form-control:hover{border-color:var(--ui-line-hover)!important}
#content form input.form-control:not([type="hidden"]):not(:is(.input-group *)):focus,
#content form textarea.form-control:focus{border-color:var(--ui-brand)!important;box-shadow:var(--ui-ring)!important}

/* ---------- 4) Bewertungen: Sterne gelb, Knöpfe und Liste im Theme ---------- */
.rating .fas.fa-star,.rating .fas.fa-star-half-alt,.rating .fa-star-half{color:var(--ui-star)!important}
.rating .far.fa-star{color:var(--ui-star-off)!important}
/* Abstände: Übersicht und "Teilen Sie …" lagen ohne Lücke untereinander */
#tab-votes #reviews-overview{row-gap:12px;margin-bottom:20px}
#tab-votes #reviews-overview + p{margin:0 0 8px;font-size:13px;color:var(--ui-muted)}
#tab-votes .card.review{margin-top:12px}
#tab-votes .card.review + .card.review{margin-top:12px}
#tab-votes .rating{display:inline-flex;gap:2px;font-size:15px}
#tab-votes #ratingDropdown{display:inline-flex;align-items:center;gap:8px;padding:0!important;color:var(--ui-ink)!important;font-family:var(--ui-body);font-weight:600;text-decoration:none!important}
#tab-votes .progress{height:8px;border-radius:999px;background:var(--ui-line)}
#tab-votes .progress-bar{background:var(--ui-grad);border-radius:999px}
#tab-votes .verified-purchase-notice{border:1.5px solid var(--ui-line)!important;border-radius:999px!important;background:#fff!important;color:var(--ui-ink)!important;font-family:var(--ui-body);font-size:13px!important;font-weight:600!important;padding:8px 16px!important;box-shadow:none!important}
#tab-votes .verified-purchase-notice::before{content:"i";display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-right:8px;border-radius:50%;background:var(--ui-grad);color:#fff;font-size:11px;font-weight:800;font-style:normal;vertical-align:-3px}
#tab-votes .verified-purchase-notice:hover{border-color:var(--ui-brand)!important}
#tab-votes .pagination-wrapper{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 0!important;border:0!important}
#tab-votes .pagination-entries{font-family:var(--ui-body);font-size:14px;font-weight:700;color:var(--ui-ink)}
#tab-votes .pagination-selects .row{flex-wrap:nowrap;gap:8px;margin:0}
#tab-votes .pagination-selects .row>.col{padding:0}
#tab-votes .pagination-selects select{min-width:190px}
#tab-votes .verified-purchase{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;background:#e8f7ef;color:#0f7a49;font-size:12px;font-weight:700}
#tab-votes .verified-purchase::before{content:"\2713";font-weight:800}
@media (max-width:767.98px){
  #tab-votes .pagination-selects .row{flex-wrap:wrap}
  #tab-votes .pagination-selects .row>.col{flex:1 1 100%}
  #tab-votes .pagination-selects select{width:100%;min-width:0}
}
@media (prefers-reduced-motion:reduce){.bootstrap-select>.dropdown-toggle::after,select{transition:none!important}}

/* ---------- 5) "In den Warenkorb" = einziger kräftiger Knopf (Produktseite + Produktlisten) ----------
   Verlauf der Theme-Farben (#0AB4FF -> #00D4F5), weiße Schrift, kein Glow (Variante C, 27.11.). */
/* html body + 2 ids: stärker als die Regeln in cubar-bundle.css (#product-offer #add-to-cart …) */
html body button[name="inWarenkorb"].btn-primary,
html body #product-offer #add-to-cart button[name="inWarenkorb"],
html body .cro-cart-button.btn-primary,
html body #result-wrapper .productbox .cro-buy-row .cro-cart-button.btn-primary{
  background:linear-gradient(90deg,#0AB4FF 0%,#00D4F5 100%)!important; border:0!important; box-shadow:none!important;
  color:#fff!important; font-weight:700!important;
}
html body button[name="inWarenkorb"].btn-primary *,html body #product-offer #add-to-cart button[name="inWarenkorb"] *,html body .cro-cart-button.btn-primary *{color:#fff!important;fill:currentColor}
html body button[name="inWarenkorb"].btn-primary:hover,html body #product-offer #add-to-cart button[name="inWarenkorb"]:hover,html body .cro-cart-button.btn-primary:hover,html body #result-wrapper .productbox .cro-buy-row .cro-cart-button.btn-primary:hover{background:linear-gradient(90deg,#009fe6 0%,#00bfdd 100%)!important}
/* Warenkorb-Symbol ist ein dunkles SVG-Bild: auf dem blauen Knopf weiß darstellen */
html body .cro-cart-button.btn-primary img,html body button[name="inWarenkorb"].btn-primary img{filter:brightness(0) invert(1)}
button[name="inWarenkorb"].btn-primary:focus-visible,.cro-cart-button.btn-primary:focus-visible{outline:2px solid #0AB4FF;outline-offset:2px}
button[name="inWarenkorb"].btn-primary:disabled,.cro-cart-button.btn-primary:disabled{opacity:.55}

/* ---------- 6) Feld "Ort" (Adresse, mit Autovervollständigung): Beschriftung war hinter dem Feld versteckt.
   Ist das Feld ausgefüllt, steht "Ort" wie bei allen anderen Feldern oben im Rahmen. ---------- */
.form-group.exclude-from-label-slide:has(.city_input){position:relative}
.form-group.exclude-from-label-slide:has(.city_input) .cc-address-typeahead,
.form-group.exclude-from-label-slide:has(.city_input) .twitter-typeahead{display:block!important;width:100%}
.form-group.exclude-from-label-slide:has(.city_input) > .d-flex > label{display:none}
.form-group.exclude-from-label-slide:has(.city_input.tt-input:not(:placeholder-shown)) > .d-flex > label{display:block;position:absolute;top:-8px;left:12px;z-index:3;margin:0;padding:0 4px!important;background:#fff;font-size:.75rem;line-height:1.2;color:#707070;pointer-events:none;width:auto!important;height:auto!important;clip:auto!important;clip-path:none!important;overflow:visible!important;white-space:nowrap}
