/* Free shipping cart popup */
#millea-fs-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;
    padding: 12px;
    box-sizing: border-box;
}

#millea-fs-modal.is-open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.millea-fs-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.millea-fs-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    max-width: 920px;
    width: 100%;
    max-height: min(88dvh, 920px);
    margin: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 18px 18px 16px;
    overflow: hidden;
}

.millea-fs-close {
    position: absolute;
    right: 10px;
    top: 10px;
    color: #454659;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
    z-index: 3;
}

.millea-fs-title {
    margin: 0 34px 6px 0;
    font-size: 18px;
    line-height: 1.2;
}

.millea-fs-sub {
    margin: 0 0 12px;
    color: #444;
    line-height: 1.45;
}

.millea-fs-highlight {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 10px;
    background: #A692A0;
    color: #fff;
    margin: 8px 0 14px;
    font-weight: 600;
}

.millea-fs-products {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.millea-fs-note {
    margin: 0 0 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.45;
}

.millea-fs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.millea-fs-item {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 10px;
    align-items: center;
    border: 1px solid #f1f1f1;
    border-radius: 10px;
    padding: 10px;
}

.millea-fs-thumb img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 10px;
}

.millea-fs-name {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.25;
}

.millea-fs-name a {
    text-decoration: none;
}

.millea-fs-price {
    margin: 0 0 8px;
    color: #333;
    font-weight: 600;
}

.millea-fs-btn {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 10px;
    background: #454659;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.millea-fs-btn:hover {
    opacity: 0.9;
    color: #fff;
}

@media (max-width: 767px) {
    #millea-fs-modal {
        padding: 10px;
    }

    .millea-fs-dialog {
        max-height: 92dvh;
        padding: 14px 14px 12px;
        border-radius: 12px;
    }

    .millea-fs-title {
        font-size: 16px;
        margin-right: 30px;
    }

    .millea-fs-sub,
    .millea-fs-note {
        font-size: 13px;
    }

    .millea-fs-highlight {
        margin: 6px 0 12px;
        font-size: 14px;
    }

    .millea-fs-products {
        padding: 10px;
    }

    .millea-fs-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .millea-fs-item {
        grid-template-columns: 72px 1fr;
        gap: 9px;
        padding: 9px;
    }

    .millea-fs-thumb img {
        width: 72px;
        height: 72px;
    }

    .millea-fs-name,
    .millea-fs-price {
        font-size: 13px;
    }

    .millea-fs-btn {
        font-size: 12px;
        padding: 7px 9px;
    }
}
