.oldgame-afp-lock {
    overflow: hidden !important;
}

.oldgame-afp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.72);
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
}

.oldgame-afp-overlay.is-visible {
    display: flex;
}

.oldgame-afp-modal {
    width: min(620px, 100%);
    background: #c90000;
    color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
    padding: 28px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    font-family: inherit;
}

.oldgame-afp-modal h2 {
    color: #ffffff;
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    text-transform: uppercase;
}

.oldgame-afp-modal p {
    color: #ffffff;
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.55;
}

.oldgame-afp-checkbox-wrap {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    margin: 18px 0;
    cursor: pointer;
}

.oldgame-afp-checkbox-wrap input {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.oldgame-afp-checkbox-wrap span {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.oldgame-afp-error {
    display: none;
    background: #ffffff;
    color: #c90000;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.oldgame-afp-error.is-visible {
    display: block;
}

.oldgame-afp-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.oldgame-afp-btn {
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}

.oldgame-afp-btn:hover {
    transform: translateY(-1px);
}

.oldgame-afp-confirm {
    background: #ffffff;
    color: #c90000;
}

.oldgame-afp-cancel {
    background: rgba(0, 0, 0, 0.28);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.oldgame-afp-place-order-warning {
    display: none;
    margin: 0 0 15px;
    background: #c90000;
    color: #ffffff;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.oldgame-afp-place-order-warning.is-visible {
    display: block;
}

@media (max-width: 480px) {
    .oldgame-afp-modal {
        padding: 22px;
    }

    .oldgame-afp-modal h2 {
        font-size: 20px;
    }

    .oldgame-afp-actions {
        flex-direction: column-reverse;
    }

    .oldgame-afp-btn {
        width: 100%;
    }
}
