/* --- WFS Shipping Weight Progress Bar Styles --- */

.wfs-progress-bar-wrapper {
    margin-bottom: 2em;
    padding: 1em;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

#wfs-shipping-progress-bar-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wfs-progress-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    margin-bottom: 8px;
    color: #555;
}

.wfs-progress-bar-track {
    position: relative;
    width: 100%;
    height: 20px;
    background-color: #e9e9e9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.wfs-progress-bar-fill {
    height: 100%;
    width: 0%;
    box-shadow: inset 0 -1px 1px rgba(0,0,0,0.15);
    border-radius: 10px;
    /* *** 關鍵修改點：動畫現在同時作用於寬度和背景位置 *** */
    transition: width 0.5s ease-out, background-position 0.5s ease-out;
    position: relative;
    
    /* *** 關鍵修改點：定義一個超長的漸層背景 *** */
    background-size: 300% 100%; /* 將背景寬度設為 300% */
    background-image: linear-gradient(to right, #5cb85c 0%, #f0ad4e 50%, #d9534f 100%);
    background-position: 0% 50%; /* 初始位置在最左邊 (綠色) */
}


/* --- 圖示相關樣式 --- */

.wfs-tier-icons-container {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    position: relative;
}

.wfs-tier-icon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85em;
    color: #444;
    cursor: help;
}

.wfs-tier-icon svg,
.wfs-tier-icon > span:not(.wfs-tier-tooltip) {
    transition: opacity 0.3s ease-in-out;
}

.wfs-tier-icon svg {
    width: 24px;
    height: 24px;
}

.wfs-tier-icon.is-overweight > svg,
.wfs-tier-icon.is-overweight > span:not(.wfs-tier-tooltip) {
    opacity: 0.4;
}

.wfs-tier-icon .wfs-tier-tooltip {
    visibility: hidden;
    min-width: 140px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.wfs-tier-icon:hover .wfs-tier-tooltip {
    visibility: visible;
    opacity: 1;
}