.ait-mf-product-action{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin:12px 0 4px}
.ait-mf-product-action .ait-mf-toggle{margin:0}
.ait-mf-product-action .ait-mf-toggle.is-saved{background:#eef8e9!important;border-color:#72a74b!important;color:#467b30!important}
/* v1.0.1: product page only. Keep the normal button unchanged; soften hover on 'Remove from favorites'. */
.ait-mf-product-action .ait-mf-toggle.is-saved:hover,
.ait-mf-product-action .ait-mf-toggle.is-saved:focus-visible{
    background:#e4f2db!important;
    background-image:none!important;
    border-color:#60983b!important;
    color:#386c24!important;
    box-shadow:none!important;
    text-shadow:none!important;
    filter:none!important;
}
.ait-mf-product-action .ait-mf-toggle.is-saved:focus-visible{
    outline:2px solid #75a957;
    outline-offset:2px;
}

.ait-mf-message,.ait-mf-alert{color:#b42318;font-size:.85rem}
.ait-mf-account{margin-bottom:24px}
.ait-mf-account h2{margin:0 0 22px;font-size:1.45rem}
/* v1.0.3: A stable three-column layout avoids stretching one remaining favorite
   across the entire My Account content area. Two columns on tablets and one on phones. */
.ait-mf-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}
@media (max-width:1024px){
    .ait-mf-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:767px){
    .ait-mf-grid{grid-template-columns:minmax(0,1fr);}
}

.ait-mf-card{border:1px solid #e2e6ec;border-radius:10px;padding:14px;background:#fff;display:flex;flex-direction:column;min-width:0}
.ait-mf-image{height:180px;display:flex;justify-content:center;align-items:center;margin-bottom:12px;background:#fff;border-radius:6px;overflow:hidden}
.ait-mf-image img{width:100%;height:100%;object-fit:contain}
.ait-mf-image.is-missing{background:#f4f6f8;color:#8393a3;font-size:56px}
.ait-mf-card h3{font-size:1rem;margin:0 0 6px;line-height:1.45;overflow-wrap:anywhere}
.ait-mf-card h3 a{color:inherit}
.ait-mf-sku{font-size:.8rem;color:#64748b}
.ait-mf-price{margin:7px 0 12px;font-weight:700}
.ait-mf-unavailable{font-size:.82rem;color:#64748b;line-height:1.45}
/* Account cards only — consistent, clearly legible action buttons.
   Do not change the legacy-like button on the single product page. */
.ait-mf-account .ait-mf-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
}
.ait-mf-account .ait-mf-actions > .button {
    box-sizing: border-box;
    display: inline-flex !important;
    float: none !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    height: auto;
    margin: 0 !important;
    padding: 9px 7px !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-align: center;
    white-space: normal;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    opacity: 1;
    transition: background-color .17s ease, border-color .17s ease, color .17s ease, transform .17s ease;
}
/* View: calm outline; Buy: clear green main action. */
.ait-mf-account .ait-mf-actions > a.ait-mf-view {
    background: #f8fafc !important;
    border-color: #c8d4de !important;
    color: #3d5369 !important;
}
.ait-mf-account .ait-mf-actions > a.ait-mf-view:hover,
.ait-mf-account .ait-mf-actions > a.ait-mf-view:focus-visible {
    background: #edf3f7 !important;
    border-color: #9aafc0 !important;
    color: #263e54 !important;
}
.ait-mf-account .ait-mf-actions > a.ait-mf-buy {
    background: #6ca541 !important;
    border-color: #6ca541 !important;
    color: #fff !important;
}
.ait-mf-account .ait-mf-actions > a.ait-mf-buy:hover,
.ait-mf-account .ait-mf-actions > a.ait-mf-buy:focus-visible {
    background: #578b30 !important;
    border-color: #578b30 !important;
    color: #fff !important;
}
/* With no buy action, let the view button fill the whole row. */
.ait-mf-account .ait-mf-actions > a.ait-mf-view:only-of-type {
    grid-column: 1 / -1;
}
/* Remove is a separate, full-width secondary/destructive action. */
.ait-mf-account .ait-mf-actions > button.ait-mf-remove {
    grid-column: 1 / -1;
    background: #fff7f7 !important;
    border-color: #e9c6c6 !important;
    color: #9b4141 !important;
    cursor: pointer;
}
.ait-mf-account .ait-mf-actions > button.ait-mf-remove:hover,
.ait-mf-account .ait-mf-actions > button.ait-mf-remove:focus-visible {
    background: #fce9e9 !important;
    border-color: #ce8989 !important;
    color: #822d2d !important;
}
.ait-mf-account .ait-mf-actions > .button:focus-visible {
    outline: 2px solid #5d9845;
    outline-offset: 2px;
}
.ait-mf-account .ait-mf-actions > button.ait-mf-remove:disabled {
    opacity: .65;
    cursor: wait;
}
@media (prefers-reduced-motion: reduce) {
    .ait-mf-account .ait-mf-actions > .button { transition: none; }
}
.ait-mf-empty{padding:18px;background:#f7f8fa;border:1px solid #e7eaf0;border-radius:8px}
