#container-thanks {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 14px;
    background: rgba(0, 0, 0, 0.42);
    direction: rtl;
}

#container-thanks.is-visible {
    display: flex !important;
}

#container-thanks .thanks-card {
    position: relative;
    box-sizing: border-box;
    width: min(360px, 100%);
    padding: 28px 22px 22px;
    border-radius: 14px;
    background: #ffffff;
    color: #1f2937;
    text-align: center;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.25);
}

#container-thanks .thank-you-icon {
    display: flex;
    width: 56px;
    height: 56px;
    margin: 0 auto 13px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf8ed;
    color: #43a854;
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
}

#container-thanks h2 {
    margin: 0 0 7px;
    color: #111827;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
}

#container-thanks .thanks-main {
    margin: 0 0 5px;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

#container-thanks .thanks-subtext {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.5;
}

#container-thanks .thanks-close {
    position: absolute;
    top: 7px;
    left: 8px;
    z-index: 2;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    font-size: 28px;
    line-height: 32px;
    cursor: pointer;
    pointer-events: auto;
}

#container-thanks .thanks-close:hover,
#container-thanks .thanks-close:focus {
    background: #f3f4f6;
    color: #111827;
    outline: none;
}

#container-thanks .thanks-button {
    width: 100%;
    margin-top: 18px;
    padding: 11px 16px;
    border: 0;
    border-radius: 8px;
    background: #43a854;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    pointer-events: auto;
}

#container-thanks .thanks-button:hover,
#container-thanks .thanks-button:focus {
    filter: brightness(0.95);
    outline: none;
}

body.thanks-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    #container-thanks {
        padding: 12px;
    }

    #container-thanks .thanks-card {
        width: min(340px, 100%);
        padding: 26px 18px 20px;
        border-radius: 13px;
    }
}
