/**
 * 2024 PrestaShop SA and Contributors
 * Free Shipping Amount Counter - CSS Styles
 */

/* ==========================================================================
   Product Page Shipping Box (Modern Store Integration)
   ========================================================================== */

.afsc-product-shipping-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fbf8f3;
    border: 1px solid #ede3d4;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 15px 0 20px 0;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.25s ease-in-out;
}

.afsc-product-shipping-box:hover {
    border-color: #dfceb7;
    box-shadow: 0 4px 14px rgba(184, 138, 76, 0.08);
}

.afsc-shipping-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.afsc-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: #f3eae0;
    color: #b88a4c;
    border-radius: 10px;
}

.afsc-icon-wrapper .afsc-custom-img {
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
}

.afsc-icon-wrapper .afsc-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.afsc-text-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.afsc-main-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #475569;
}

.afsc-main-message strong {
    color: #0f172a;
    font-weight: 700;
}

.afsc-sub-message {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}

.afsc-sub-message strong,
.afsc-sub-message .afsc-highlight {
    color: #b88a4c;
    font-weight: 700;
}

.afsc-free-reached {
    color: #15803d;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Progress Bar */
.afsc-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 2px;
}

.afsc-progress-track {
    flex: 1;
    height: 7px;
    background-color: #ede3d4;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.afsc-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #c59b5f 0%, #dfb77d 100%);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.afsc-progress-bar-complete {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%) !important;
}

.afsc-progress-percent {
    font-size: 11.5px;
    font-weight: 700;
    color: #8b6833;
    min-width: 32px;
    text-align: right;
}

/* ==========================================================================
   Legacy Module Classes (Cart, Checkout, Home)
   ========================================================================== */

.asa_main,
.asa_main_cp,
.asa_main_pp,
.asa-main-full-hp {
    display: block;
    line-height: initial;
}

.asa-main-full-hp ul,
.asa_main ul,
.asa_main_cp ul,
.asa_main_pp ul {
    list-style: none;
    padding: 0px;
    margin: 0;
}

.asa_main ul li,
.asa_main_cp ul li,
.asa_main_pp ul li,
.asa-main-full-hp ul li {
    display: inline-block;
    vertical-align: middle;
}

.asa_main ul li p,
.asa_main_cp ul li p,
.asa_main_pp ul li p,
.asa-main-full-hp ul li p {
    margin-bottom: 0px !important;
}
