/* ==================================
   Quote Form Plugin - Cart Icon Shortcode
   Styling for [quote_cart_icon] shortcode
   ================================== */

.qfp-cart-icon-wrapper {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.qfp-cart-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
    position: relative;
}

.qfp-cart-icon-link:hover {
    opacity: 0.7;
}

.qfp-cart-icon-link svg {
    width: 28px;
    height: 28px;
    display: block;
    flex-shrink: 0;
}

.qfp-cart-icon-link svg path {
    fill: currentColor;
}

.qfp-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    line-height: 1;
    padding: 0 4px;
}

.qfp-cart-count:empty,
.qfp-cart-count[data-count="0"] {
    display: none;
}

.qfp-cart-text {
    font-size: 14px;
    white-space: nowrap;
    font-weight: 500;
}

/* Mobile */
@media (max-width: 768px) {
    .qfp-cart-icon-link svg {
        width: 24px;
        height: 24px;
    }

    .qfp-cart-text {
        font-size: 13px;
    }
}