.iwt-lead-panel {
    position: fixed;
    inset: 0 0 0 auto;
    box-sizing: border-box;
    inline-size: min(100%, 35rem);
    block-size: 100dvh;
    max-inline-size: none;
    max-block-size: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: #102a3a;
    background: #faf7ef;
    border: 0;
    border-block-start: 3px solid #be9751;
    font: 16px Arial, sans-serif;
}

.iwt-lead-panel[open] { display: flex; flex-direction: column; }
.iwt-lead-panel::backdrop { background: rgb(11 28 40 / 48%); }

.iwt-lead-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-block-end: 1px solid #ded7c8;
}

.iwt-lead-header h2 {
    margin: 0;
    color: inherit;
    font: 400 clamp(1.1rem, 4vw, 1.4rem)/1.2 Georgia, serif;
}

.iwt-lead-close {
    flex: 0 0 44px;
    min-block-size: 44px;
    padding: 0;
    cursor: pointer;
    border: 1px solid #ded7c8;
    border-radius: 6px;
    background: #fff;
    color: #102a3a;
    font-size: 1.5rem;
}

.iwt-lead-frame {
    flex: 1;
    min-block-size: 0;
    inline-size: 100%;
    border: 0;
}

.iwt-lead-direct {
    align-self: center;
    padding: 0.65rem 1rem max(0.65rem, env(safe-area-inset-bottom));
    color: #102a3a;
    font-size: 0.875rem;
    text-decoration: underline;
}

.iwt-lead-popover {
    inset: auto max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) auto;
    inline-size: min(29rem, calc(100% - 1.5rem));
    block-size: auto;
    max-block-size: calc(100dvh - 1.5rem);
    border-radius: 9px;
    box-shadow: 0 12px 48px rgb(11 28 40 / 18%);
}

.iwt-lead-popover.iwt-lead-show-form { block-size: min(47rem, calc(100dvh - 1.5rem)); }
.iwt-lead-popover::backdrop { background: rgb(11 28 40 / 22%); }
.iwt-lead-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem 1rem; }

.iwt-lead-choices a,
.iwt-lead-choices button {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
    padding: 0 0.8rem;
    border: 1px solid #a91920;
    border-radius: 6px;
    background: #a91920;
    color: #fff;
    text-decoration: none;
    font: 700 0.875rem Arial, sans-serif;
    cursor: pointer;
}

.iwt-lead-choices button { background: #fff; color: #a91920; }
.iwt-lead-panel :focus-visible { outline: 2px solid #88602b; outline-offset: 2px; }
