

.swish-crm-add-lead-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-height: 46px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: var(--swish-text);
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.08);
    overflow: hidden;
}

.swish-crm-add-lead-trigger span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 46px;
    background: var(--swish-gradient);
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.swish-crm-add-lead-trigger strong {
    padding: 0 18px 0 14px;
    font-size: 13px;
    font-weight: 900;
}

.swish-crm-add-lead-trigger:hover {
    transform: translateY(-1px);
}

.swish-crm-modal-open {
    overflow: hidden;
}

.swish-crm-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(16, 24, 40, 0.44);
    backdrop-filter: blur(10px);
}

.swish-crm-modal-backdrop[hidden] {
    display: none;
}

.swish-crm-modal {
    position: relative;
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 28px;
    border: 1px solid rgba(228, 234, 243, 0.95);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(0, 119, 255, 0.08), transparent 26rem),
        #ffffff;
    box-shadow: 0 34px 90px rgba(16, 24, 40, 0.28);
}

.swish-crm-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--swish-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--swish-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.swish-crm-modal__close:hover {
    color: var(--swish-blue-dark);
    border-color: rgba(0, 119, 255, 0.28);
}

.swish-crm-modal__header {
    max-width: 680px;
    margin-bottom: 22px;
}

.swish-crm-modal__header h2 {
    margin: 12px 0 0;
    color: var(--swish-text);
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.swish-crm-modal__header p {
    margin: 12px 0 0;
    color: var(--swish-muted);
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .swish-crm-topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .swish-crm-modal {
        padding: 22px;
        border-radius: 22px;
    }

    .swish-crm-modal__header h2 {
        font-size: 30px;
    }
}

/* Cleaner modal scrolling */
.swish-crm-modal {
    scrollbar-gutter: stable;
}

.swish-crm-modal::-webkit-scrollbar {
    width: 8px;
}

.swish-crm-modal::-webkit-scrollbar-track {
    margin: 22px 0;
    background: transparent;
}

.swish-crm-modal::-webkit-scrollbar-thumb {
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.5), rgba(0, 212, 255, 0.5));
}


/* Improve inputs generally */
.swish-crm-form input,
.swish-crm-form select,
.swish-crm-search-input,
.swish-crm-move-form select {
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

/* Hide ugly number input spinners where possible */
.swish-crm-form input[type="number"]::-webkit-inner-spin-button,
.swish-crm-form input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.swish-crm-form input[type="number"] {
    -moz-appearance: textfield;
}

/* Hide native select but keep it available for form submission */
.swish-crm-native-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Custom Swish select */
.swish-crm-custom-select {
    position: relative;
    width: 100%;
}

.swish-crm-custom-select__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 46px;
    padding: 0 14px 0 16px;
    border: 1px solid var(--swish-border);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(234,243,255,0.72));
    color: var(--swish-text);
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    outline: none;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.04);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.swish-crm-custom-select__button:hover,
.swish-crm-custom-select.is-open .swish-crm-custom-select__button {
    border-color: rgba(0, 119, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.08);
}