
/* Theme Variablen für Brillshop Subtheme überschreiben */
:root {
    --primary-color: #E06C00;
    --primary-color-rgb: 224, 108, 0;
}

#header .logo-main{
    max-width: 250px;
}

/* Preise für Gäste ausblenden und "Preis nach Login" anzeigen */
body.usergroup-gast .price-box .price,
body.usergroup-gast .price-box .old-price {
    display: none !important;
}

body.usergroup-gast .price-box .price-label {
    display: none !important;
}

body.usergroup-gast .price-box .price-wrapper .price::after {
    display: none !important;
}

body.usergroup-gast .price-box .product-price-additional-info,
body.usergroup-gast .price-box .msrp-price-container,
body.usergroup-gast .price-box .savings-badge {
    display: none !important;
}

body.usergroup-gast .price-box .final-price::after {
    content: 'Preis nach Login';
    font-style: italic;
    color: #000;
    font-size: 1rem;
    font-weight: bold;
}

body.usergroup-gast .products .price-box .normal-price::after{
    content: 'Preis nach Login';
    font-style: italic;
    color: #000;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 0.5rem;
    display: inline-block;
}

body.usergroup-gast .price-tax-switch {
    display: none !important;
}

/* Warenkorb-Buttons und Mengenauswahl für Gäste deaktivieren.
   Das Control in Produktlisten und Slidern traegt kein data-addto, es rendert als
   <button type="submit"> (Einzel-SKU) bzw. als <a> auf die ADS (Varianten und nicht
   bestellbare Artikel) - siehe HyvaTooler Hyva_BssSimpledetailconfigurable und
   Magento_Catalog product/list/item.phtml. Der Scope auf .product-item ist notwendig,
   sonst wuerden auch Suche, Newsletter und Login-Formulare deaktiviert. */
body.usergroup-gast [data-addto="cart"],
body.usergroup-gast [x-data^="initQtyField"],
body.usergroup-gast [x-data^="initQtyField"] button,
body.usergroup-gast [x-data^="initQtyField"] input,
body.usergroup-gast .product-item button[type="submit"],
body.usergroup-gast .product-item a.btn-icon-only {
    pointer-events: none;
    opacity: 0.4;
    cursor: not-allowed;
    user-select: none;
}


/* Zahlungsart: wird per JS gewaehlt (Hyva_Checkout/templates/payment/auto-select.phtml)
   und hier nur noch informativ angezeigt - aber nur, wenn es ohnehin nur eine
   Zahlungsart gibt.
   Der Radio-Button entfaellt, das Label ist nicht klickbar. pointer-events darf
   nur auf dem Label liegen, nicht auf dem Wrapper: darunter steht der Block der
   Zahlungsart (z. B. Kreditkartenformular), der klickbar bleiben muss.
   Das JS klickt den Input direkt per .click() - das funktioniert trotz
   display: none und pointer-events: none. */
#payment-method-list > div:only-child > label {
    pointer-events: none;
    cursor: default;
}

#payment-method-list > div:only-child > label input[type="radio"] {
    display: none;
}

/* Rabatt Badge ausblenden */
.savings-badge{
    display: none !important;
}