.mi-placement {
    --mi-ink: #183d32;
    --mi-green: #21634d;
    --mi-light: #edf5ef;
    --mi-border: #c7d8ce;
    max-inline-size: 52rem;
    margin: 1.5rem auto;
    color: var(--mi-ink);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    text-align: center;
}
.mi-placement *, .mi-placement *::before, .mi-placement *::after { box-sizing: border-box; }
.mi-placement .mi-placement__inner {
    padding: clamp(1.15rem, 4vw, 2.8rem);
    border: 1px solid var(--mi-border);
    border-radius: 24px;
    background: #fffefa;
    box-shadow: 0 15px 55px #173d3210;
}
.mi-placement .mi-placement__welcome {
    display: block;
    inline-size: 100%;
    block-size: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 16px;
    margin: 0 auto 1.8rem;
}
.mi-placement h2, .mi-placement h3 {
    color: var(--mi-ink);
    margin: 0 0 1.1rem;
    line-height: 1.25;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: -.02em;
}
.mi-placement h2 { font-size: clamp(2rem, 5vw, 2.9rem); }
.mi-placement h3 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
.mi-placement p { margin: .85rem auto; line-height: 1.7; max-inline-size: 40rem; color: #244639; }
.mi-placement p.mi-placement__lead { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 600; line-height: 1.5; }
.mi-placement p.mi-placement__intro { max-inline-size: 32rem; margin: 0 auto; font-size: 1.05em; line-height: 1.65; }
.mi-placement p.mi-placement__hint { color: #496054; font-size: .9em; line-height: 1.5; margin: 1rem auto 1.35rem; }
.mi-placement fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; inline-size: 100%; }
.mi-placement legend { inline-size: 100%; font-size: 1.12rem; font-weight: 600; line-height: 1.65; padding: 0; margin: .2rem 0 1.2rem; }
.mi-placement legend span { display: block; margin-block-end: .5rem; text-align: center; white-space: pre-line; }
.mi-placement [lang="ar"] { font-family: "Noto Naskh Arabic", "Traditional Arabic", Tahoma, sans-serif; font-size: 1.6rem; line-height: 1.9; letter-spacing: normal; }
.mi-placement .mi-placement__primary, .mi-placement .mi-placement__secondary, .mi-placement .mi-placement__choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mi-border);
    color: var(--mi-ink);
    background: #fff;
    border-radius: 12px;
    min-block-size: 52px;
    padding: .85rem 1.3rem;
    margin: .35rem auto;
    font: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    white-space: normal;
    line-height: 1.5;
}
.mi-placement .mi-placement__primary { border-color: var(--mi-green); background: var(--mi-green); color: #fff; font-weight: 650; padding-inline: 1.8rem; }
.mi-placement .mi-placement__choice { display: flex; inline-size: 100%; margin-block-end: .65rem; font-weight: 500; }
.mi-placement .mi-placement__choice[lang="ar"] { font-family: "Noto Naskh Arabic", "Traditional Arabic", Tahoma, sans-serif; font-size: 1.6rem; }
.mi-placement .mi-placement__choice:hover, .mi-placement .mi-placement__secondary:hover { background: var(--mi-light); border-color: #3e7d63; color: var(--mi-ink); }
.mi-placement .mi-placement__primary:hover { background: #164b39; color: #fff; }
.mi-placement .mi-placement__link { color: #185c43; text-decoration: underline; text-underline-offset: 3px; }
.mi-placement :focus-visible { outline: 3px solid #a5782a; outline-offset: 4px; }
.mi-placement button:disabled { opacity: .65; cursor: wait; }
.mi-placement .mi-placement__gift { background: #edf5ed; border: 1px solid #bfd4bf; padding: 1.35rem; border-radius: 16px; margin-block: 1.5rem; }
.mi-placement .mi-placement__coupon-row { display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap; margin-block: .8rem; }
.mi-placement code { overflow-wrap: anywhere; user-select: all; background: #fff; border: 1px dashed #739a7e; border-radius: 8px; padding: .65rem; color: #153b2a; font-size: 1.1rem; }
.mi-placement .mi-placement__notice:empty { display: none; }
.mi-placement .mi-placement__notice { font-weight: 600; }
body.mi-placement-standalone { margin: 0; background: #f2f5ee; color: #17372b; font-family: "Segoe UI", Arial, sans-serif; }
.mi-placement-standalone__main { margin: 0 auto; width: min(100% - 1.5rem, 880px); padding-block: clamp(1rem, 4vw, 2.8rem); }
.mi-placement-standalone__brand { margin: 0; text-align: center; font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; }
.mi-placement-standalone__brand a { color: #285c46; text-decoration: none; }
.mi-placement-standalone__brand a:hover { text-decoration: underline; }
.mi-placement [data-mi-screen] { position: relative; }
.mi-placement p.mi-placement__result-label { margin-bottom: .2rem; font-weight: 600; }
.mi-placement p.mi-placement__result-level {
    margin: 0 auto 1.15rem;
    color: #21634d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 700;
    line-height: 1.2;
}
.mi-placement .mi-placement__bundle,
.mi-placement .mi-placement__feedback {
    margin: 1.4rem auto 0;
    padding: 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--mi-border);
    background: #f5f8f1;
}
.mi-placement .mi-placement__bundle h4,
.mi-placement .mi-placement__gift h4,
.mi-placement .mi-placement__feedback h4 { font-size: 1.12rem; font-weight: 700; margin: 0; color: var(--mi-ink); }
.mi-placement p.mi-placement__saving { font-weight: 700; color: var(--mi-green); }
.mi-placement .mi-placement__feedback-actions,
.mi-placement .mi-placement__preview-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .45rem; }
.mi-placement .mi-placement__feedback-actions { margin-top: .65rem; }
.mi-placement .mi-placement__feedback-actions button,
.mi-placement .mi-placement__preview-nav button { margin: 0; }
.mi-placement .mi-placement__preview-nav { margin-bottom: 1.5rem; }
.mi-placement .mi-placement__preview-nav select { margin-inline-start: .4rem; }
.mi-placement p.mi-placement__result-footer {
    margin: 1.4rem 0 0 auto;
    max-inline-size: 22rem;
    text-align: right;
    font-size: .85rem;
    line-height: 1.5;
}
.mi-placement .mi-placement__result-footer a { display: table; margin-inline-start: auto; }
.mi-placement .mi-placement__result-footer a::before {
    content: "";
    display: inline-block;
    inline-size: 1.1em;
    block-size: 1.1em;
    margin-inline-end: .35em;
    vertical-align: -.15em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185c43' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 0 0-7.9 13.3L3 21l4.8-1.1A9 9 0 1 0 12 3Z'/%3E%3Cpath fill='%23185c43' stroke='none' d='M8.9 7.3c-.8 0-1.5.8-1.5 1.8 0 3.5 4 7.4 7.4 7.4 1.1 0 1.8-.7 1.8-1.6 0-.3-.1-.4-.4-.5l-2-1c-.3-.1-.5-.1-.7.2l-.7.8a7.2 7.2 0 0 1-3.3-3.3l.8-.8c.2-.2.2-.4.1-.7l-.9-2c-.1-.2-.3-.3-.6-.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mi-placement .mi-placement__restart {
    display: block;
    margin: .75rem auto 0;
    padding: .4rem;
    border: 0;
    background: transparent;
    color: var(--mi-green);
    font: inherit;
    font-size: .88rem;
    text-decoration: underline;
    cursor: pointer;
}
.mi-placement .mi-placement__preview-message { font-size: .92rem; }
.mi-placement .mi-placement__confetti {
    position: absolute;
    inset: 0 0 auto;
    block-size: 13rem;
    overflow: hidden;
    pointer-events: none;
}
.mi-placement .mi-placement__confetti span {
    position: absolute;
    inset-inline-start: var(--mi-left);
    inset-block-start: -9px;
    inline-size: 7px;
    block-size: 11px;
    border-radius: 2px;
    background: #c49543;
    animation: mi-placement-celebrate .95s var(--mi-delay) ease-out both;
}
.mi-placement .mi-placement__confetti span:nth-child(2n) { background: #4d8667; }
.mi-placement .mi-placement__confetti span:nth-child(3n) { background: #a65755; }
@keyframes mi-placement-celebrate {
    0% { opacity: 0; transform: translateY(-10px) rotate(0); }
    20% { opacity: .95; }
    100% { opacity: 0; transform: translateY(190px) rotate(240deg); }
}
@media (prefers-reduced-motion: reduce) {
    .mi-placement .mi-placement__confetti span { animation: none; display: none; }
}
@media (max-width: 480px) {
    .mi-placement { font-size: 17px; margin-top: 1rem; }
    .mi-placement .mi-placement__inner { border-radius: 18px; }
    .mi-placement .mi-placement__welcome { border-radius: 10px; }
    .mi-placement .mi-placement__primary { inline-size: 100%; }
}
