/**
 * DropShipping Frontend Styles
 * All styles for dropShipping badges and notices
 */

/* Main badge styles */
.bb-dropship-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.625rem;
    border-radius: 0.75rem;
    background: #FBBF24;
    color: #1E1E1E;
    margin: 0.5rem 0;
}

/* Larger style for single product pages */
.bb-dropship-badge.bb-dropship-badge-large {
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    margin: 0;
    margin-bottom: 0.5rem;
    background: #FFDE88;
}

/* Cart page badge style */
.bb-dropship-badge.bb-dropship-badge-cart {
    margin: 0;
    background: #FBBF24;
    vertical-align: middle;
    max-width: fit-content;
    position: relative;
    z-index: 1;
    /* display: block; */
    clear: both;
}

/* Icon styles */
.bb-dropship-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.bb-dropship-icon img {
    width: 16px;
    height: 16px;
}

/* Larger icon for single product pages */
.bb-dropship-badge-large .bb-dropship-icon {
    width: 2rem;
    height: 2rem;
}

.bb-dropship-badge-large .bb-dropship-icon img {
    width: 24px;
    height: 24px;
}

/* Text styles */
.bb-dropship-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure cart item badges don't interfere with product images */
.woocommerce-cart-item__name .bb-dropship-badge-cart {
    position: static;
    float: none;
    clear: both;
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Prevent any absolute positioning issues */
.bb-dropship-badge-cart {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* Target the image within cart badges and override height */
.bb-dropship-badge-cart .bb-dropship-icon img {
    height: 16px !important;
    width: 16px !important;
    max-height: 16px !important;
    max-width: 16px !important;
    position: relative !important;
    top: 0 !important;
    margin: 0 !important;
}

/* Checkout notice styles */
.bb-dropship-checkout-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 0.5rem;
    background: #FEF7E0;
    border: 1px solid #FDE68A;
}

.bb-dropship-checkout-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}

.bb-dropship-checkout-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.bb-dropship-checkout-content {
    flex: 1;
}

.bb-dropship-checkout-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1E1E1E;
    line-height: 1.4;
}

