﻿/* ==========================================================================
   Beautek Konfigurator Buybox Preview (?v=cfg)
   ========================================================================== */

.beautek-cfg-pills-banner {
    position: sticky;
    top: 0;
    z-index: 1040;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    background: #1f2a24;
    color: #fff;
    font-size: 0.8rem;
    font-family: Poppins, sans-serif;
    font-weight: 300;
    text-align: center;
}

.beautek-cfg-pills-banner strong { font-weight: 600; letter-spacing: 0.02em; }
.beautek-cfg-pills-banner code { font-family: inherit; font-weight: 600; color: #9fd0b5; }
.beautek-cfg-pills-banner a { color: #fff; text-decoration: underline; }
.beautek-cfg-pills-banner a:hover { color: #9fd0b5; }

/* Unten: groÃŸer Konfigurator weg â€“ Auswahl sitzt in der Buybox (Inputs bleiben im DOM) */
body.beautek-cfg-pills.beautek-cfg-buybox-ready #product-configurator,
body.beautek-cfg-pills.beautek-cfg-buybox-ready #product-configurator-button {
    display: none !important;
}

/* Buybox-AbstÃ¤nde wie bei normalen Artikeln (Menge + Warenkorb + PayPal) */
body.beautek-cfg-pills .beautek-cfg-buybox {
    margin: 0.15rem 0 0.65rem;
}

body.beautek-cfg-pills .beautek-cfg-buybox-group {
    margin-bottom: 0.7rem;
    padding-bottom: 0.65rem;
}

body.beautek-cfg-pills .product-offer .price_wrapper,
body.beautek-cfg-pills .product-offer .shipping-badges {
    margin-top: 0.35rem !important;
    margin-bottom: 0.5rem !important;
}

body.beautek-cfg-pills .product-offer div#add-to-cart {
    margin-top: 0.35rem !important;
    margin-bottom: 0.5rem !important;
}

body.beautek-cfg-pills .product-offer #add-to-cart .basket-form-inline {
    align-items: stretch;
}

body.beautek-cfg-pills .product-offer #add-to-cart .basket-form-inline > [class*="col"] {
    margin-bottom: 0 !important;
}

@media (min-width: 576px) {
    body.beautek-cfg-pills .product-offer #add-to-cart .basket-form-inline > [class*="col-sm-6"],
    body.beautek-cfg-pills .product-offer #add-to-cart .basket-form-inline > .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Leere ZubehÃ¶r-Accordion-Box nicht als Leerraum stehen lassen */
body.beautek-cfg-pills #additional-supplies:not(:has(.panel)),
body.beautek-cfg-pills #additional-supplies:empty,
body.beautek-cfg-pills #additional-supplies .svg-holder:only-child {
    display: none !important;
    margin: 0 !important;
    min-height: 0 !important;
}

body.beautek-cfg-pills .product-offer .rate-info-row {
    margin-top: 0.5rem !important;
    margin-bottom: 0.35rem !important;
}

body.beautek-cfg-pills .product-offer .stock-information {
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
}

/* PayPal Express unter dem Warenkorb sichtbar halten */
body.beautek-cfg-pills .product-offer #add-to-cart .paypal-buttons,
body.beautek-cfg-pills .product-offer #add-to-cart .ppc-standalone-buttons,
body.beautek-cfg-pills .product-offer #add-to-cart [id*="paypal"],
body.beautek-cfg-pills .product-offer #add-to-cart [class*="paypal-button"] {
    display: block !important;
    margin-top: 0.55rem;
    max-width: 100%;
}

body.beautek-cfg-pills .beautek-cfg-native-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.beautek-cfg-pills .beautek-cfg-hint-hidden,
body.beautek-cfg-pills .cfg-group-info .js-group-badge-checked,
body.beautek-cfg-pills .cfg-group-info .badge-info {
    display: none !important;
}

/* Buybox-Mount */
.beautek-cfg-buybox {
    margin: 0.35rem 0 1rem;
    font-family: Poppins, sans-serif;
}

.beautek-cfg-buybox-group {
    margin-bottom: 0.95rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e8e8e8;
}

.beautek-cfg-buybox-group:last-child {
    border-bottom: 0;
    margin-bottom: 0.25rem;
    padding-bottom: 0;
}

.beautek-cfg-buybox-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
    margin-bottom: 0.55rem;
}

.beautek-cfg-buybox-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #111;
}

.beautek-cfg-buybox-selected {
    font-size: 0.75rem;
    color: #666;
}

.beautek-cfg-buybox-selected em {
    font-style: normal;
    font-weight: 600;
    color: var(--btk-cfg-accent, #841853);
}

.beautek-cfg-buybox-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

/* Text-Pills (Optionen etc.) */
body.beautek-cfg-pills .beautek-cfg-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    padding: 0.55rem 0.85rem;
    border: 1px solid #e4e4e4;
    border-radius: 50px;
    background: #fff;
    color: #111;
    font-family: Poppins, sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

body.beautek-cfg-pills .beautek-cfg-pill.has-thumb {
    border-radius: 14px;
    padding: 0.4rem 0.75rem 0.4rem 0.4rem;
}

body.beautek-cfg-pills .beautek-cfg-pill-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 10px;
    flex: 0 0 36px;
}

