.iem-suggestion-box {
    position: relative;
    overflow: hidden;
    background: #022340;
    color: #fff;
    border-radius: 24px;
    transition: min-height .35s ease, box-shadow .25s ease;
}

.iem-suggestion-box *,
.iem-suggestion-box *::before,
.iem-suggestion-box *::after { box-sizing: border-box; }

.iem-suggestion-box [hidden] { display: none !important; }

.iem-suggestion-box__inner { position: relative; padding: 28px 30px; }

.iem-suggestion-box__closed {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 20px;
}

.iem-suggestion-box__envelope {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(140,198,63,.14);
    color: #8cc63f;
    font-size: 24px;
    flex: 0 0 auto;
}

.iem-suggestion-box__title,
.iem-suggestion-box__panel-title { margin: 0; color: inherit; }
.iem-suggestion-box__support,
.iem-suggestion-box__panel-text { margin: 7px 0 0; opacity: .82; color: inherit; }

.iem-suggestion-box button { font: inherit; }

.iem-suggestion-box__open {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 13px 20px;
    background: #8cc63f;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

.iem-suggestion-box__expanded,
.iem-suggestion-box__form-view { animation: iemSuggestionIn .3s ease both; }

@keyframes iemSuggestionIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.iem-suggestion-box__panel-head { padding-right: 44px; margin-bottom: 20px; }
.iem-suggestion-box__choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }

.iem-suggestion-box__choice {
    width: 100%;
    min-height: 150px;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 22px;
    border: 2px solid transparent;
    background: #fff;
    color: #022340;
    border-radius: 18px;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.iem-suggestion-box__choice:hover,
.iem-suggestion-box__choice:focus-visible { transform: translateY(-2px); outline: none; }
.iem-suggestion-box__choice-icon { font-size: 28px; color: #8cc63f; }
.iem-suggestion-box__choice-copy { display: grid; gap: 6px; }
.iem-suggestion-box__choice-copy strong { font-size: 1.05em; }
.iem-suggestion-box__choice-copy span { opacity: .75; font-size: .92em; line-height: 1.45; }
.iem-suggestion-box__choice-arrow { font-size: 21px; }

.iem-suggestion-box__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.iem-suggestion-box__form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.iem-suggestion-box__back {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-weight: 700;
    cursor: pointer;
}

.iem-suggestion-box__close--form { position: static; }
.iem-suggestion-box__form { margin-top: 18px; background: #fff; color: #022340; border-radius: 18px; padding: 20px; }
.iem-suggestion-box__form-placeholder { padding: 18px; border: 1px dashed #b6c1c9; border-radius: 12px; color: #4a5c68; text-align: center; }

@media (max-width: 767px) {
    .iem-suggestion-box__closed { grid-template-columns: auto 1fr; }
    .iem-suggestion-box__open { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
    .iem-suggestion-box__choices { grid-template-columns: 1fr; }
    .iem-suggestion-box__choice { min-height: 0; }
    .iem-suggestion-box__inner { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .iem-suggestion-box__expanded,
    .iem-suggestion-box__form-view { animation: none; }
    .iem-suggestion-box__choice { transition: none; }
}

/* Container-aware layout, with wrapping fallback for older browsers. */
.iem-suggestion-box { container-type: inline-size; min-width: 0; }
.iem-suggestion-box__closed { display: flex; flex-wrap: wrap; flex-direction: var(--iem-layout-direction, row); }
.iem-suggestion-box__closed-copy { flex: 1 1 190px; min-width: 0; overflow-wrap: anywhere; }
.iem-suggestion-box__open { max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; justify-content: center; flex: 0 1 auto; }
.iem-suggestion-box__envelope > i { color: inherit; font-size: inherit; }
.iem-suggestion-box__envelope > svg { width: 1em; height: 1em; fill: currentColor; color: inherit; }
.iem-suggestion-box__choices { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); }
.iem-suggestion-box__choice-copy { min-width: 0; overflow-wrap: anywhere; }
.iem-suggestion-box__form { min-width: 0; overflow-wrap: anywhere; }
@container (max-width: 540px) {
 .iem-suggestion-box__closed { flex-direction: var(--iem-layout-direction, column); align-items: center; }
 .iem-suggestion-box__closed-copy { flex: 0 1 auto; width: 100%; text-align: center; }
 .iem-suggestion-box__open { width: 100%; }
 .iem-suggestion-box__choice { min-height: 0; padding: 14px; gap: 10px; }
}
