.mcc-cart-popup {
    box-sizing: border-box;
    width: min(58rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    padding: clamp(1rem, 3.5vw, 2.25rem);
    color: #152238;
    background: #fff;
    border: 1px solid #d3dae4;
    border-radius: .75rem;
    box-shadow: 0 16px 48px #10182840;
    overflow: auto;
}
.mcc-cart-popup::backdrop { background: #10182885; }
.mcc-cart-popup [hidden] { display: none !important; }
.mcc-cart-popup h2 { margin: 0 3rem 1.45rem 0; color: #187642; font-size: clamp(1.1rem, 2.3vw, 1.36rem); line-height: 1.35; }
.mcc-popup-close {
    position: absolute;
    inset: .5rem .5rem auto auto;
    width: 44px;
    height: 44px;
    padding: 0;
    color: inherit;
    background: #fff;
    border: 1px solid #d3dae4;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
}
.mcc-popup-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
.mcc-popup-item { display: flex; align-items: center; gap: 1rem; overflow-wrap: anywhere; }
.mcc-popup-item img {
    flex: 0 0 auto;
    width: clamp(4.5rem, 18vw, 9rem);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: .4rem;
    background: #f5f7fa;
}
.mcc-popup-name { margin: 0 0 .4rem; font-weight: 650; line-height: 1.35; }
.mcc-popup-item strong { font-size: 1.2rem; }
.mcc-popup-summary { padding-inline-start: 1.5rem; border-inline-start: 1px solid #e0e5ed; }
.mcc-popup-summary p { margin: 0 0 .5rem; }
.mcc-popup-summary dl { margin: 0 0 1rem; }
.mcc-popup-summary dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .16rem 0; font-weight: 650; }
.mcc-popup-summary dd { margin: 0; text-align: end; }
.mcc-popup-actions { display: grid; gap: .45rem; }
.mcc-popup-actions a, .mcc-popup-actions button {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: .55rem;
    border: 1px solid #086ad8;
    border-radius: .35rem;
    font: inherit;
    font-weight: 650;
    text-align: center;
    text-decoration: none;
}
.mcc-popup-actions a { color: #fff; background: #086ad8; }
.mcc-popup-actions a:hover { color: #fff; background: #0758b4; }
.mcc-popup-actions button:disabled { color: #465367; border-color: #c9d3e1; background: #f2f5f9; }
.mcc-popup-actions small { color: #465367; text-align: center; }
.mcc-popup-recommendations { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #e0e5ed; }
.mcc-popup-recommendations h3 { margin: 0 0 .8rem; font-size: 1.2rem; }
.mcc-popup-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; list-style: none; margin: 0; padding: 0; }
.mcc-popup-grid li { border: 1px solid #e0e5ed; border-radius: .4rem; min-width: 0; }
.mcc-popup-grid a { display: block; height: 100%; color: inherit; text-decoration: none; }
.mcc-popup-grid a:hover .mcc-popup-card-name { text-decoration: underline; }
.mcc-popup-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: .35rem .35rem 0 0; background: #f5f7fa; }
.mcc-popup-card-detail { display: grid; gap: .25rem; padding: .6rem; overflow-wrap: anywhere; font-size: .875rem; }
.mcc-popup-card-name { font-weight: 650; }
.mcc-popup-card-meta { display: flex; flex-wrap: wrap; gap: .35rem .55rem; }
.mcc-popup-stars { color: #955500; white-space: nowrap; }
.mcc-download-badge { display: inline-flex; padding: .2rem .5rem; margin: 0 0 .25rem; border-radius: .3rem; background: #eaf7ed; color: #17633a; font-size: .82rem; font-weight: 650; }
.mcc-popup-status:empty { display: none; }
@media (max-width: 640px) {
    .mcc-popup-columns { grid-template-columns: 1fr; gap: .9rem; }
    .mcc-popup-summary { padding: .9rem 0 0; border-inline-start: 0; border-top: 1px solid #e0e5ed; }
    .mcc-popup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
