.mr-duo { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mr-duo-photo {
    display: grid; place-items: center; overflow: hidden; aspect-ratio: 1;
    margin: 0 0 1em; border-radius: 14px; background: #f1f2f5;
}
.mr-duo-photo img, .woocommerce ul.products li.product .mr-duo-photo img {
    display: block; width: 100%; height: 100%; object-fit: contain; margin: 0;
}
.mr-duo h3 { margin: 0 0 .35em; font: 650 clamp(16px, 1.35vw, 23px)/1.18 var(--display); }
.mr-duo-card-price { margin: 0 0 12px; font-weight: 600; }
.mr-duo-choose { margin-top: auto; }
.mr-duo-choose summary, .mr-duo-config button[type=submit] {
    box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; max-width: 100%; padding: 9px clamp(10px, 1.2vw, 18px);
    border: 0; border-radius: 32px; background: var(--blue); color: white;
    font: 600 clamp(.85rem, 1vw, 1rem)/1.25 var(--display); cursor: pointer;
}
.mr-duo-choose summary { list-style: none; }
.mr-duo-choose:not([open]) summary::after { position: absolute; inset: 0; content: ''; }
.mr-duo-choose summary::-webkit-details-marker { display: none; }
.mr-duo-config [hidden] { display: none !important; }
.mr-duo-dialog {
    box-sizing: border-box; width: min(420px, calc(100% - 24px)); margin: auto; padding: 0;
    max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
    border: 0; border-radius: 21px; color: #151823; box-shadow: 0 22px 84px #10182c35;
}
.mr-duo-dialog::backdrop { background-color: #0b132884; }
.mr-duo-config { padding: clamp(18px, 4vw, 28px); background: #fff; }
.mr-duo-choose[open] .mr-duo-config { padding: 12px 0; }
.mr-duo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mr-duo-head h3 { margin: 0; font: 660 clamp(24px, 5vw, 34px)/1.12 var(--display); letter-spacing: -.035em; }
.mr-duo-close {
    display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 0;
    border-radius: 50%; background: #f2f3f6; color: #202430; font-size: 24px; cursor: pointer;
}
.mr-duo-config > p { margin: 2px 0 20px; color: #535968; font-size: 15px; }
.mr-duo-config form, .mr-duo-config label { display: grid; }
.mr-duo-config form { gap: 15px; }
.mr-duo-config label { gap: 5px; font-weight: 600; font-size: 14px; }
.mr-duo-config select {
    min-width: 0; width: 100%; height: 46px; padding: 0 10px; border: 1px solid #adb3c0;
    border-radius: 9px; background: #fff; color: #151823; font: 400 16px/1.3 var(--display);
}
.mr-duo-config select:disabled { color: #535968; background: #f5f5f7; }
.mr-duo-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px; border-top: 1px solid #dde0e6; padding-top: 14px; }
.mr-duo-config button[type=submit] { width: 100%; background: var(--blue); }
.mr-duo-config button[type=submit]:disabled { opacity: .7; }
.mr-duo-notice:empty { display: none; }
.mr-duo-notice { line-height: 1.4; }
.mr-duo-notice a { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
    .mr-duo-dialog[open] { animation: mr-duo-open .18s ease-out; }
    @keyframes mr-duo-open { from { opacity: .65; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
