/* Domain-Switcher Basis-Styles */

.wsc-domain-switcher {
    display: flex;
    align-items: center;
}

.wsc-domain-switcher__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wsc-domain-switcher__item {
    display: inline-flex;
}

.wsc-domain-switcher__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    font-size: 0.875rem;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.wsc-domain-switcher__link:hover {
    background-color: rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
}

.wsc-domain-switcher__flag {
    font-size: 1.1em;
    line-height: 1;
}

.wsc-domain-switcher__name {
    white-space: nowrap;
}

/* Header-Wrapper */
.wsc-domain-switcher-header-wrapper {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.wsc-domain-switcher-header-wrapper .wsc-domain-switcher {
    font-size: 0.8rem;
}

/* Warenkorb-Hinweis (Offcanvas-Cart und Buy-Widget auf Produktseite) */
.wsc-cart-hint {
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-left: 3px solid #6c757d;
    border-radius: 0 4px 4px 0;
    font-size: 0.8rem;
}

.wsc-cart-hint__title {
    font-weight: 600;
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
}

.wsc-cart-hint__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.wsc-cart-hint__item {
    display: block;
}

.wsc-cart-hint__link {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem;
    color: inherit;
    text-decoration: none;
}

.wsc-cart-hint__link:hover {
    color: inherit;
    text-decoration: underline;
}

.wsc-cart-hint__flag {
    font-size: 1rem;
    line-height: 1;
}

.wsc-cart-hint__name {
    font-weight: 600;
}

.wsc-cart-hint__ships-to {
    color: #6c757d;
    font-size: 0.75rem;
    flex-basis: 100%;
    padding-left: 1.4rem;
}

.wsc-cart-hint__country {
    display: inline;
}

.wsc-cart-hint__country:not(:last-child)::after {
    content: ', ';
}

/* Modifier: Buy-Widget-Variante auf der Produktseite */
.wsc-cart-hint--buy-widget {
    margin-top: 0.75rem;
    margin-bottom: 0;
    border-left-color: var(--bs-primary, #0d6efd);
}

/* Footer-Wrapper */
.wsc-domain-switcher-footer-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wsc-domain-switcher-footer-wrapper .wsc-domain-switcher__link {
    color: inherit;
    opacity: 0.8;
}

.wsc-domain-switcher-footer-wrapper .wsc-domain-switcher__link:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   Geo-Banner (sticky oben, per JS eingeblendet nach Seitenload)
   ============================================================ */

.wsc-geo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: #e8f4fd;
    border-bottom: 1px solid #bee3f8;
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.wsc-geo-banner__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.wsc-geo-banner__flag {
    font-size: 1.25em;
    line-height: 1;
    flex-shrink: 0;
}

.wsc-geo-banner__text {
    flex: 1;
    font-size: 0.875rem;
    min-width: 0;
}

.wsc-geo-banner__link {
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.wsc-geo-banner__close {
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
    color: inherit;
    opacity: 0.55;
    margin-left: auto;
    flex-shrink: 0;
}

.wsc-geo-banner__close:hover {
    opacity: 1;
}

@media (max-width: 575px) {
    .wsc-geo-banner__text {
        flex-basis: 100%;
        order: 2;
    }
    .wsc-geo-banner__link {
        order: 3;
    }
    .wsc-geo-banner__close {
        order: 1;
        margin-left: auto;
    }
}
