/* Scope everything to #notch-ec-root to avoid collisions */
#notch-ec-root {
    all: initial;
}

#notch-ec-root .notch-ec {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: min(360px, calc(100vw - 40px));
    z-index: 2147483647;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: #0b0b0f;
}

#notch-ec-root .notch-ec__card {
    background: #ffffff;
    border: 1px solid rgba(15, 15, 25, 0.10);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

#notch-ec-root .notch-ec__card.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#notch-ec-root .notch-ec__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 8px 14px;
}

#notch-ec-root .notch-ec__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

#notch-ec-root .notch-ec__subtitle {
    margin: 4px 0 0 0;
    font-size: 13px;
    line-height: 1.35;
    color: rgba(15, 15, 25, 0.72);
}

#notch-ec-root .notch-ec__close {
    appearance: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    margin: -6px -6px 0 0;
    border-radius: 10px;
    line-height: 0;
}

#notch-ec-root .notch-ec__close:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.65);
    outline-offset: 2px;
}

#notch-ec-root .notch-ec__close svg {
    width: 16px;
    height: 16px;
    opacity: 0.70;
}

#notch-ec-root .notch-ec__body {
    padding: 0 14px 14px 14px;
}

#notch-ec-root .notch-ec__form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 10px;
}

#notch-ec-root .notch-ec__input {
    appearance: none;
    border: 1px solid rgba(15, 15, 25, 0.16);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    background: #fff;
    color: #0b0b0f;
}

#notch-ec-root .notch-ec__input:focus {
    border-color: rgba(15, 15, 25, 0.40);
    box-shadow: 0 0 0 4px rgba(15, 15, 25, 0.08);
}

#notch-ec-root .notch-ec__input.is-error {
    border-color: rgba(205, 20, 20, 0.55);
    box-shadow: 0 0 0 4px rgba(205, 20, 20, 0.10);
}

#notch-ec-root .notch-ec__button {
    appearance: none;
    border: 1px solid rgba(15, 15, 25, 0.12);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: #0b0b0f;
    color: #ffffff;
    white-space: nowrap;
}

#notch-ec-root .notch-ec__button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

#notch-ec-root .notch-ec__meta {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.35;
}

#notch-ec-root .notch-ec__error {
    color: rgba(205, 20, 20, 0.95);
}

#notch-ec-root .notch-ec__success {
    color: rgba(20, 120, 60, 0.95);
}

#notch-ec-root .notch-ec__fineprint {
    margin-top: 8px;
    font-size: 11px;
    color: rgba(15, 15, 25, 0.55);
}