/* PawfectDose Cart Upsell v1.3 */
:root { --pdu-primary: #D4622A; }

/* ── Shipping bar ── */
.bwb-shipping-bar {
    padding: 10px 14px 12px;
    background: #fff;
    border-bottom: 1px solid #E5E1DA;
}
.bwb-shipping-text {
    font-size: 12px;
    font-weight: 500;
    color: #3D2F2A;
    text-align: center;
    margin: 0 0 8px;
    line-height: 1.4;
}
.bwb-shipping-text strong { color: var(--pdu-primary); }
.bwb-shipping-track {
    position: relative;
    height: 8px;
    background: #E5E1DA;
    border-radius: 99px;
    overflow: visible;
    margin-bottom: 6px;
}
.bwb-shipping-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b6934, #5a9e4a);
    border-radius: 99px;
    transition: width .5s ease;
    max-width: 100%;
    position: relative;
}
.bwb-shipping-dot {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px; height: 20px;
    background: #fff;
    border: 2px solid #3b6934;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    transition: border-color .3s;
}
.bwb-shipping-dot svg { width: 8px; height: 8px; opacity: 0; transition: opacity .3s; }
.bwb-shipping-badge {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    font-size: 11px; font-weight: 600; color: #8E827C; margin-top: 6px;
}
.bwb-lock img { width: 14px; height: 14px; vertical-align: middle; }
.bwb-check {
    width: 18px; height: 18px; background: #3b6934;
    border-radius: 50%; display: none;
    align-items: center; justify-content: center;
}
.bwb-check svg { width: 10px; height: 10px; }
.bwb-shipping-bar.is-unlocked .bwb-shipping-text strong { color: #3b6934; }
.bwb-shipping-bar.is-unlocked .bwb-shipping-dot { border-color: #3b6934; }
.bwb-shipping-bar.is-unlocked .bwb-shipping-dot svg { opacity: 1; }
.bwb-shipping-bar.is-unlocked .bwb-shipping-badge { color: #3b6934; }
.bwb-shipping-bar.is-unlocked .bwb-lock  { display: none; }
.bwb-shipping-bar.is-unlocked .bwb-check { display: flex; }

/* ── Upsell wrapper ── */
.pdu-upsell-wrap {
    border-top: 1px solid #E5E1DA;
    background: #fff;
}
.pdu-upsell-header {
    background: var(--pdu-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    padding: 9px 16px;
}

/* ── Vertical item list ── */
.pdu-upsell-list {
    display: flex;
    flex-direction: column;
}
.pdu-upsell-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    align-items: flex-start;
    border-bottom: 1px solid #E5E1DA;
}
.pdu-upsell-item:last-child { border-bottom: none; }

.pdu-upsell-img-wrap {
    width: 72px; height: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E5E1DA;
    background: #faf9f7;
}
.pdu-upsell-img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 4px;
    display: block;
}
.pdu-upsell-info { flex: 1; min-width: 0; }
.pdu-upsell-name {
    font-size: 12px; font-weight: 700;
    color: #3D2F2A; line-height: 1.3; margin-bottom: 4px;
}
.pdu-upsell-prices {
    display: flex; align-items: baseline; gap: 5px;
    flex-wrap: wrap; margin-bottom: 7px;
}
.pdu-price { font-size: 13px; font-weight: 800; color: #3D2F2A; }
.pdu-old   { font-size: 11px; color: #8E827C; text-decoration: line-through; }
.pdu-save  { font-size: 10px; font-weight: 700; color: #3b6934; }
.pdu-variants { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 7px; }
.pdu-var-sel {
    font-size: 11px;
    border: 1px solid #E5E1DA;
    border-radius: 5px;
    padding: 3px 7px;
    color: #3D2F2A;
    background: #fff;
    cursor: pointer;
}
.pdu-add-btn {
    display: block; width: 100%;
    background: #3D2F2A; color: #fff;
    border: none; border-radius: 5px;
    padding: 8px 10px;
    font-size: 10px; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase;
    cursor: pointer; font-family: inherit;
    transition: background .2s, opacity .2s;
}
.pdu-add-btn:hover   { background: #2a1e19; }
.pdu-add-btn.loading { opacity: .55; pointer-events: none; }

/* ── Guarantee ── */
.bwb-guarantee {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 10px 14px 12px;
    background: #faf9f7;
    border-top: 1px solid #E5E1DA;
    font-size: 11px; color: #8E827C;
    line-height: 1.45; font-style: italic;
}
.bwb-guarantee-icon {
    width: 18px; height: 18px;
    flex-shrink: 0; margin-top: 1px;
    color: var(--pdu-primary);
}