body.beautek-cfg-pills .beautek-cfg-pill:hover {
    border-color: var(--btk-cfg-accent, #841853);
    color: var(--btk-cfg-accent, #841853);
}

body.beautek-cfg-pills .beautek-cfg-pill.is-active {
    border-color: var(--btk-cfg-accent, #841853);
    background: rgba(132, 24, 83, 0.06);
    box-shadow: inset 0 0 0 1px var(--btk-cfg-accent, #841853);
    color: var(--btk-cfg-accent, #841853);
}

body.beautek-cfg-pills .beautek-cfg-pill.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

body.beautek-cfg-pills .beautek-cfg-pill-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

body.beautek-cfg-pills .beautek-cfg-pill-title { font-weight: 600; }
body.beautek-cfg-pills .beautek-cfg-pill-meta {
    font-size: 0.7rem;
    font-weight: 400;
    color: #666;
}

/* Farb-Swatches: groÃŸe sichtbare Punkte */
body.beautek-cfg-pills .beautek-cfg-swatch {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 64px;
    padding: 0.2rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: Poppins, sans-serif;
}

body.beautek-cfg-pills .beautek-cfg-swatch-fill {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #eee center / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

body.beautek-cfg-pills .beautek-cfg-swatch:hover .beautek-cfg-swatch-fill {
    border-color: var(--btk-cfg-accent, #841853);
    transform: scale(1.04);
}

body.beautek-cfg-pills .beautek-cfg-swatch.is-active .beautek-cfg-swatch-fill {
    border-color: var(--btk-cfg-accent, #841853);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--btk-cfg-accent, #841853);
}

body.beautek-cfg-pills .beautek-cfg-swatch.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

body.beautek-cfg-pills .beautek-cfg-swatch-name {
    font-size: 0.65rem;
    font-weight: 500;
    color: #444;
    text-align: center;
    line-height: 1.2;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.beautek-cfg-pills .beautek-cfg-swatch.is-active .beautek-cfg-swatch-name {
    color: var(--btk-cfg-accent, #841853);
    font-weight: 600;
}

body.beautek-cfg-pills .beautek-cfg-swatch-fill.is-white { background-color: #fff; }
body.beautek-cfg-pills .beautek-cfg-swatch-fill.is-beige { background-color: #c4b8a8; }
body.beautek-cfg-pills .beautek-cfg-swatch-fill.is-grau { background-color: #7a7a7a; }
body.beautek-cfg-pills .beautek-cfg-swatch-fill.is-dunkelgrau { background-color: #3f3f3f; }
body.beautek-cfg-pills .beautek-cfg-swatch-fill.is-schwarz { background-color: #111; }
body.beautek-cfg-pills .beautek-cfg-swatch-fill.is-bordeaux { background-color: #6b1f3a; }
body.beautek-cfg-pills .beautek-cfg-swatch-fill.is-taupe { background-color: #8a7a6d; }
body.beautek-cfg-pills .beautek-cfg-swatch-fill.is-beton-hell { background-color: #c8c6c2; }
body.beautek-cfg-pills .beautek-cfg-swatch-fill.is-beton-dunkel { background-color: #6e6c69; }
body.beautek-cfg-pills .beautek-cfg-swatch-fill.is-eiche { background-color: #c49a6c; }
body.beautek-cfg-pills .beautek-cfg-swatch-fill.is-fallback { background: #d9d9d9; }
body.beautek-cfg-pills .beautek-cfg-swatch-fill.has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* FuÃŸgestell etc.: Bild-Tiles */
body.beautek-cfg-pills .beautek-cfg-tile {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    width: 96px;
    padding: 0.35rem;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-family: Poppins, sans-serif;
    transition: border-color 0.15s, box-shadow 0.15s;
}

body.beautek-cfg-pills .beautek-cfg-tile:hover {
    border-color: var(--btk-cfg-accent, #841853);
}

body.beautek-cfg-pills .beautek-cfg-tile.is-active {
    border-color: var(--btk-cfg-accent, #841853);
    box-shadow: inset 0 0 0 1px var(--btk-cfg-accent, #841853);
}

body.beautek-cfg-pills .beautek-cfg-tile.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

body.beautek-cfg-pills .beautek-cfg-tile-img,
body.beautek-cfg-pills .beautek-cfg-tile-ph {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
    background: #f6f6f6;
}

body.beautek-cfg-pills .beautek-cfg-tile-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #999;
}

body.beautek-cfg-pills .beautek-cfg-tile-name {
    margin-top: 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
    color: #222;
    text-align: center;
}

body.beautek-cfg-pills .beautek-cfg-tile-meta {
    font-size: 0.62rem;
    color: #777;
    text-align: center;
}

body.beautek-cfg-pills .beautek-cfg-tile.is-active .beautek-cfg-tile-name {
    color: var(--btk-cfg-accent, #841853);
}

/* Plugin: ohne Theme-Variable Warenkorb ggf. aus Sidebar – nach Move unsichtbar halten */
body.beautek-cfg-pills.beautek-cfg-buybox-ready #product-configuration-sidebar > #add-to-cart,
body.beautek-cfg-pills.beautek-cfg-buybox-ready #product-configurator #add-to-cart {
    display: none !important;
}

body.beautek-cfg-pills.beautek-cfg-buybox-ready .product-offer #add-to-cart {
    display: block !important;
}

