:root {
    --rs-primary: #594fd4;
    /* Purple */
    --rs-primary-light: #ecebff;
    --rs-success: #1fa374;
    /* Green */
    --rs-success-light: #e3f6ee;
    --rs-text-main: #111827;
    --rs-text-muted: #6b7280;
    --rs-border: #e5e7eb;
}

.re-sendy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.re-sendy-popup {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    font-family: inherit;
    color: var(--rs-text-main);
    overflow: hidden;
}

.re-sendy-popup * {
    box-sizing: border-box;
}

/* Close button */
.re-sendy-popup .re-sendy-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--rs-primary);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
    transition: opacity 0.2s;
}

.re-sendy-popup .re-sendy-close:hover {
    opacity: 0.9;
}

/* State 1 */
.re-sendy-popup .re-sendy-state-1 {
    padding: 40px;
}

.re-sendy-popup .re-sendy-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    line-height: normal;
}

.re-sendy-popup .re-sendy-icon-box {
    width: 72px;
    height: 72px;
    background: var(--rs-primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.re-sendy-popup .re-sendy-icon-box svg {
    width: 32px;
    height: 32px;
    color: var(--rs-primary);
    stroke: currentColor;
}

.re-sendy-popup .re-sendy-title-box h2 {
    margin: 0px;
    font-size: 24px;
    color: var(--rs-primary);
    font-weight: 600;
    line-height: 1.2;
}

.re-sendy-popup .re-sendy-title-box p {
    margin: 0;
    font-size: 16px;
    color: var(--rs-text-main);
}

.re-sendy-popup .re-sendy-content>p {
    margin: 0 0 14px 0;
    font-size: 18px;
    line-height: 1.5;
}

.re-sendy-popup .re-sendy-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px 0;
}

.re-sendy-popup .re-sendy-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 500;
}

.re-sendy-popup .re-sendy-list li svg {
    width: 20px;
    height: 20px;
    color: var(--rs-success);
    flex-shrink: 0;
}

.re-sendy-popup .re-sendy-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--rs-border);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 8px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    background: #ffffff;
}

.re-sendy-popup .re-sendy-input:focus {
    border-color: var(--rs-primary);
}

.re-sendy-popup .re-sendy-submit {
    width: 100%;
    padding: 16px;
    background: var(--rs-success);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
    font-family: inherit;
    margin-bottom: 4px;
}

.re-sendy-popup .re-sendy-submit:hover {
    background: #19875f;
}

.re-sendy-popup .re-sendy-submit svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.re-sendy-popup .re-sendy-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.re-sendy-popup .re-sendy-footer {
    text-align: center;
}

.re-sendy-popup .re-sendy-footer p {
    margin: 0;
    font-size: 14px;
    color: var(--rs-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.re-sendy-popup .re-sendy-footer svg {
    width: 16px;
    height: 16px;
    color: var(--rs-text-muted);
    stroke: currentColor;
}

/* State 2 */
.re-sendy-popup .re-sendy-state-2 {
    padding: 60px 40px;
    text-align: center;
}

.re-sendy-popup .re-sendy-success-icon {
    width: 96px;
    height: 96px;
    background: var(--rs-success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px auto;
}

.re-sendy-popup .re-sendy-success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--rs-success);
}

.re-sendy-popup .re-sendy-state-2 h2 {
    margin: 0 0 20px 0;
    font-size: 32px;
    color: var(--rs-primary);
    font-weight: 600;
}

.re-sendy-popup .re-sendy-success-text {
    margin: 0 0 20px 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--rs-text-main);
}

.re-sendy-popup .re-sendy-redirect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: var(--rs-success);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    transition: background 0.2s;
}

.re-sendy-popup .re-sendy-redirect-btn:hover {
    background: #19875f;
    color: #ffffff;
}

.re-sendy-popup .re-sendy-redirect-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .re-sendy-popup .re-sendy-state-1 {
        padding: 30px 20px;
    }

    .re-sendy-popup .re-sendy-state-2 {
        padding: 40px 20px;
    }

    .re-sendy-popup .re-sendy-title-box h2 {
        font-size: 18px;
        text-align: left;
    }

    .re-sendy-popup .re-sendy-icon-box {

        width: 22px;
        height: 22px;
    }

    .re-sendy-popup .re-sendy-content>p,
    .re-sendy-popup .re-sendy-list li {
        font-size: 16px;
    }

    .re-sendy-popup .re-sendy-state-2 h2 {
        font-size: 26px;
    }

    .re-sendy-popup .re-sendy-success-text {
        font-size: 16px;
    }

    .re-sendy-popup .re-sendy-header {
        gap: 10px;
    }
}