/**
 * Free Shipping Notice Widget Styles
 * Integrates with Shofy theme's design system via CSS custom properties
 */

/* Base widget container */
.fsn-widget {
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 8px;
    background: rgba(81, 144, 251, 0.06);
    font-size: 13px;
    line-height: 1.5;
    font-family: inherit;
}

/* Widget header - contains icon and text */
.fsn-widget__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* Emoji icon */
.fsn-widget__icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

/* Motivational text */
.fsn-widget__text {
    color: var(--tp-common-black, #010f1c);
    flex: 1;
}

/* Strong tags within motivational text */
.fsn-widget__text strong {
    font-weight: 600;
    color: inherit;
}

/* Progress bar background track */
.fsn-widget__bar {
    width: 100%;
    height: 8px;
    background: var(--tp-grey-1, #f3f3f3);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

/* Progress bar fill - animates width on load */
.fsn-widget__fill {
    height: 100%;
    background: var(--tp-theme-primary, #5190fb);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Success state modifier - all milestones met */
.fsn-widget--success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    margin-bottom: 0;
}

/* Success state text - green color */
.fsn-widget--success .fsn-widget__text {
    color: #15803d;
    font-weight: 500;
}

/* Success state - no margin below header (no bar) */
.fsn-widget--success .fsn-widget__header {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .fsn-widget {
        font-size: 12px;
        padding: 10px 12px;
    }

    .fsn-widget__icon {
        font-size: 14px;
    }
}
