.eightmds-popup {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: -420px;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 2147483647;
    transition: right 0.4s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.eightmds-popup-visible {
    right: 20px;
}

.eightmds-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 22px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.eightmds-popup-close:hover,
.eightmds-popup-close:focus {
    background-color: #f0f0f0;
    color: #333;
}

.eightmds-popup-close:focus {
    outline: 2px solid #36687e;
    outline-offset: 2px;
}

.eightmds-popup-content {
    padding: 32px 28px 28px;
}

.eightmds-popup-logo {
    display: block;
    max-width: 140px;
    height: auto;
    margin: 0 auto 20px;
}

.eightmds-popup-content p {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.eightmds-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eightmds-popup-signup {
    display: inline-block;
    padding: 14px 24px;
    background: #36687e;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.eightmds-popup-signup:hover,
.eightmds-popup-signup:focus {
    background: #2d576a;
    color: #ffffff;
}

.eightmds-popup-signup:focus {
    outline: 2px solid #36687e;
    outline-offset: 2px;
}

.eightmds-popup-never {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.eightmds-popup-never:hover,
.eightmds-popup-never:focus {
    background: #f5f5f5;
    border-color: #ccc;
}

.eightmds-popup-never:focus {
    outline: 2px solid #36687e;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .eightmds-popup {
        top: 50%;
        transform: translateY(-50%);
        right: -100%;
        width: calc(100% - 20px);
        max-width: none;
    }

    .eightmds-popup-visible {
        right: 10px;
    }
}
