/**
 * Versandkosten-Fortschrittsbalken Styles 1.1.3 — webpowers UG
 */

.wp-fsb {
    /* Unter Consent-/Cookie-Bannern bleiben (die meist z-index >= 2000 nutzen).
       1030 entspricht dem Bootstrap-Bereich für fixierte Elemente. */
    z-index: 1030;
    width: 100%;
    background: #0d6efd;
    color: #fff;
    box-sizing: border-box;
}

.wp-fsb--top {
    position: relative;
}

.wp-fsb--sticky-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.wp-fsb__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
}

.wp-fsb__content {
    flex: 1;
    min-width: 0;
}

.wp-fsb__msg {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.wp-fsb__track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.wp-fsb__fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
    transition: width 0.4s ease;
}

.wp-fsb--reached .wp-fsb__fill {
    background: #2ecc71;
}

.wp-fsb__cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wp-fsb__cart-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Platz schaffen, wenn die Leiste unten fixiert ist */
body.wp-fsb-active--sticky-bottom {
    padding-bottom: 64px;
}

body.wp-fsb-noscroll {
    overflow: hidden;
}

/* --- Drawer ------------------------------------------------------------- */

.wp-fsb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1040;
}

.wp-fsb-overlay--open {
    opacity: 1;
}

.wp-fsb-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 360px;
    max-width: 90vw;
    background: #fff;
    color: #333;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 1041;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.wp-fsb-drawer[hidden],
.wp-fsb-overlay[hidden] {
    display: none !important;
}

.wp-fsb-drawer--open {
    transform: translateX(0);
}

.wp-fsb-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
}

.wp-fsb-drawer__title {
    font-size: 16px;
    font-weight: 700;
}

.wp-fsb-drawer__close {
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0 4px;
}

.wp-fsb-drawer__close:hover {
    color: #000;
}

.wp-fsb-drawer__body {
    flex: 1;
    min-height: 0;
    min-width: 0;
    overflow-y: auto;
    padding: 16px 18px;
}

.wp-fsb-drawer__empty {
    font-size: 14px;
}

.wp-fsb-drawer__cartclone {
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
}

.wp-fsb-drawer__cartclone .table-responsive {
    max-height: none;
    overflow: visible;
}

.wp-fsb-drawer__cartclone table {
    width: 100%;
    table-layout: fixed;
}

.wp-fsb-drawer__cartclone td {
    overflow-wrap: anywhere;
    white-space: normal !important;
}

.wp-fsb-drawer__cartclone td:last-child {
    width: 30%;
}

.wp-fsb-drawer__cartclone .col,
.wp-fsb-drawer__cartclone .col-auto {
    min-width: 0;
    max-width: 100%;
}

.wp-fsb-drawer__cartclone img {
    max-width: 100%;
    height: auto;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 768px) {
    .wp-fsb__inner {
        padding: 8px 12px;
        gap: 10px;
    }

    .wp-fsb__msg {
        font-size: 12.5px;
    }
}

/* --- Reduced Motion ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .wp-fsb__fill,
    .wp-fsb-overlay,
    .wp-fsb-drawer {
        transition: none !important;
    }
}

/* ReefKing checkout: accessible return paths and shipping calculator. */
#wp-fsb-checkout-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 24px;padding:14px 16px;border:1px solid var(--rk-border-strong,#3d3d37);border-radius:10px;background:var(--rk-commerce-surface,#151614)}
#wp-fsb-checkout-nav>div{display:flex;gap:18px;flex-wrap:wrap}
#wp-fsb-checkout-nav a{color:var(--rk-primary,#c6a15b);text-decoration:underline;text-underline-offset:3px}
#wp-fsb-checkout-nav form{display:flex;gap:8px;flex:0 1 360px;margin:0;max-width:100%}
#wp-fsb-checkout-nav input{color-scheme:dark;min-width:0;flex:1;border:1px solid var(--rk-border-strong,#3d3d37);border-radius:6px;padding:8px 12px;background:#090a09;color:#f2efe7}
#wp-fsb-checkout-nav button{border:0;border-radius:6px;padding:8px 14px;background:#c6a15b;color:#090a09}
#wp-fsb-shipping-notice{padding:14px 16px;margin:0 0 18px;border:1px solid #6f5a32;border-radius:8px;background:#211d15;color:#f2efe7;line-height:1.55}
html body #shipping-estimate-form input#plz[name="plz"],html body #shipping-estimate-form select#country[name="land"]{background-color:#151614!important;color:#f2efe7!important;border:1px solid #6b685f!important;box-shadow:none!important;min-height:44px;color-scheme:dark}
html body #shipping-estimate-form input#plz[name="plz"]::placeholder{color:#b9b6ae;opacity:1}
html body #shipping-estimate-form select#country[name="land"]{appearance:none!important;-webkit-appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%23c6a15b' stroke-width='2'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 14px center!important;background-size:14px 10px!important;padding-right:40px!important}
#shipping-estimate-form input:focus,#shipping-estimate-form select:focus,#wp-fsb-checkout-nav :focus-visible{outline:2px solid #ddbd78!important;outline-offset:2px}
#shipping-estimate-form input:-webkit-autofill{-webkit-text-fill-color:#f2efe7!important;-webkit-box-shadow:0 0 0 1000px #151614 inset!important}
@media(max-width:575px){#wp-fsb-checkout-nav form{flex-basis:100%}#wp-fsb-checkout-nav{padding:12px}}

html body #shipping-estimate-form[id="shipping-estimate-form"] .form-group label[for="plz"],html body #shipping-estimate-form[id="shipping-estimate-form"] .form-group label[for="plz"]::before,html body #shipping-estimate-form[id="shipping-estimate-form"] .form-group label[for="plz"]::after{background-color:#151614!important;color:#b9b6ae!important}
