.rpm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .58);
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box
}

.rpm-overlay[hidden],
#rpm-root[hidden] {
    display: none !important
}

.rpm-dialog {
    position: relative;
    direction: rtl;
    text-align: right;
    width: min(100%, 400px);
    max-height: calc(100dvh - 36px);
    overflow: auto;
    box-sizing: border-box;
    border-radius: 24px;
    box-shadow: 0 8px 24px -4px rgba(0, 59, 61, .12);
    background: #fff;
    color: #20212a;
    border: 1px solid #E4E4E7;
    font-family: inherit
}

.rpm-content {
    padding: 16px;
}

.rpm-intro {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.rpm-image {
    width: 100%;
    max-height: 210px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    margin-bottom: 16px
}

.rpm-type-image .rpm-content {
    padding: 0
}

.rpm-type-image .rpm-image {
    max-height: none;
    margin: 0;
    border-radius: 18px
}

.rpm-type-image .rpm-close {
    background: #fff;
    color: #111
}

.rpm-close {
    position: absolute;
    z-index: 2;
    top: 20px;
    left: 20px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.rpm-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #e5e5e9;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    line-height: 20px;
    color: #374151;
    font-weight: 400;
    white-space: nowrap;
    align-self: center;
    margin-bottom: 20px
}

.rpm-badge>span {
    content: "";
    border-radius: 50%;
    background: #4F947A;
    width: 8px;
    height: 8px;
    position: relative;
    box-shadow: 0 0 0 4px rgb(79 148 122 / 16%);
}


.rpm-title {
    font-size: 18px;
    text-align: center;
    line-height: 32px;
    margin: 0 0 4px;
    color: #20212a;
    font-weight: 700
}

.rpm-description {
    text-align: center;
    font-size: 14px;
    line-height: 24px;
    color: #71717B
}

.rpm-buttons {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-top: 1px solid #E4E4E7;
    margin: 0;
    box-sizing: border-box;
    width: 100%
}


.rpm-button {
    width: 100%;
    height: 44px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 9999px;
    background: #00565c;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
    border: 1px solid #00565c;
    transition: .3s;
}

.rpm-button:hover {
    background: #004146;
}

.rpm-button.rpm-secondary {
    background: #fff;
    color: #00565c;
    border-color: #CCE5E5;
}

.rpm-button.rpm-secondary:hover {
    background: #eee;
}


.rpm-counter-box {
    display: flex;
    align-items: center;
    color: #71717B;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    padding: 8px 16px 8px 8px;
    justify-content: space-between;
    border-radius: 16px;
    border: 1px solid #F4F4F5;
    background: #FFF;
    margin-top: 20px;

}

.rpm-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    direction: ltr;
    margin-right: auto;
}

.rpm-counter__box {
    width: 48px;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 8px;
    background: #FAFAFA;
    box-sizing: border-box;
}

.rpm-counter__num {
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    color: #00565C;
    font-variant-numeric: tabular-nums;
}

.rpm-counter__lbl {
    font-size: 10px;
    line-height: 18px;
    font-weight: 400;
    color: #71717B;
}

.rpm-counter__sep {
    font-size: 16px;
    font-weight: 600;
    color: #A1A1AA;
    align-self: center;
}

.rpm-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.rpm-form input {
    min-width: 0;
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 12px;
    direction: ltr
}

.rpm-form-message {
    width: 100%;
    font-size: 13px
}

.rpm-html {
    overflow-wrap: anywhere
}

.rpm-type-fluent .fluentform {
    width: 100%
}

.rpm-type-fluent .ff-el-group {
    margin-bottom: 14px
}

.rpm-type-fluent .ff-btn-submit {
    cursor: pointer
}


.rpm-fluent-content {
    margin-top: 20px;
}

.rpm-fluent-content[hidden],
.rpm-intro[hidden],
.rpm-content>[hidden] {
    display: none !important
}

.rpm-type-fluent .rpm-fluent-content .ff-btn-submit {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important
}

.rpm-type-fluent .rpm-fluent-content .ff-message-success,
.rpm-type-fluent .rpm-fluent-content .ff-errors-in-stack {
    position: static !important;
    width: auto !important;
    height: auto !important;
    clip-path: none !important;
    overflow: visible !important
}

.rpm-fluent-content .ff-column-container .ff-el-group:not(:has(.ff-el-input--content)) {
    display: none;
}

