/**
 * WR Mini Cart — store-style cart icon + corner price badge.
 */
.wr-mini-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    z-index: 1000;
}

.wr-mini-cart__chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #94a3b8;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.wr-mini-cart__chip:hover {
    background: #f8fafc;
    border-color: #64748b;
    color: #020617;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

.wr-mini-cart[data-state="pending"] .wr-mini-cart__chip {
    border-color: #f97316;
    color: #c2410c;
    background: #fff7ed;
}

.wr-mini-cart__icon {
    display: block;
    flex-shrink: 0;
}

.wr-mini-cart__badge {
    position: absolute;
    top: -5px;
    right: -8px;
    min-width: 1.55rem;
    max-width: 4.2rem;
    height: 1.3rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}

.wr-mini-cart[data-state="pending"] .wr-mini-cart__badge {
    background: #ea580c;
}

.wr-mini-cart__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    max-width: 320px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    padding: 0.85rem;
}

.wr-mini-cart__summary {
    margin: 0 0 0.75rem;
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
    word-break: break-word;
}

.wr-mini-cart__actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.wr-mini-cart__btn {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #1e293b;
    cursor: pointer;
}

.wr-mini-cart__btn--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.wr-mini-cart__btn--primary:hover {
    background: #1d4ed8;
}

.wr-mini-cart__btn--link {
    background: transparent;
    border-color: transparent;
    color: #64748b;
    font-weight: 500;
}

.wr-mini-cart__btn--link:hover {
    color: #ef4444;
}
