/* CODSHIPX_AI_R132_R3_MESSAGE_TEMPLATES */

html.cx-r132-modal-open,
html.cx-r132-modal-open body {
    overflow: hidden !important;
}

.cx-r132-template-manager-btn {
    white-space: nowrap;
}

#cx-r132-template-modal[hidden] {
    display: none !important;
}

#cx-r132-template-modal {
    position: fixed;
    inset: 0;
    z-index: 2147482600;
    display: grid;
    place-items: center;
    padding: 24px;
}

#cx-r132-template-modal .cx-r132-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 17, 31, .55);
    backdrop-filter: blur(7px);
}

#cx-r132-template-modal .cx-r132-modal-card {
    position: relative;
    z-index: 2;
    width: min(850px, calc(100vw - 36px));
    max-height: min(88vh, 820px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe7ee;
    border-radius: 22px;
    box-shadow: 0 34px 100px rgba(8, 24, 48, .28);
}

#cx-r132-template-modal header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 23px 24px 18px;
    border-bottom: 1px solid #edf1f4;
    background: linear-gradient(#fff, #fbfcfd);
}

#cx-r132-template-modal header h2 {
    margin: 3px 0 5px;
    color: #132740;
    font-size: 23px;
    letter-spacing: -.55px;
}

#cx-r132-template-modal header p {
    margin: 0;
    max-width: 650px;
    color: #748094;
    font-size: 12px;
    line-height: 1.55;
}

.cx-r132-kicker {
    color: #7ba52a;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.cx-r132-icon-btn {
    border: 1px solid #dfe6ed;
    background: #fff;
    color: #56657a;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.cx-r132-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid #edf1f4;
}

.cx-r132-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 470px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #dfe6ed;
    border-radius: 11px;
    background: #fbfcfd;
}

.cx-r132-search span {
    color: #8a96a6;
}

.cx-r132-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1b2b43;
    font-size: 12px;
}

.cx-r132-message {
    min-height: 0;
    padding: 0 24px;
    color: #5b6a7d;
    font-size: 11px;
}

.cx-r132-message[data-tone="ok"] {
    padding-top: 10px;
    color: #527d10;
}

.cx-r132-message[data-tone="error"] {
    padding-top: 10px;
    color: #bb3142;
}

.cx-r132-form {
    margin: 14px 24px 2px;
    padding: 18px;
    border: 1px solid #dfe7ee;
    border-radius: 16px;
    background: #fafcfd;
}

.cx-r132-form[hidden] {
    display: none !important;
}

.cx-r132-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cx-r132-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 13px;
}

.cx-r132-form label > span {
    color: #69788b;
    font-size: 10.5px;
    font-weight: 800;
}

.cx-r132-form input,
.cx-r132-form textarea {
    width: 100%;
    border: 1px solid #dce4ec;
    border-radius: 10px;
    background: #fff;
    color: #172b43;
    font: inherit;
    font-size: 12px;
    outline: 0;
}

.cx-r132-form input {
    min-height: 42px;
    padding: 0 11px;
}

.cx-r132-form textarea {
    min-height: 125px;
    resize: vertical;
    padding: 11px;
    line-height: 1.55;
}

.cx-r132-form input:focus,
.cx-r132-form textarea:focus {
    border-color: #9bd52c;
    box-shadow: 0 0 0 3px rgba(151, 211, 36, .13);
}

.cx-r132-shortcut-input {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #dce4ec;
    border-radius: 10px;
    background: #fff;
}

.cx-r132-shortcut-input b {
    padding-left: 11px;
    color: #7a8b9f;
}

.cx-r132-shortcut-input input {
    border: 0;
    box-shadow: none !important;
}

.cx-r132-form > small {
    display: block;
    color: #8995a4;
    font-size: 10.5px;
}

.cx-r132-form footer {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 15px;
}

.cx-r132-list {
    flex: 1;
    overflow: auto;
    padding: 14px 24px 24px;
}

.cx-r132-template-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid #edf1f4;
}

.cx-r132-template-row:last-child {
    border-bottom: 0;
}

.cx-r132-template-copy {
    min-width: 0;
    flex: 1;
}

.cx-r132-template-copy > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.cx-r132-template-copy strong {
    color: #172a43;
    font-size: 12.5px;
}

.cx-r132-template-copy code,
.cx-r132-picker-item code {
    color: #668b1e;
    background: #f2f8e8;
    border: 1px solid #dbeabf;
    border-radius: 999px;
    padding: 3px 7px;
    font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.cx-r132-template-copy p {
    margin: 7px 0 0;
    max-width: 600px;
    color: #718096;
    font-size: 11px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.cx-r132-row-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.cx-r132-delete-btn {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #f1cfd4;
    border-radius: 9px;
    background: #fff8f9;
    color: #b63345;
    font-size: 10.5px;
    font-weight: 750;
    cursor: pointer;
}

.cx-r132-empty {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #8a96a6;
    text-align: center;
}

.cx-r132-empty strong {
    color: #34465d;
    font-size: 13px;
}

.cx-r132-empty span {
    font-size: 11px;
}

.cx-r132-picker-host {
    position: relative !important;
}

.cx-r132-template-picker {
    position: absolute;
    left: 0;
    right: 54px;
    bottom: calc(100% + 8px);
    z-index: 2147482400;
    max-height: 310px;
    overflow: auto;
    padding: 7px;
    border: 1px solid #dce5ec;
    border-radius: 14px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 20px 54px rgba(9, 28, 51, .2);
    backdrop-filter: blur(14px);
}

.cx-r132-template-picker[hidden] {
    display: none !important;
}

.cx-r132-picker-item {
    width: 100%;
    display: block;
    padding: 10px 11px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.cx-r132-picker-item:hover,
.cx-r132-picker-item.active {
    background: #f3f7ec;
}

.cx-r132-picker-item > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cx-r132-picker-item strong {
    color: #17304b;
    font-size: 11.5px;
}

.cx-r132-picker-item small {
    display: block;
    margin-top: 5px;
    color: #78869a;
    font-size: 10.5px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cx-r132-picker-empty {
    padding: 16px 14px;
    text-align: center;
}

.cx-r132-picker-empty strong {
    display: block;
    color: #32455c;
    font-size: 11.5px;
}

.cx-r132-picker-empty span {
    display: block;
    margin-top: 4px;
    color: #8794a4;
    font-size: 10px;
}

.cx-r132-picker-empty.error strong {
    color: #b63345;
}

@media (max-width: 700px) {
    #cx-r132-template-modal {
        padding: 10px;
    }

    #cx-r132-template-modal .cx-r132-modal-card {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 17px;
    }

    #cx-r132-template-modal header,
    .cx-r132-toolbar,
    .cx-r132-list {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cx-r132-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .cx-r132-search {
        max-width: none;
    }

    .cx-r132-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cx-r132-form {
        margin-left: 16px;
        margin-right: 16px;
    }

    .cx-r132-template-row {
        flex-direction: column;
    }

    .cx-r132-row-actions {
        width: 100%;
    }

    .cx-r132-template-picker {
        right: 0;
    }
}
