/* CODSHIPX_AI_R140_R8_CUSTOMER_BOT_FOLLOWUP_SETUP_UI */

.cx-r140-followup-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.cx-r140-followup-button > span {
    font-size: 15px;
    line-height: 1;
}

.cx-r140-modal-open {
    overflow: hidden !important;
}

.cx-r140-scrim {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(6px);
}

.cx-r140-modal {
    width: min(920px, 100%);
    max-height: min(90vh, 900px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #fff;
    box-shadow:
        0 34px 90px rgba(15, 23, 42, .24);
    color: #172033;
}

.cx-r140-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid #edf1f6;
}

.cx-r140-head h2 {
    margin: 4px 0 6px;
    color: #10233f;
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -.025em;
}

.cx-r140-head p {
    margin: 0;
    max-width: 650px;
    color: #68778c;
    font-size: 13px;
    line-height: 1.55;
}

.cx-r140-kicker {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cx-r140-close {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
    color: #64748b;
    font-size: 23px;
    cursor: pointer;
}

.cx-r140-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px 26px 28px;
}

.cx-r140-master {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 18px;
    border: 1px solid #dbe5f1;
    border-radius: 16px;
    background: #f8fbff;
}

.cx-r140-master > div {
    display: grid;
    gap: 4px;
}

.cx-r140-master strong {
    color: #17365d;
    font-size: 14px;
}

.cx-r140-master > div > span {
    color: #6c7c90;
    font-size: 12px;
    line-height: 1.45;
}

.cx-r140-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 108px;
    padding: 9px 12px;
    border: 1px solid #d9e2ec;
    border-radius: 999px;
    background: #fff;
    color: #40536b;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.cx-r140-switch input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.cx-r140-section {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e5eaf0;
    border-radius: 17px;
    background: #fff;
}

.cx-r140-section > header {
    margin-bottom: 14px;
}

.cx-r140-section h3 {
    margin: 0 0 4px;
    color: #172b46;
    font-size: 15px;
}

.cx-r140-section header p {
    margin: 0;
    color: #758397;
    font-size: 12px;
}

.cx-r140-section-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cx-r140-grid {
    display: grid;
    grid-template-columns:
        minmax(200px, 1.3fr)
        repeat(2, minmax(135px, .7fr));
    gap: 12px;
}

.cx-r140-grid label,
.cx-r140-timing label,
.cx-r140-message {
    display: grid;
    gap: 7px;
}

.cx-r140-grid label > span,
.cx-r140-timing label > span,
.cx-r140-message > span {
    color: #52647a;
    font-size: 11px;
    font-weight: 700;
}

.cx-r140-grid input,
.cx-r140-timing input,
.cx-r140-timing select,
.cx-r140-message textarea {
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    background: #fff;
    color: #1f334d;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.cx-r140-grid input,
.cx-r140-timing input,
.cx-r140-timing select {
    padding: 0 11px;
}

.cx-r140-message textarea {
    min-height: 96px;
    padding: 11px 12px;
    resize: vertical;
    line-height: 1.5;
}

.cx-r140-grid input:focus,
.cx-r140-timing input:focus,
.cx-r140-timing select:focus,
.cx-r140-message textarea:focus {
    border-color: #97acd0;
    box-shadow: 0 0 0 3px rgba(80, 120, 180, .10);
}

.cx-r140-days {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.cx-r140-days label {
    position: relative;
    cursor: pointer;
}

.cx-r140-days input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cx-r140-days span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 34px;
    border: 1px solid #dfe5ec;
    border-radius: 9px;
    background: #fff;
    color: #5b6c82;
    font-size: 11px;
    font-weight: 700;
}

.cx-r140-days input:checked + span {
    border-color: #91a9cc;
    background: #eef4fd;
    color: #264d7e;
}

.cx-r140-steps {
    display: grid;
    gap: 12px;
}

.cx-r140-step {
    padding: 15px;
    border: 1px solid #e1e7ee;
    border-radius: 14px;
    background: #fbfcfe;
}

.cx-r140-step > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.cx-r140-step > header > div {
    display: grid;
    gap: 2px;
}

.cx-r140-step > header span {
    color: #243b5a;
    font-size: 13px;
    font-weight: 800;
}

.cx-r140-step > header small {
    color: #7a889a;
    font-size: 10px;
}

.cx-r140-remove {
    border: 0;
    background: transparent;
    color: #a24a4a;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.cx-r140-timing {
    display: grid;
    grid-template-columns:
        minmax(100px, .65fr)
        minmax(120px, .8fr)
        minmax(160px, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.cx-r140-timing label > span small {
    font-weight: 500;
    opacity: .72;
}

.cx-r140-stop-grid {
    display: grid;
    gap: 9px;
}

.cx-r140-stop-grid label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #e5eaf0;
    border-radius: 11px;
    background: #fbfcfe;
    cursor: pointer;
}

.cx-r140-stop-grid input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    flex: 0 0 auto;
}

.cx-r140-stop-grid label > span {
    display: grid;
    gap: 2px;
}

.cx-r140-stop-grid strong {
    color: #31455f;
    font-size: 12px;
}

.cx-r140-stop-grid small {
    color: #7b899a;
    font-size: 10px;
    line-height: 1.4;
}

.cx-r140-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 26px;
    border-top: 1px solid #edf1f6;
    background: #fff;
}

.cx-r140-footer > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.cx-r140-notice {
    min-height: 18px;
    color: #718096;
    font-size: 11px;
}

.cx-r140-notice[data-type="error"] {
    color: #b04444;
}

.cx-r140-notice[data-type="success"] {
    color: #257247;
}

@media (max-width: 720px) {
    .cx-r140-scrim {
        align-items: flex-end;
        padding: 0;
    }

    .cx-r140-modal {
        width: 100%;
        max-height: 94vh;
        border-radius: 20px 20px 0 0;
    }

    .cx-r140-head,
    .cx-r140-body,
    .cx-r140-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cx-r140-master,
    .cx-r140-section-actions,
    .cx-r140-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .cx-r140-grid,
    .cx-r140-timing {
        grid-template-columns: 1fr;
    }

    .cx-r140-footer > div {
        width: 100%;
    }

    .cx-r140-footer > div > button {
        flex: 1 1 0;
    }
}