body .rpm-fluent-content .ff-el-group .ff-el-input--label label {
    color: #364153;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

body .rpm-fluent-content .ff-el-input--content :where([type="tel"], [type="text"]) {
    height: 42px;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid #E4E4E7;
    background: #FFF;
    font-size: 12px;
    font-weight: 400 !important;
    line-height: 20px;
}

body .rpm-fluent-content .ff-el-input--content :where([type="tel"], [type="text"]):focus {
    border-color: #aaa !important;
}

body .rpm-fluent-content .ff-el-input--content :where([type="tel"], [type="text"])::placeholder {
    color: #A1A1AA;
    font-weight: 400;
    font-size: 12px;
    text-align: right;
    direction: rtl;
}

.rpm-fluent-content .fluentform .ff-el-group:last-child {
    margin: 0;
}

.rpm-fluent-content .ff-message-success {
    display: flex;
    flex-direction: column;
    padding: 14px 14px 16px;
    gap: 12px;
    border-radius: 12px;
    border: 1px solid #D0FAE5;
    background: #ECFDF5;
    backdrop-filter: blur(8px);
}

.rpm-fluent-content .ff-message-success {
    display: flex;
    flex-direction: column;
    padding: 14px 14px 16px;
    gap: 12px;
    border-radius: 12px;
    border: 1px solid #D0FAE5;
    background: #ECFDF5;
    backdrop-filter: blur(8px);
    box-shadow: none;
    color: #096;
    font-size: 14px;
}

.rpm-fluent-content .ff-message-success>p {
    text-align: right !important;
}

.rpm-fluent-content .ff-message-success::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.3169 7.31694C12.561 7.07286 12.561 6.67714 12.3169 6.43306C12.0729 6.18898 11.6771 6.18898 11.4331 6.43306L7.70833 10.1578L6.48361 8.93306C6.23953 8.68898 5.8438 8.68898 5.59972 8.93306C5.35565 9.17714 5.35565 9.57286 5.59972 9.81694L7.26639 11.4836C7.51047 11.7277 7.9062 11.7277 8.15028 11.4836L12.3169 7.31694Z' fill='%23009966'/%3E%3Cpath d='M8.95833 0C4.01078 0 0 4.01078 0 8.95833C0 13.9059 4.01078 17.9167 8.95833 17.9167C13.9059 17.9167 17.9167 13.9059 17.9167 8.95833C17.9167 4.01078 13.9059 0 8.95833 0ZM1.25 8.95833C1.25 4.70114 4.70114 1.25 8.95833 1.25C13.2155 1.25 16.6667 4.70114 16.6667 8.95833C16.6667 13.2155 13.2155 16.6667 8.95833 16.6667C4.70114 16.6667 1.25 13.2155 1.25 8.95833Z' fill-rule='evenodd' clip-rule='evenodd' fill='%23009966'/%3E%3C/svg%3E") center / contain no-repeat;
}



/* List */
.rpm-items {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    gap: 0;
    padding: 0;
    margin-top: 20px;
}

.rpm-item {
    padding: 12px;
    display: flex;
    justify-content: space-between !important;
    flex-direction: row;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    color: #71717B;
}

.rpm-item:not(:last-child) {
    border-bottom: 1px solid #e4e4e7;
}

.rpm-item .rpm-item-text {
    color: #18181B;
}

.rpm-button.rpm-loading {
    opacity: 0.75;
    cursor: wait;
    pointer-events: none;
    gap: 4px;
}

.rpm-button.rpm-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rpm-spin 0.7s linear infinite;
}

.rpm-button:disabled {
    cursor: not-allowed;
}

@keyframes rpm-spin {
    to {
        transform: rotate(360deg);
    }
}


.rpm-dialog.rpm-dark {
    background: #07100D;
    color: #fff;
    border-color: #0F3924;
    box-shadow: 0 8px 24px -4px rgba(0, 59, 61, 0.12);
    position: relative;
    overflow: hidden;

    .rpm-badge {
        background: rgba(255, 255, 255, 0.10);
        border-color: rgba(255, 255, 255, 0.15);
        color: #F9FAFB;

        >span {
            background: #00EA67;
            box-shadow: 0 0 0 4px rgb(0 234 103 / 16%);
        }
    }

    .rpm-title {
        color: #fff;
    }

    .rpm-description {
        color: #D4D4D8;
    }

    .rpm-counter-box {
        background: rgba(255, 255, 255, 0.10);
        border-color: rgba(255, 255, 255, 0.15);
        color: #fff;


        .rpm-counter__box {
            background-color: rgba(255, 255, 255, 0.10);

            .rpm-counter__num {
                color: #fff;
            }

            .rpm-counter__lbl {
                color: #D4D4D8;
            }
        }

    }

    .rpm-buttons {
        border-top-color: #0F3924;

        .rpm-button {
            background: #00EA67;
            color: #18181B;
            position: relative;
            z-index: 2;
        }

        .rpm-button:hover {
            background: #00b950;
        }

        .rpm-button.rpm-button.rpm-secondary {
            background-color: transparent;
            border-color: #00EA67;
            color: #00EA67;
        }

        .rpm-button.rpm-button.rpm-secondary:hover {
            background: rgba(0, 0, 0, .2);
        }

    }

    &::after {
        content: '';
        width: 140%;
        height: 140%;
        left: -20%;
        bottom: -85%;
        position: absolute;
        border-radius: 416px;
        background: radial-gradient(50% 50% at 50% 50%, rgba(0, 234, 103, 0.40) 0%, rgba(0, 234, 103, 0.00) 100%);
        z-index: 1;
    }


}


@media(max-width:600px) {
    .rpm-overlay {
        align-items: end;
        padding: 0;
    }

    .rpm-dialog {
        border-radius: 16px 16px 0 0
    }

    .rpm-close {
        width: 20px;
        height: 20px;

        svg {
            height: 10px;
        }
    }

}